This is a migrated thread and some comments may be shown as answers.
automatically adjust column widths on column show/hide
5 Answers 46 Views
This is a migrated thread and some comments may be shown as answers.
Laurent Donstetter
Top achievements
Rank 1
Laurent Donstetter asked on 25 Jan 2010, 11:22 AM

Hi all,

I have a grid with the header context menu enabled. It is a nice feature to let the user show/hide columns.
But when a column is unchecked on the context menu, it is just removed from the grid and the other columns are not resized to fit the original width of the grid.

Is there a way to do that ? Is it possible to track column showing/hiding on server side ?

Thanks,
Laurent.

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 28 Jan 2010, 08:47 AM
Hi Laurent,

Could you please try setting the MasterTableView TableLayout to Auto and see if the columns are automatically resized upon hiding/showing a column?

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laurent Donstetter
Top achievements
Rank 1
answered on 28 Jan 2010, 09:04 AM

Hi,

Thanks for your help but setting TableLayout to Auto did not change anything.

I realize I posted another thread about nearly the same trouble one day ago. I apologize for that. The other thread's subject is "Header context menu bug ?". I attached pics to this other thread to let you see the result of the header context menu demo on my machine. You can go on anwsering to the other thread if you prefer.

Thanks,
Laurent.
0
Iana Tsolova
Telerik team
answered on 01 Feb 2010, 02:18 PM
Hello Laurent,

Thank you for providing additional information on your case. We will check the screenshots and in the other thread of yours and turn back to you with our findings there.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John John
Top achievements
Rank 1
answered on 23 Apr 2010, 02:52 PM
Hi Laurent,
                  I am having the same issue, my grid is loaded with only few columns , i set the visibility of the remain columns is false. Based on the HeaderContextMenu selection i used to display the hidden columns. But when i do grouping with the available columns the width of the columns is not looking good.The width of the grid is restored only after i displayed all of the hidden columns

I used to give fixed width to all of my columns including hidden columns too. 
Suppose if anyone found the answer to the question, please let me know. I already posted the question in the forum related to same question.

-Thanks
0
John John
Top achievements
Rank 1
answered on 28 Apr 2010, 10:50 AM
Hi,
     Any suggestions about the possibility of above mentioned scenario?

-Thanks
Tags
Grid
Asked by
Laurent Donstetter
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Laurent Donstetter
Top achievements
Rank 1
John John
Top achievements
Rank 1
Share this question
or