iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
If a user has filtered on a column in the user interface, then wanted to hide the column through the "Select Columns" column context menu, how do I preserve filtering on that hidden column?
Currently, if I hide a groupped or filtered column, the groupping and filtering are automatically removed by the WebGrid. I want to preserve those settings, even though its hidden.
Is there a setting for this?
Mike
Hello Mike,
We have the property HideColumnsWhenGrouped to automatically remove hidden column for the GrouppedColumns. But for FilteredColumns, as I said in the previous post. It has to be visible.
I apologize, I didn't get the picture of your scenario of filtering.
Please kindly describe me about your filtering scenario? Do you want to use the default filter input on WebGrid or using the other container such as TextBox or etc to filtering?
Have a nice day.
Best regards,
Niven Prasetya
Hi Mike,
If you want to filter a column, the column need to be visible, it's already the default behaviour of the WebGrid itself.
If you still want to preserve with your scenario, you have to do the query manually.
ex: SELECT * FROM abc WHERE def='...'
Thanks Niven.
The grid really needs to have a LayoutSet or GridTable property controlling whether to automatically remove hidden columns from the GrouppedColumns and FilteredColumns collections.
I cannot go back and re-query the database based on the user using the filter row. Additionally, I can't obviously group in SQL and then display a hidden column groupped in the grid with this issue.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname