Focus row of TIWCGJQGrid by code
Posted: 29 Oct 2019 12:29
Hi,
I've a grid with users and would like to focus the row with actual logged user when the user-grid is shown. I tried to set the
JQGridOptions.jsSetSelection(UserSession.memUtentiID.AsString, true)
and also with
JQGridOptions.SelRow := UserSession.memUtentiID.AsString;
followed by a
AjaxReRender(true, true);
but both do not highlight (show focused) any row of the grid.
the ID-field of the dataset is the key-field of the grid.
How can I accomplish this?
thanks and best regards
Toni
I've a grid with users and would like to focus the row with actual logged user when the user-grid is shown. I tried to set the
JQGridOptions.jsSetSelection(UserSession.memUtentiID.AsString, true)
and also with
JQGridOptions.SelRow := UserSession.memUtentiID.AsString;
followed by a
AjaxReRender(true, true);
but both do not highlight (show focused) any row of the grid.
the ID-field of the dataset is the key-field of the grid.
How can I accomplish this?
thanks and best regards
Toni