Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWJQGrid question (not JQDBGrid)
#4
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
Reply


Messages In This Thread
IWJQGrid question (not JQDBGrid) - by SorenJensen - 08-10-2020, 10:53 AM
RE: IWJQGrid question (not JQDBGrid) - by Michael - 11-25-2021, 12:59 PM
RE: IWJQGrid question (not JQDBGrid) - by Alexandre Machado - 12-14-2021, 06:04 AM
RE: IWJQGrid question (not JQDBGrid) - by Michael - 12-14-2021, 09:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)