 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David M Guest
|
Posted: Sun Mar 25, 2007 5:39 am Post subject: IWDBGrid |
|
|
Hi
Using D2007 and IW9
I've made a very basic test app that has a clientdataset pointing to
the xml file of countries (in the BDS demo directory), a datasource,
an IWDBNavigator and an IWDBGrid.
I'm running the app under FF2.0 (but the same problem happens under
Moz 1.7 and IE6.0).
I'm trying to get the IWDBGrid do these 2 simple things:
- allow the user to select a row by clicking on it
- when you move the current record (in this case using the navigator
because clicking directly does not work), stopping the grid caption
and column headers from scrolling out of view.
IMHO, very basic behaviour, but I can't see how this is achieved in
IW.
Cheers
D
P.S. using a javascript framework such as qooxdoo, this is an absolute
breeze - at the cost of productivity loss from coding the UI by hand.
David Moorhouse
Moorhouse Works ltd
www.moorhouse.co.nz |
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Mon Mar 26, 2007 3:46 pm Post subject: Re: IWDBGrid |
|
|
David M wrote:
| Quote: | Hi
Using D2007 and IW9
I've made a very basic test app that has a clientdataset pointing to
the xml file of countries (in the BDS demo directory), a datasource,
an IWDBNavigator and an IWDBGrid.
I'm running the app under FF2.0 (but the same problem happens under
Moz 1.7 and IE6.0).
I'm trying to get the IWDBGrid do these 2 simple things:
- allow the user to select a row by clicking on it
|
I do following in IW 8.0.22 and it works for both IE7 and FF2. Not
tested in IW 9.
in the iwDBGrid set RowClick to true. I'd also suggest to set
RowCurrentColor to a different color to see better which record is
actually selected.
Then add a OnClick event handler to the column that represents the PK.
In there do following:
MyClientDataset.Locate('MyColumn', VarArrayOf([AValue]), []);
Curiously, once you add this one it will work for all columns.
| Quote: | - when you move the current record (in this case using the navigator
because clicking directly does not work), stopping the grid caption
and column headers from scrolling out of view.
|
this one I don't know. Try to search in following URLs:
http://www.atozed.com/intraweb/docs/
http://research.pdmagic.com/iw/html/
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam |
|
| Back to top |
|
 |
David M Guest
|
Posted: Tue Mar 27, 2007 8:13 am Post subject: Re: IWDBGrid |
|
|
Hi Guillem
| Quote: |
I do following in IW 8.0.22 and it works for both IE7 and FF2. Not
tested in IW 9.
in the iwDBGrid set RowClick to true. I'd also suggest to set
RowCurrentColor to a different color to see better which record is
actually selected.
Then add a OnClick event handler to the column that represents the PK.
In there do following:
MyClientDataset.Locate('MyColumn', VarArrayOf([AValue]), []);
|
Thanks for that - I also had to set the linkfield for the column to
make it fire the event. Dr Bob has an article too on the IW dbgrid.
http://www.drbob42.net/examines/examin48.htm
| Quote: |
Curiously, once you add this one it will work for all columns.
Setting the RowClick to True causes this behaviour. When set to False |
it only works in the column that has the event handler (and also
renders the value with an underline).
No luck fixing this yet though.
Unfortunately IW is a black box - I can't find the javascript that it
uses to render the grid.
David Moorhouse
Moorhouse Works ltd
www.moorhouse.co.nz |
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Tue Mar 27, 2007 8:04 pm Post subject: Re: IWDBGrid |
|
|
David M wrote:
Hi David
sorry, forgot about that. Although it's only necessary for this one
column.
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam |
|
| Back to top |
|
 |
Ben Trewern Guest
|
Posted: Mon Apr 02, 2007 1:24 pm Post subject: Re: IWDBGrid |
|
|
TMS has a grid that will do this.
Regards,
Ben
"David M" <borlandnewsWITHNO (AT) SPAM_OR_JUNKmoorhouse (DOT) co.nz> wrote in message
news:uebh03hftnfp1u75sfnceups9baam2f5vt (AT) 4ax (DOT) com...
| Quote: | Hi Guillem
I do following in IW 8.0.22 and it works for both IE7 and FF2. Not
tested in IW 9.
in the iwDBGrid set RowClick to true. I'd also suggest to set
RowCurrentColor to a different color to see better which record is
actually selected.
Then add a OnClick event handler to the column that represents the PK.
In there do following:
MyClientDataset.Locate('MyColumn', VarArrayOf([AValue]), []);
Thanks for that - I also had to set the linkfield for the column to
make it fire the event. Dr Bob has an article too on the IW dbgrid.
http://www.drbob42.net/examines/examin48.htm
Curiously, once you add this one it will work for all columns.
Setting the RowClick to True causes this behaviour. When set to False
it only works in the column that has the event handler (and also
renders the value with an underline).
- when you move the current record (in this case using the navigator
because clicking directly does not work), stopping the grid caption
and column headers from scrolling out of view.
this one I don't know. Try to search in following URLs:
http://www.atozed.com/intraweb/docs/
http://research.pdmagic.com/iw/html/
No luck fixing this yet though.
Unfortunately IW is a black box - I can't find the javascript that it
uses to render the grid.
David Moorhouse
Moorhouse Works ltd
www.moorhouse.co.nz |
|
|
| Back to top |
|
 |
David M Guest
|
Posted: Mon Apr 09, 2007 2:04 am Post subject: Re: IWDBGrid |
|
|
Hi Ben
| Quote: | TMS has a grid that will do this.
|
I'm sure they do
However I was expecting "VCL for the Web" to at least provide the
basic functionality that native VCL provides, and not have to shell
out extra $ for basic functionality.
I'll take a look at encapsulating the qx grid into a IW component.
Cheers
D
David Moorhouse
Moorhouse Works ltd
www.moorhouse.co.nz |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|