Hi,
I am binding the grid with datasource(that contains four tables and datarelation) . When I expand the grids in heirarchy,It takes lots of seconds .Please note that this grid hardly contain only one record at top level.Here is my code:
<telerik:RadGridView RowIndicatorVisibility="Collapsed" AutoGenerateColumns="True" ItemsSource="{Binding}"
ScrollViewer.CanContentScroll="True" Name="radGridView2" Height="500" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"
LoadingRowDetails="radGridView2_LoadingRowDetails"
RowLoaded="radGridView2_RowLoaded" DataLoadMode="Asynchronous"
CellLoaded="radGridView2_CellLoaded" Initialized="radGridView2_Initialized" DataLoading="radGridView2_DataLoading" CanUserReorderColumns="False" VerticalAlignment="Stretch" EnableColumnVirtualization="True" EnableRowVirtualization="True">
</telerik:RadGridView>
,I have set the height of nested grids at runtime .this is the code behind for that:
private void radGridView2_DataLoading(object sender, GridViewDataLoadingEventArgs e)
{
GridViewDataControl dataControl = (GridViewDataControl) sender;
if (dataControl.ParentRow != null)
{
dataControl.ShowGroupPanel = false;
dataControl.ShowColumnHeaders = false;
dataControl.RowLoaded += new EventHandler<RowLoadedEventArgs>(dataControl_RowLoaded);
dataControl.Height = 300;
}
}
Please let me know what is the issue ?
Thanks in Advance
I am binding the grid with datasource(that contains four tables and datarelation) . When I expand the grids in heirarchy,It takes lots of seconds .Please note that this grid hardly contain only one record at top level.Here is my code:
<telerik:RadGridView RowIndicatorVisibility="Collapsed" AutoGenerateColumns="True" ItemsSource="{Binding}"
ScrollViewer.CanContentScroll="True" Name="radGridView2" Height="500" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"
LoadingRowDetails="radGridView2_LoadingRowDetails"
RowLoaded="radGridView2_RowLoaded" DataLoadMode="Asynchronous"
CellLoaded="radGridView2_CellLoaded" Initialized="radGridView2_Initialized" DataLoading="radGridView2_DataLoading" CanUserReorderColumns="False" VerticalAlignment="Stretch" EnableColumnVirtualization="True" EnableRowVirtualization="True">
</telerik:RadGridView>
,I have set the height of nested grids at runtime .this is the code behind for that:
private void radGridView2_DataLoading(object sender, GridViewDataLoadingEventArgs e)
{
GridViewDataControl dataControl = (GridViewDataControl) sender;
if (dataControl.ParentRow != null)
{
dataControl.ShowGroupPanel = false;
dataControl.ShowColumnHeaders = false;
dataControl.RowLoaded += new EventHandler<RowLoadedEventArgs>(dataControl_RowLoaded);
dataControl.Height = 300;
}
}
Please let me know what is the issue ?
Thanks in Advance