jQuery UI Widgets › Forums › TreeGrid › Hide/Remove columns from filter drop down using setColumnProperty
This topic contains 10 replies, has 2 voices, and was last updated by Hristo 6 years, 3 months ago.
-
Author
-
Hello,
Based on certain conditions, I would like to hide some columns in the tree grid. I would then like the associated columns from the filter to be removed/hidden from the filter drop down. Is that possible to do using setColumnProperty? If not, is there another way to do this?
Thank you
August 3, 2018 at 11:48 am Hide/Remove columns from filter drop down using setColumnProperty #101347Hello pward@testsys.com,
Yes, you could achieve this.
Please, take a look at this example:
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/javascript-tree-grid-show-or-hide-columns.htm?light
You could use this example as a base.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comThank you. What about removing the column options from the filtering drop down?
August 6, 2018 at 10:50 am Hide/Remove columns from filter drop down using setColumnProperty #101378Hello,
Yes, you could use this approach too – it is a possible option.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comIf possible, can you please provide a sample?
August 10, 2018 at 2:04 pm Hide/Remove columns from filter drop down using setColumnProperty #101483I will re-phrase the question.
How can I remove a column/item from the filtering drop-down based on a certain condition?
August 14, 2018 at 12:28 pm Hide/Remove columns from filter drop down using setColumnProperty #101530Hello pward@testsys.com,
Please, take a look at this example.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comAugust 14, 2018 at 3:58 pm Hide/Remove columns from filter drop down using setColumnProperty #101541Thank you – I appreciate the response!
This question is with regard to jqxTreeGrid. It looks like the example is jqxGrid. The filter that I am referring to is the built-in jqxTreeGrid filter (i.e. filterable: true).
August 15, 2018 at 11:06 am Hide/Remove columns from filter drop down using setColumnProperty #101551Hello,
If I understand you right you could add a
filterable: false
for these columns that you want to disable filtering option.
Please, take a look at this example.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comAugust 15, 2018 at 1:52 pm Hide/Remove columns from filter drop down using setColumnProperty #101555Based on user permissions, some columns should be hidden from the tree grid.
In the ready function, I check the permissions and then hide the associated columns. This works. I then need to remove/hide the column name from the filter drop down. How can I do that?
Alternatively, is there a better way to accomplish this?
Thank you!
August 20, 2018 at 1:12 pm Hide/Remove columns from filter drop down using setColumnProperty #101598Hello,
Could you clarify it?
If you want dynamically to change the filtering options you could use the set of thecolumns
property renewed.
Please, take a look at this example.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.