Use Dojo to display Table Data, Filter Function (2) – Filter Plugin

This article briefly introduces the use of Dojo’s filter plug-in to realize the filtering function of table data.
Unlike the previous article, using Dojo to display tabular data with a filter function. The difference is that grid.filter() is just a filter function, while the filter plug-in is a complete filtering solution. You only need to configure the structure object of the EnhancedGrid object to get the complete filtering function.

Add filter plug-in steps to dataGrid object:

1. Upgrade dataGrid object to EnhancedGrid object

2. Add filter to EnhancedGrid object plugin

3. Configure filter parameters in EnhancedGrid.structure.

The practical filter parameters are:

filterable

autoComplete

< p>datatype

disabledConditions

For more detailed information about the filter plug-in, please refer to the Dojo official website

< br>

The executable code is as follows:

      

Leave a Comment

Your email address will not be published.