jQWidgets Forums
jQuery UI Widgets › Forums › Grid › A question about filtering
Tagged: grid, jquery grid, jqwidgets grid
This topic contains 7 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 7 months ago.
-
Author
-
Hi All,
If grid properties are set as follow, nothing is displayed
showfilterrow: true, filterable: false,
I know that, showfilterrow property can not be set to true without setting filterable property to true, but in my opinion grid should be displayed without any filter at this case instead of display nothing. At source code there should be a control as follow:
if (showfilterrow property is true) { if (filterable property is true) { apply showfilterrow property } else { ignore showfilterrow property } }
Hi lineker,
This is not a bug. showfilterrow is a special type of filter and if filterable is set to false, filtering is Disabled at all. This is demonstrated in the demos and documentation and is definitely not a bug and is by design.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I am trying from following link:
http://jsfiddle.net/jqwidgets/Td3Qn/
At this link, if I set filterable to false, nothing is displayed.
Hi Peter,
But I agree with you that this can not be called a bug because there is paradox at my code example so it is normal not to display anything
Hi lineker,
It is normal behavior if “filterable” is false, the filtering to be disabled. showfilterrow displays a filter row if filtering is enabled. In all examples where filter row is displayed, filterable is set to true and it should be if you want filtering in your Grid.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Yes I agree with you, thanks
Hi Peter,
I know that I wrote too much but I am not sure if you understood me correctly.
And this is my last post about this issueshowfilterrow: true,
filterable: false,With the word “nothing is displayed” I mean grid is not displayed.
I don’t mean filter row.
At this situation, normal behaviour should be:Grid should be displayed without any filter because of filterable is set to false
which means filterable is disabled.
I think with my word “nothing” you understood filter row, I am talking about whole grid, there is nothing at the page
But despite this, I do not call this a bug
Hi lineker,
We Throw an Exception so its shown in your Browser’s Console. The exception’s text is: jqxGrid: “showfilterrow” requires setting the “filterable” property to true!
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.