Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
wiki:advanced_searching [2010/04/01 21:48] jimmym spelling and grammar stuff |
wiki:advanced_searching [2011/06/19 10:17] tony |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Installation ===== | ===== Installation ===== | ||
- | In order to use this method the following modules should be included when downloading the grid: Common, Form Edit, Search Plugin. For more information refer to [[Download]] | + | In order to use this method the following modules should be included when downloading the grid: Common, Form Edit, filter Plugin. For more information refer to [[Download]] |
===== Calling Conventions ===== | ===== Calling Conventions ===== | ||
<code javascript> | <code javascript> | ||
Line 26: | Line 26: | ||
* ... other options set as name:value pair | * ... other options set as name:value pair | ||
- | Typically when this method is called it launches the modal dialog and makes it so the grid unaccessible until the dialog is closed.\\ | + | To set more advanced search do: |
+ | |||
+ | <code javascript> | ||
+ | <script> | ||
+ | ... | ||
+ | jQuery("#grid_id").jqGrid('searchGrid', {multipleSearch:true,...} ); | ||
+ | ... | ||
+ | </script> | ||
+ | </code> | ||
+ | * multipleGroup:true activates the more advanced search dialog allowing to add complex group conditions | ||
+ | |||
+ | |||
+ | |||
+ | Typically when this method is called it launches the modal dialog and makes it so the grid inaccessible until the dialog is closed.\\ | ||
This method is not the default search method in the [[navigator]]. To enable this you should either set the default search options using the extend method or set it in the navigator in the place of the search options. | This method is not the default search method in the [[navigator]]. To enable this you should either set the default search options using the extend method or set it in the navigator in the place of the search options. | ||
The advanced searching can look like this when created: | The advanced searching can look like this when created: | ||
- | {{ :wiki:advsearch.png |Advenced Searching}} | + | {{ :wiki:complexsearch.png |Advenced Searching}} |
As you can see the user can add or delete an unlimited number of conditions to perform the search. \\ To add a condition the plus button should be pressed. \\ To delete a condition the minus button should be pressed. | As you can see the user can add or delete an unlimited number of conditions to perform the search. \\ To add a condition the plus button should be pressed. \\ To delete a condition the minus button should be pressed. |