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

[Solved] RadGrid Columns not expanding 100%

1 Answer 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 19 Mar 2013, 08:58 PM

I have the following version of your ASP.NET AJAX controls and experiencing a rather frustrating issue.  I would like to use horizontal scrolling and having six frozen columns because we have over 20 columns in our gird.. 

When I have the following settings below the grid does not expand 100% on each side.  It will only expand to fill in the whole area when I do one of two things.

 

  1. Grab a column header and expand it, even just a little movement makes the grid expand the whole distance.
  2. Scrolling horizontally also causes the columns to no longer align under the correct data.
  3. Another think, I have no issues when running on my pc with localhost.  The issue only arrises when I push the code to the server.
  4. This only happens in Internet Explorer 9 with Compatibility View disabled 

 

In order to avoid this unpleasant view I have had to turn UseStaticHeaders to false.

 

There has got to be another way, I want the headers to be static.

 

We are currently using Telerik version 2013.1.220.35 


Here are the client settings we are using

<ClientSettings AllowDragToGroup="True" ClientEvents-OnRowSelecting="CancelNonInputSelect"  ClientEvents-OnRowDeselecting="CancelNonInputSelect">
<Resizing AllowColumnResize="True" AllowRowResize="False" ResizeGridOnColumnResize="False"  ClipCellContentOnResize="True" EnableRealTimeResize="False" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="6" />
<Selecting AllowRowSelect="True" />
</ClientSettings>

Your help would be much appreciated.

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 22 Mar 2013, 01:42 PM
Hello,

We are aware of this issue only when load the page in IE7(or IE9 Compatibility View). Please try the following workaround:
function onGridCreated(sender)
           {
                   if ($telerik.isIE7)
                   {
                           var masterTable = sender.get_masterTableView().get_element();
                           masterTable.removeChild(masterTable.tHead); 
                   }
           }

In case this works fine on your end, you can download our latest internal build, which contains a fix for the problem.


Kind regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or