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

RadGrid Column Resize problem

6 Answers 235 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gitanjali
Top achievements
Rank 1
Gitanjali asked on 12 Jan 2009, 07:49 AM
i want columns of my radgrid should resize, and for this i have used AllowColumnResize property, but im getting error on rezise, and the error is  'this.HeaderRow.Cells[...].scrollWidth' is null or not an object.
The code is gien below:-

<

telerik:RadGrid ID="rdgCustomers" AllowMultiRowSelection="false" runat="server"

 

 

Skin="Outlook" Width="100%" PageSize="10" BorderStyle="None" AllowPaging="True"

 

 

AutoGenerateColumns="true" ItemStyle-Wrap="false" GridLines="None" OnItemCreated="rdgCustomers_ItemCreated"

 

 

OnItemCommand="rdgCustomers_ItemCommand">

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="true">

 

 

<ClientEvents OnRowDblClick="OpenCustomer"/>

 

 

<Resizing AllowRowResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="true"

 

 

AllowColumnResize="True"></Resizing>

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed" ClientDataKeyNames="ID"

 

 

ItemStyle-Wrap="false" AutoGenerateColumns="true" DataKeyNames="ID" Width="100%">

 

 

<PagerStyle Wrap="false" Mode="NextPrevAndNumeric" PrevPageImageUrl="Images/arrowLeft.gif"

 

 

NextPageImageUrl="Images/arrowRight.gif" NextPageText="Next" PrevPageText="Prev"

 

 

AlwaysVisible="true" />

 

 

<Columns>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Jan 2009, 05:06 PM
Hello Gitanjali,

I failed to reproduce the issue you mentioned. I created a test project based on the code you provided. Could you please try to run it locally and let me know whether it behaves as expected?

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Swati
Top achievements
Rank 1
answered on 20 Sep 2011, 09:53 AM
Hi,

I am using a telerik ragGrid.I have implemented header templates inside the grid template columns in order to create a table kind of format for the headers.But when I try to re-size the column  width,I am getting a gap next to the column.
The re-size of the column is done after the filtering.That gap itself is showing the tool tip "Drag to resize".That gap is added nowhere in the design page.
Also when I filter any column it narrows down its width to some fixed value.Do you have any idea how to fix this issue?
Please help me....its urgent...
0
Swati
Top achievements
Rank 1
answered on 06 Oct 2011, 10:28 AM
Hi,
Hope u have understood my question, if not plz let me know,I'll explain it in a different way.

Thanks,
Swati
0
Pavlina
Telerik team
answered on 11 Oct 2011, 11:02 AM
Hi Swati,

The problem you are facing is in some of the previous versions of RadControls for ASP.NET AJAX. Therefore to take care of it you should upgrade to the latest version of RadGrid.

If the problem still persists, feel free to send a Bug Report describing how it can be reproduced; a sample project will be of a great help. We will examine it right away.

Regards,
Pavlina
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
0
Kiran
Top achievements
Rank 1
answered on 25 Mar 2014, 11:56 AM
Hi, I have problem with the Telerik controls (2012,2013,2014) in IE 7 and all the other compatibility modes. The problem is gridview column resize is not working properly in IE 7 and other compatibility modes but this feature is working fine in normal modes of IE 8, IE9 and IE 10.
Please let me know if any workaround available.
0
Pavlina
Telerik team
answered on 28 Mar 2014, 03:06 PM
Hi Kiran,

I have tried to replicate the described problem in our Column/Row Resize/Reorder demo, but column resizing is working properly in compatibility modes and in normal modes. Please check it out and see what is the difference in your application.

Regards,
Pavlina
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Grid
Asked by
Gitanjali
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Swati
Top achievements
Rank 1
Pavlina
Telerik team
Kiran
Top achievements
Rank 1
Share this question
or