CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

set JQGrid Sopt on runtime

by feland » 10 Jun 2019 13:26


How can I choose a different sopt (not gsoEqual) on form create? Now the grid load always the first operator set on the list
[gsoEqual, gsoLess, gsoGreat, gsoGreatEqual, gsoLessEqual]

You do not have the required permissions to view the files attached to this post.
Posts: 84
Joined: 15 Jun 2015 15:12

by Alexander Bulei » 11 Jun 2019 09:19

Hi feland,
Use the Col.SearchOptions.SearchOperators with any order...the first element is selected by default.

Best Regards.
Group: Developers | Support Team

  • info [at] - General information
  • sales [at] - Sales department
  • support [at] - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
Posts: 3538
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by feland » 11 Jun 2019 14:53

Hi Alexander,
to set the property Sopt I used the following command
Code: Select all
        gridFatturePass.JQGridColumns.ItemsByName[sColName].SearchOptions.SOpt := [gsoEqual, gsoNotEqual]

The value
[gsoEqual, gsoNotEqual]
is similar to a string variable but I can't set it as string.
Example: gridFatturePass.JQGridColumns.ItemsByName[sColName].SearchOptions.SOpt := '[gsoEqual, gsoNotEqual]'

Is it possible to convert the string into type

Or how can I set this property with an element? (string, array)

Posts: 84
Joined: 15 Jun 2015 15:12

Return to JQGrid


Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.