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

Column Width Issue after Hiding

9 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 17 Apr 2010, 02:03 PM

Dear Telerik,

                  Iused  to  hide certain columns  during runtime and  undhide  the columns withHeaderContextMenu. Its all  working  fine. But when  I  unhide the column which ishide in during runtime the width  of  the  other  columns  not  looking  fine.

My  all  of the  columns  widths  are  specified in  percentage  as  well as MasterTableview width in 100%

I used to hide the columns as below at Page_Load event

<ClientSettings AllowDragToGroup="true" AllowColumnHide="true"

  RadGrid1.MasterTableView.GetColumn("Col1").Display = false
            RadGrid1.MasterTableView.GetColumn("Col2").Display = false

I refered the following link to apply the scenario.

http://www.telerik.com/community/forums/aspnet/grid/hiding-columns.aspx

Regards,

John

9 Answers, 1 is accepted

Sort by
0
John John
Top achievements
Rank 1
answered on 23 Apr 2010, 12:37 PM
Hi,
    The problem mainly occurs due to assigning the width of hidden columns to any of remain columns especially the group expand column. 
During runtime when i do grouping to any of column, the grid dynamically takes the width of the hidden columns and allot it to expand columns. As a result of these the expand column's width increased with hidden column width. Since i gave fixed width to all of my columns in percentage including invisible columns also.

So how to overcome this issue. Is it possible to apply the hide column scenario dynamically with the help of above mentioned links?

Help me to solve the issue.

-Thanks
0
Bruno
Top achievements
Rank 2
answered on 23 Apr 2010, 02:24 PM
Hi

is the latest version you try
telerick may already fix it if this is bug

Bruno
0
John John
Top achievements
Rank 1
answered on 26 Apr 2010, 10:40 AM
Hi,

    I already tested with new updated version of telerik (2010.1.415.35), but my issue still is not solved. Please help me to solve an issue or let me know is this default behavior of Telerik control.

-Thanks
0
John John
Top achievements
Rank 1
answered on 26 Apr 2010, 04:30 PM
Hi,
        Any Ideas?

Thanks
0
John John
Top achievements
Rank 1
answered on 27 Apr 2010, 04:04 PM
Hi Telerik,
                 How could we solve the above mentioned issue. Is there any possibility to achieve the issue.

Regards,
John
0
John John
Top achievements
Rank 1
answered on 28 Apr 2010, 04:06 PM
Hi,
Any help?
-Thanks
0
John John
Top achievements
Rank 1
answered on 29 Apr 2010, 03:03 PM
Dear Telerik Team,

                            Since my application largely depends on the above mentioned scenario, please kindly let me know the possibility of the scenario.

It would be much favorable suppose if i am known the suggestion of the scenario.

Regards,
John
0
Daniel
Telerik team
answered on 04 May 2010, 04:29 PM
Hello John,

Can you isolate the problem in a runnable demo so we can debug it on our end? You can attach the file to a regular support ticket.

Regards,
Daniel
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
Daniel
Telerik team
answered on 11 May 2010, 01:27 PM
Hello John,

In this case, the groupexpand column gets the width of the hidden columns because the sum of the widths of all columns is less than the width of the table. You can avoid this behavior if you remove the width of one of your columns (you can try the last one) so the browser can resize it when needed.

Best regards,
Daniel
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.
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
John John
Top achievements
Rank 1
Bruno
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or