This is a migrated thread and some comments may be shown as answers.

[Solved] Issue with hiding columns when using grouping columns

4 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 17 Feb 2010, 06:57 PM
Hello,

I'm having an issue with showing/hiding columns on the client-side.  When i hide a column, the grouping row is not resizing.  Looking at the source, it appears that the grouping column colspan is not changing when columns are shown or hidden.  Is there an easy (or any) way to correct this?

Thanks,
Matt

        function chkChange(chk) {  
            var grid = $find("<%= grid.ClientID %>");  
 
            if (chk.checked) {  
                kgDataSeries.get_masterTableView().showColumn(5);  
            }  
 
            else {  
                kgDataSeries.get_masterTableView().hideColumn(5);  
            }  
 
            kgDataSeries.repaint();           
        } 

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Feb 2010, 09:36 AM
Hi Matt,

I suggest you examine the following online example, which elaborates on this subject and let me know if it works as expected:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideapi/defaultcs.aspx

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Matt
Top achievements
Rank 1
answered on 22 Feb 2010, 12:33 PM
Thanks for the link.  I had spent a significant amount of time looking through that example as well as other forum posts and your help documentation prior to posting.

My issue is that my grid is using column grouping and the row that contains the grouping header is not resizing when i add or remove columns.  Using the IE developer toobar, I can see that the colpan attribute on the grouping row cell is not being changed based on how many columns are being displayed.

Is there a work-around to this, or is this a bug that I need to file a support ticker for?

Thanks,
Matt
0
Accepted
Pavlina
Telerik team
answered on 25 Feb 2010, 11:34 AM
Hi Matt,

Please find attached a simple working application which is working as expected. Please examine it and let me know if it works for you.

I hope this helps.

Greetings,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Matt
Top achievements
Rank 1
answered on 25 Feb 2010, 12:45 PM
Thanks for the example.  That worked as expected. 
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Matt
Top achievements
Rank 1
Share this question
or