Hi All, I am new to the Silverlight. ANd right now stuck with the one issue. Before we are using Silverlight 3 and telerik silverlight controls version 2009.3....
Currently we want to upgrade our project to Silerlight 4 and telerik to 2010.1....
I am getting one issue regarding GridView. It is showing totally blank even in the collection there are items. I am binding it with the IEnumerable (Customtable). Previously it is working fine with previous versions of Silverlight and Telerik. But not able to trace out what is the problem and how can i solve it?
here is my code.
<UserControl.Resources>
<Style x:Key="cellStyle" TargetType="grid:GridViewCell">
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Border CornerRadius="0,0,0,0" BorderThickness="0" Background="#FF94B7F3" MinWidth="80" Height="25" >
<Grid>
<Border Height="Auto" Width="Auto" BorderBrush="#FFFFFFFF" CornerRadius="0,0,0,0" BorderThickness="1" Margin="1,1,1,1">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFFFFFF" Offset="0.5"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
<GradientStop Color="#FFFFFFFF" Offset="0"/>
</LinearGradientBrush>
</Border.Background>
<Grid>
<grid:AlignmentContentPresenter x:Name="PART_ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Visible" TextAlignment="{TemplateBinding TextAlignment}" TextDecorations="{TemplateBinding TextDecorations}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" TextWrapping="Wrap"/>
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,5,0" >
<TextBlock Text="{Binding Path=WordName}" ToolTipService.ToolTip="{Binding Path=WordName}" />
</ContentPresenter>
</Grid>
</Border>
</Grid>
</Border>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<telerik:RadGridView x:Name="gvNewOrModifiedWords"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Height="Auto"
Width="Auto"
CurrentCellChanged="gvNewOrModifiedWords_CurrentCellChanged"
RowLoaded="gvNewOrModifiedWords_RowLoaded"
RowUnloaded="gvNewOrModifiedWords_UnRowLoaded"
CanUserFreezeColumns="False"
CanUserReorderColumns="False"
CanUserResizeColumns="True"
CanUserSortColumns="False"
IsReadOnly="True"
SelectionMode="Multiple"
ShowGroupPanel="False"
IsFilteringAllowed="False"
RowIndicatorVisibility="Collapsed"
ItemsSource="{Binding NewOrModifiedWords}"
AutoGenerateColumns="False"
Margin="10, 10, 0, 10"
Background="#EFF2F7"
EnableColumnVirtualization="False"
ScrollMode="RealTime"
VirtualizingStackPanel.VirtualizationMode="Recycling"/>
I really need to solve it on a high priority... Can anyone please guide me?
Thanks in advance. George