CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

iwcgjqgrid.jqgridsoption.automovedataset:boolean new property

Suggest new components/features

by seanwebb » 14 Sep 2012 19:38

defaults to .f.
If .t. then whenever the user clicks on a record in the grid and the cursor moves , the dataset cursor gets updated accordingly.
This will necessitate a little more traffic between browser and server and server and database , but that is programmers choice

Currently if for instance a iwcgbutton needs to be clicked to fire up another form that depends on the currently selected record
in the grid , then the programmer has to manually code the record synching eg

procedure myform.mybutton...onclick(params);
begin
SynchMyDataset;
do whatever
end;

procedure Tmyform.SynchMyDataset;
var cKeyValue:string;
begin
cKeyValue:=myGrid.JQGridOptions.SelRow;
if cKeyValue'' then
TIWCGJQGridDataSetProvider(myGrid.JQGridProvider).DataSet.locate('myfieldfield',cKeyValue,[]);
end;
seanwebb
 
Posts: 50
Joined: 22 May 2012 11:12

Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.