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

The disappearing grid

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Herman Gouw
Top achievements
Rank 2
Herman Gouw asked on 04 Sep 2009, 06:17 AM
Hi,

In my current project, one of the web pages displays a read only grid as follows:
<telerik:RadGrid ID="rgDetails" CssClass="CustomGrid" AllowSorting="true" AutoGenerateColumns="false" GridLines="Vertical" OnNeedDataSource="rgDetails_NeedDataSource" runat="server"
    <ClientSettings> 
        <Scrolling UseStaticHeaders="true" /> 
    </ClientSettings> 
    <MasterTableView TableLayout="Fixed"
        <Columns> 
            <telerik:GridBoundColumn DataField="EffectiveDate"      DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" HeaderText="Effective Date"      HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Left" UniqueName="EffectiveDate" /> 
            <telerik:GridBoundColumn DataField="Duid"                                                 DataType="System.String"   HeaderText="Duid"                HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" UniqueName="Duid" /> 
            <telerik:GridBoundColumn DataField="MaxCapacity"        DataFormatString="{0:N0}"         DataType="System.Int32"    HeaderText="Maximum Capacity"    HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" UniqueName="MaxCapacity" /> 
            <telerik:GridBoundColumn DataField="RegisteredCapacity" DataFormatString="{0:N0}"         DataType="System.Int32"    HeaderText="Registered Capacity" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" UniqueName="RegisteredCapacity" /> 
            <telerik:GridBoundColumn DataField="GenunitCount"       DataFormatString="{0:N0}"         DataType="System.Int32"    HeaderText="Genunit Count"       HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" UniqueName="GenunitCount" /> 
            <telerik:GridBoundColumn DataField="WaterUtilisation"   DataFormatString="{0:N0}"         DataType="System.Int32"    HeaderText="Water Utilisation"   HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" UniqueName="WaterUtilisation" /> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid>

The code behind is as follows:
protected void rgDetails_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) 
    this.rgDetails.DataSource = StationDeclaration.GelfStation.GelfStationDetails; 

The grid is displayed correctly initially as follows:

However, when the brower is resized the contents of the grid disappears as follows:

I can't see what's happened with the code.

I have similar read only grids on the other web pages in the same application, but they don't have this problem.

Can you please help me?

Thanks & regards,
Herman Gouw
Skype: hermangouw


1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Sep 2009, 03:03 PM
Hi Herman,

Based on this information, it is hard to determine what may be causing the problem.
If the issue persists, you can open a formal support ticket, and send us the problematic code, in the form of a small working project, for additional testing.

Looking forward for your reply.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Herman Gouw
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or