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.
Craigw,
Here is the address of the column hiding sample page.
http://samples.infragistics.com/2009.2/WebFeatureBrowser/contents.aspx?showCode=true&t=WebDataGrid/Columns/WebDataGrid_ColumnHiding_Client.aspx~srcview.aspx?path=~srcview.aspx?path=WebDataGrid/Columns/WebDataGrid_ColumnHiding_Client.src
From the online samples, you need to go through the following links.
ASP.NET AJAX (Aikido)
WebDataGrid
Columns
The column hiding samples are here.
-Dave
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
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.
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?
createDiv appears to be missing - could you please provide that js function? I have attached to this message a zip of the column hiding test app as it stands on my machine at the moment.
Thanks for all your help so far.
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.
Many thanks David - much appreciated.