Hello,
Does anyone know of a method of allowing column enable/disable using a popup that shows all column names with a list of tickboxes?
Thanks
Regards,
Craigw.
Hey Craigw,
I assume when you mean enable/disable columns using a popup, you mean hiding and showing columns dynamically? Column Hiding was just added to the WebDataGrid in the 9.2 release. It will also be available in the WebHierarchicalDataGrid. You can go to the online samples and check out the column hiding client side sample. samples.infragistics.com, then WebDataGrid, Columns, Column Hiding Client Side. You'll want to use similar code, except show your popup on a mouse event on the column header. Then close your popup on a button in the popup or a mouse click of a check box. If you need more information or some actual sample code, just ask.
regards,David Young
Hi David,
Thanks for your post.
Could you direct me towards the column hiding reference? I have looked through the Infragistics help for column hiding but can't find anything.
Where in the samples browser is it?
thanks again
regards,
craigw.
Hi again David,
Thanks for the prompt reply.
Do you have any sample code for acheiving the column hiding using a popup window?
thanks
craigw
Craigw,
Here is a page that demonstrates using the context menu grid client event to show a grid that has its checkboxes wired to the hidden statuses of the columns. It closes on the button click in the div. It would be simple to close it on the click event of the checkboxes themselves. Hopefully, this will get you started.
-Dave
Many thanks David - much appreciated.
Yesterday you sent me a code sample for hiding columns in webdatagrid - I need to use an UltraWebGrid instead - do you have any code that uses UltraWebGrid please?
Thanks.
csnm1 said:Yesterday you sent me a code sample for hiding columns in webdatagrid - I need to use an UltraWebGrid instead - do you have any code that uses UltraWebGrid please?