12-14-2021, 06:04 AM
(This post was last modified: 12-14-2021, 06:06 AM by Alexandre Machado.)
Inside an Async event handler you can do this:
var
js: string;
begin
js := '$("' + myGrid.jQSelectorID + '").jqGrid("setSelection",' + RowId + ',false);}';
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(js);
end;
It will work as long as RowId is valid in the grid context.
Function GetCurrentRowId() of the IWjQDBGrid returns the RowId of the current record of the underlying dataset (if DataSet is active)
We are including a method to do exactly that in the next release.
Cheers
var
js: string;
begin
js := '$("' + myGrid.jQSelectorID + '").jqGrid("setSelection",' + RowId + ',false);}';
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(js);
end;
It will work as long as RowId is valid in the grid context.
Function GetCurrentRowId() of the IWjQDBGrid returns the RowId of the current record of the underlying dataset (if DataSet is active)
We are including a method to do exactly that in the next release.
Cheers