Oct 13, 2014, 5:32 PM
Default values in FilterHeader Plugin
Hi,
How can I have in the FilterdHeader plugin, a default value. So when the user gets into the webpage it already has a filter applied. So I can avoid double trip to get the initial store I wish.
In this case:
https://examples2.ext.net/#/GridPane...Header/Remote/
How can I put a default filter on the "Visible" field. I need by default appears in the filter field a "0", and so show in the grid just the Visible="No".
By the way, in the example above (Remote Filter), if you code the "Clear Filters" button like this example:
https://examples2.ext.net/#/GridPane...ader/Overview/
It throws an error if your first action is clicking in this button, but if first apply manually a filter, and later click in the "Clear Filters" button it works ok.
This is the markup I put for generating the error in the Remote Filter example:
How can I have in the FilterdHeader plugin, a default value. So when the user gets into the webpage it already has a filter applied. So I can avoid double trip to get the initial store I wish.
In this case:
https://examples2.ext.net/#/GridPane...Header/Remote/
How can I put a default filter on the "Visible" field. I need by default appears in the filter field a "0", and so show in the grid just the Visible="No".
By the way, in the example above (Remote Filter), if you code the "Clear Filters" button like this example:
https://examples2.ext.net/#/GridPane...ader/Overview/
It throws an error if your first action is clicking in this button, but if first apply manually a filter, and later click in the "Clear Filters" button it works ok.
This is the markup I put for generating the error in the Remote Filter example:
DockedItems>
<ext:Toolbar runat="server" Dock="Bottom">
<Items>
<ext:Button runat="server" Text="Clear Filters" Handler="this.up('grid').filterHeader.setValue({Visible: '0'});">
</ext:Button>
</Items>
</ext:Toolbar>
</DockedItems>
Thanks in advance.
Last edited by iomega55; Oct 13, 2014 at 5:37 PM.