when i add my column dinamically to my jqgrid and set col.SearchOptions.SOpt to ... my webapplication show the exception:
SetConversion undefined in "TIWCGJQGridColSearchOptions.ConvertSetToString" for property "SOpt"!
Following i post the code that i used to create the JQgridcolumns:
- Code: Select all
var
col: TIWCGJQGridCol;
begin
slCol := TStringList.Create;
slCol.Delimiter := ';';
slCol.StrictDelimiter := true;
slCol.DelimitedText := sIntestazione;
while (i < slCol.Count) do
begin
sFieldName := slCol[i];
col := JQGridReport.JQGridOptions.ColModel.Add;
col.Name := sFieldName;
col.Idx := sFieldName;
col.Caption := StringReplace(sFieldName, '_', ' ', [rfReplaceAll]);;
col.Editable := false;
col.Formatter := gcfNone;
col.SearchOptions.SOpt:=[gsoEqual, gsoNotEqual, gsoBeginWith, gsoDoesntBegin, gsoIsIn, gsoIsNotIn, gsoEndsWith, gsoDoesntEndsWith, gsoContains, gsoDoesntContain, gsoLessEqual,gsoGreatEqual];
col.Search := true;
col.Sortable := true;
inc(i);
end;
end;
On attachment the Exception screen that I show.
Can you help me?
Thanks,
feland