Hi,
My RadGridView correctly calculates the column widths, but (and this could just be because of my computer speed) there is a quarter-second lapse where the RGV is displayed with the columns all bunched up. It's cosmetic, but I'm hoping to get rid of that. I'm assuming the lapse is while the RGV calculates the column widths thus unavoidable, so is there a way to hide the view until it is done?
Thanks
My RadGridView correctly calculates the column widths, but (and this could just be because of my computer speed) there is a quarter-second lapse where the RGV is displayed with the columns all bunched up. It's cosmetic, but I'm hoping to get rid of that. I'm assuming the lapse is while the RGV calculates the column widths thus unavoidable, so is there a way to hide the view until it is done?
Thanks
4 Answers, 1 is accepted
0
Hello,
Vlad
the Telerik team
Can you post more info about your setup and the grid version?
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Peter
Top achievements
Rank 1
answered on 18 Apr 2012, 12:04 AM
Ok. I've removed some of the columns and converters as they're just more of the same. By version, is 2012.1.326.40 what you're after.
<
UserControl
x:Class
=
"ESCWhiteboard.GridControl"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:ESCWhiteboard"
>
<
UserControl.Resources
>
<
local:GridDataRepository
x:Key
=
"GridRepo"
/>
<
local:TypeColumnConverter
x:Key
=
"typeColumnConverter"
/>
<
local:RequestColumnForegroundConverter
x:Key
=
"requestColumnConverter"
/>
<
local:NotifyTypeNameColumnConverter
x:Key
=
"notifyTypeNameConverter"
/>
<
local:EscalatedByColumnConverter
x:Key
=
"escalatedByColumnConverter"
/>
<
local:RowBoldConverter
x:Key
=
"rowBoldConverter"
/>
</
UserControl.Resources
>
<
Grid
DataContext
=
"{Binding Source={StaticResource GridRepo}}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Path=DataCol}"
SelectedItem
=
"{Binding Path=SelectedWhiteboardRowObj}"
Name
=
"rgvGrid"
AutoGenerateColumns
=
"False"
RowEditEnded
=
"rgvGrid_RowEditEnded"
ShowGroupPanel
=
"False"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
EnableColumnVirtualization
=
"False"
>
<
telerik:RadGridView.Resources
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Padding"
Value
=
"3"
/>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding Read}"
Value
=
"False"
>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding AssignedTo, Converter={StaticResource rowBoldConverter}, ConverterParameter={StaticResource tabType}}"
Value
=
"True"
>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
<
Style
TargetType
=
"Image"
>
<
Setter
Property
=
"Margin"
Value
=
"3"
/>
</
Style
>
<
Style
TargetType
=
"telerik:GridViewDataColumn"
>
<
Setter
Property
=
"IsVisible"
Value
=
"false"
/>
</
Style
>
</
telerik:RadGridView.Resources
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Name
=
"ColAutoNum"
Header
=
"#"
IsReadOnly
=
"True"
DataMemberBinding
=
"{Binding AutoNum}"
Width
=
"40"
TextAlignment
=
"Center"
HeaderTextAlignment
=
"Center"
/>
<
telerik:GridViewDataColumn
Name
=
"ColT"
Header
=
"T"
IsReadOnly
=
"True"
Width
=
"40"
HeaderTextAlignment
=
"Center"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Image
Width
=
"16"
Height
=
"16"
Stretch
=
"Fill"
Source
=
"{Binding NotifyTypeName, Converter={StaticResource notifyTypeNameConverter}}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
0
Hi Peter,
Vera
the Telerik team
Unfortunately, we were not able to reproduce the issue using the details you provided. May I ask you to open a support ticket and to send a simple runnable project demonstrating it?
Thank you in advance.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Peter
Top achievements
Rank 1
answered on 19 Apr 2012, 12:21 AM
I just made a localised project for the problem and I couldn't reproduce it either. The difference between it and the main project is the amount of data displayed as well as the use of the RadGridView within a RadTabItem. If I find time later I'll try recreate the error in a bigger demo project to send you.