Hi,
I will set a JQgrid filter on toolbar search as default on jqgrid load.
How I can do it? On attachment an example of How I want it.
The request is urgent.
Thanks
gridFatturePass.JQGridColumns.ItemsByName[sColName].SearchOptions.DefaultValue := '2137600019'
procedure TIWForm2.IWCGJQGrid1JQGridOptionsLoadComplete(Sender: TObject; AParams: TStringList);
var
Def, Js: string;
begin
Def:= '444';
Js:= Format('$("#gs_%s").val("%s")', [IWCGJQGrid1.JQGridOptions.ColModel[0].Name, Def]);
CGAddJavaScriptToAjaxResponse(Js);
end;
I need to specify the column positionJs:= Format('$("#gs_%s").val("%s")', [IWCGJQGrid1.JQGridOptions.ColModel[0].Name, Def]);
. How can I retrieve this information?Colmodel[0]
How can I retrieve this information?
the Event JQGridToolBarSearch.OnBeforeClear don't give me that info.