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

RadGrid Resize Then Column Resize Problem

2 Answers 216 Views
Grid
This is a migrated thread and some comments may be shown as answers.
john81
Top achievements
Rank 1
john81 asked on 09 Apr 2014, 05:50 PM
In my RadGrid I have AllowColumnResize="true" ResizeGridOnColumnResize="False" and Width="100%'.  None of my columns have a width set..  There is a problem with the RadGrid resizing back to 100% width after a column resize.

1.  RadGrid loads.
2.  Resize the browser window width to be smaller.
3.  Adjust a column width to be wider.
4.  Resize the browser window back to be wider or expand it full screen.

Expected result would be the RadGrid would return back to taking up the full width of the browser window.

What happens is the RadGrid stays at the width you had when the browser window was made smaller.

This does not happen if you don't resize the columns.  The RadGrid expands/contracts as expected.

2 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 14 Apr 2014, 04:04 PM
Hello,


You are correct, this behavior is observed because an explicit width in pixels is set on RadGrid and the master table while resizing. I will log this problem in our system, thank you for reporting it to us. Your Telerik points have been updated accordingly.

Currently I can propose the following workaround:

CSS:

.RadGrid,
.rgMasterTable {
    width: 100% !important;
}

Just add the above style to your page styles.

Regards,
Venelin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
john81
Top achievements
Rank 1
answered on 18 Apr 2014, 12:49 PM
That works.  Thanks!
Tags
Grid
Asked by
john81
Top achievements
Rank 1
Answers by
Venelin
Telerik team
john81
Top achievements
Rank 1
Share this question
or