Search Dialog (single search option)

Searching with search dialog can be enabled by setting the ToolBarSettings.ShowSearchButton to true. This will enable the search dialog button (bottom left on the screenshot), which will in turn launch the search dialog.

<trirand:JQGrid runat="server" ID="JQGrid1" DataSourceID="SqlDataSource1"> <ToolBarSettings ShowSearchButton="true" /> </trirand:JQGrid>

jqGrid for ASP.NET will by default automatically evaluate filtering against the datasource and filter row data. It will also fire the Searching (before) and Searched (events). The Searching event can be cancelled (set eventArgs.Cancel to true) and you can implement custom filtering expressions per your requirements.

You can control the various display options of the search dialog by using properties in the SearchDialogSettings collection, e.g.

<SearchDialogSettings Height="200" Width="200" Draggable="false" FindButtonText="Find" ResetButtonText="Reset" LeftOffset="100" TopOffset="100" Modal="true" MultipleSearch="true" />


  Last Updated: 11/1/2009 | © Trirand, 2009