Hi,
I noticed an issue with GridView.
I bind 88 rows to a grid and when I maximise the window you get a black canvas and the grid overlayed by the same grid for a second or so before the grid resizes to the maximised window width.
I have attached a screenshot which shows this behaviour (the white areas were sensitive data cut, it's not a graphical issue).
The machine is a pretty new quad core 3Ghz machine with 8GB RAM and 512MB DDR2 ram graphic card running Win7 x64.
Visual Studio 2010 SP1, Rad Controls 20112.01.320.0. I tried with an older sample of RadGrid 2011.1.0419.40 and it had the same issue.
Is there a way to make the grid resize a little less clunky? am I missing something in the XAML?
Any feedback would be appreciated,
Thanks.
I noticed an issue with GridView.
I bind 88 rows to a grid and when I maximise the window you get a black canvas and the grid overlayed by the same grid for a second or so before the grid resizes to the maximised window width.
I have attached a screenshot which shows this behaviour (the white areas were sensitive data cut, it's not a graphical issue).
The machine is a pretty new quad core 3Ghz machine with 8GB RAM and 512MB DDR2 ram graphic card running Win7 x64.
Visual Studio 2010 SP1, Rad Controls 20112.01.320.0. I tried with an older sample of RadGrid 2011.1.0419.40 and it had the same issue.
Is there a way to make the grid resize a little less clunky? am I missing something in the XAML?
Any feedback would be appreciated,
Thanks.
private
void
Window_Loaded(
object
sender, RoutedEventArgs e)
{
// Instantiate the DataServiceContext.
_context =
new
Vessel.Service.VesselService(_svcUri);
}
private
void
button_getvesselTypes_Click(
object
sender, RoutedEventArgs e)
{
try
{
StartStats();
var VTQuery = from v
in
_context.Vestype
select v;
DataServiceCollection<VestypeEntity> VesselTypes =
new
DataServiceCollection<VestypeEntity>(VTQuery);
this
._radgrid_output.DataContext = VesselTypes;
ShowStats();
}
catch
(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
<
Window
x:Class
=
"TestClient.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"WCF oData Test"
Width
=
"750"
Height
=
"600"
x:Name
=
"OutputWindow"
Loaded
=
"Window_Loaded"
>
<
Grid
x:Name
=
"grid_mainlayout"
>
<
Grid.RowDefinitions
>
<
RowDefinition
x:Name
=
"gridrow_detailsection"
Height
=
"*"
></
RowDefinition
>
<
RowDefinition
x:Name
=
"gridrow_footersection"
Height
=
"60"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
Name
=
"_radgrid_output"
Grid.Row
=
"0"
Margin
=
"2"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
DataContext
=
"{Binding}"
ItemsSource
=
"{Binding}"
EnableColumnVirtualization
=
"True"
EnableRowVirtualization
=
"True"
DataLoadMode
=
"Asynchronous"
IsReadOnly
=
"True"
ActionOnLostFocus
=
"None"
/>
<
StackPanel
x:Name
=
"stackpannel_buttons"
Grid.Row
=
"1"
Orientation
=
"Horizontal"
>
<
Button
x:Name
=
"button_Query1"
Margin
=
"2,10,10,10"
Width
=
"100"
Content
=
"Get 6000 rows"
Click
=
"button_getvessels_Click"
></
Button
>
<
Button
x:Name
=
"button_Query2"
Margin
=
"2,10,10,10"
Width
=
"100"
Content
=
"Get 80 rows"
Click
=
"button_getvesselTypes_Click"
></
Button
>
</
StackPanel
>
</
Grid
>
</
Window
>