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

[Solved] Column Headers Disappear and Grouping throwing Exception

1 Answer 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shrini
Top achievements
Rank 1
Shrini asked on 31 Jan 2010, 08:15 PM

I am looking into Telerik Grid so I can move from the Infragistics as it has a stranglehold on the application I am working with. Because of that I am preparing the base set of things/standards that our application was following when using IG to work with RadGrid.

In the IG, I have been using a xml file to generate the columns. So for a simple purpose I have duplicated the base xml to match the Telerik xml. One great thing I noticed is everything I wanted to do is built into the grid and I don't have to do any heavy work when working with the HyperLink Column or Image Column.

Problems I am facing:

In our scenario we bind around 250 to 500 records (about 30 columns) and little more depending on the location and most of the grids require grouping. As I mentioned all columns are rendered during page load and the data is bound the grid right after that. Once the data is bound grid looks and behaves normally.

1) Once I perform sort, all the column headers (text) disappears and I see only empty header cells. It also changes the whole grid's shape as the columns had specific size the once rendered after sorting the columns widths are shrunk extensively to match the data.

2) The second problem I am facing is grouping. When I drag columns for grouping, it throws me an object reference error.

3) Auto Scrolling - overflow feature is not working propertly when used with W:100%/ H:100%. It crushes the height into just 3px. I am not sure if this has something to do with the DocType?

I some how feel I have to re-init the columns as the data still exists for setting the datafields. If this is so, what exact events I need to use.

Any guidance now and near future is greatly appreciated. 

 

<telerik:RadGrid ID="rgViewer" runat="server" ShowGroupPanel="True"   
AutoGenerateColumns="False" AllowSorting="True" Width="100%" Height="800"   
AllowMultiRowSelection="true"&gt; <BR>&nbsp;&lt;MasterTableView   
GroupLoadMode="Client"&gt; <BR>&nbsp;&lt;Columns /&gt;   
<BR>&nbsp;&lt;/MasterTableView&gt; <BR>&nbsp;&lt;ClientSettings   
AllowDragToGroup="true" AllowColumnsReorder="false"&gt; <BR>&nbsp;&lt;Selecting   
AllowRowSelect="True" /&gt; <BR>&nbsp;&lt;Scrolling AllowScroll="True"   
UseStaticHeaders="True" /&gt; <BR>&nbsp;&lt;/ClientSettings&gt;   
<BR>&lt;/telerik:RadGrid&gt; <BR>&lt;IA:RadGridExtender ID="rgeViewer"   
runat="server" MappingXmlPath="/Viewer.xml" RadGridId="rgViewer" /&gt;  

 

 

 

Thanks,
Shrini Viswanathan

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 04 Feb 2010, 09:04 AM
Hi shrini,

Basically, there should not be any issues when creating the setup which you described. The following topic contains more information on how to populate the control from an XML datasource:

http://www.telerik.com/help/aspnet-ajax/grdpopulationfromxmldatasource%20control.html

This can also be done programatically, from the code-behind, after reading the contents of the xml file.
The problems which you described should not be present if the control is properly created/databound. Therefore, I suspect that there is a problem with this particular implementation. To assist you further, it will be best if you open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the problems. We will debug it locally, and get back to you with more information on the matter.

Sincerely yours,
Yavor
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Shrini
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or