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

Data sometimes not being painted in grid

2 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 03 Mar 2009, 04:25 PM
Several of our grids are behaving like this.  They have worked for months and while recently making a change to some of the columns, data no longer appears (column names are visible, and the columns are drawn, but the data inside is missing).   If I click on a column to sort, the data appears.  So it's like the screen is not initially being painted and an event like column sorting triggers a repaint. 

These grids are in a rad tab control and when I click on another tab and then click back, the data disappears as well.  The issue might actually be with the tab control.

Any idea what is going on and how to fix?

2 Answers, 1 is accepted

Sort by
0
Adnan
Top achievements
Rank 1
answered on 04 Mar 2009, 08:50 AM
i got same problem with my rad grid, the data inside cells is not displaying but the number of rows are same as number of records i have in data base.

xaml
<telerik:RadGridView Grid.ColumnSpan="4" Grid.Row="3" Margin="5" x:Name="dgvEquipment" ColumnsWidthMode="Auto" ItemsSource="{Binding Path = PriceList}"  
                             AutoGenerateColumns="False" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Name="Id" DataMemberPath="strEquipmentId" IsReadOnly="True" HeaderText="Id" SortingState="Ascending" IsVisible="True"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

xaml
SrvClient srv = new SrvClient();
dgvEquipment.ItemsSource = srv.LoadEquipment();

Do i have to write/declare any morething before displaying data?

any help will be appreciated
0
Hristo Deshev
Telerik team
answered on 04 Mar 2009, 12:15 PM
Hi guys,

We are aware of this problem. It is caused by a known RadGridView bug that surfaces when you remove the control from the visual tree and attach it back again (the tab control does exactly that).

We have fixed the bug, and the fix will make it in our Q1 release that is really close on the horizon. We are in the final stages of our release preparation, and I expect us to ship in the next one or two weeks.


Kind regards,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Scott
Top achievements
Rank 1
Answers by
Adnan
Top achievements
Rank 1
Hristo Deshev
Telerik team
Share this question
or