Hi,
We had a RadGrid on a form and we are changing cell background of cells manually depending on values in the cells. ANd it works fine but when we scroll down and then back to up then applied colors are meshed up and applied incorrectly
We are using 2011.2.920.40 version of WPF controls.
Thanks
<telerik:RadGridView Name="ExceptionsListBox" IsReadOnly="True" ReorderColumnsMode="Interactive" UseLayoutRounding="False" EnableRowVirtualization="True" AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" Background="#FF202020" RowHeight="20" GroupPanelBackground="#FF202020" GroupPanelForeground="white" telerik:StyleManager.Theme="Expression_Dark" Grouped="ExceptionsListBox_Grouped"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Key}" Header="Type"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding TypeText}" Header="Error" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Message}" Header="Error Message" /> </telerik:RadGridView.Columns> <telerik:RadGridView.Resources> <Style TargetType="telerik:GridViewHeaderRow"> <Setter Property="MinHeight" Value="15" /> </Style> <Style TargetType="telerik:GridViewGroupPanel"> <Setter Property="MinHeight" Value="10" /> <Setter Property="Height" Value="10" /> </Style> </telerik:RadGridView.Resources> </telerik:RadGridView>
Hi Team Telerik,
My Code to list spell Check Suggestions in the Context Menu upon right clicking
on the wrongly added text in the RichTextBox is n't working any more.
Actually what I did is
:-
1. Enabled Richtextbox spell check property.
2) Enabled Richtextbox ContextMenu Enabled Property
3) Read * .tdf file as
stream and load dictionary directly from the tdf stream
Private Sub LoadDictionary(ByVal tdfFileStream As Stream)
Dim dictionary As New RadDictionary()
dictionary.Load(tdfFileStream)
CType(Me.radRichTextBox.SpellChecker, DocumentSpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture)
End Sub
RadRichtextBox
property IsContextMenuEnabled is set to True ,but it is not working.
Is there any property to show spell
Check Suggestions apart from customizing the Context menu ?
Will it show the spell Check Suggestions in the Context Menu by adding the
Reference to Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll
assembly by default ?
Does anyone have any suggestions why this may be?
Thank you for your time,
Lakshmi
<telerik:RadGridView x:Name="PersonInCharge" Margin="5,5,5,0" Height="100" ShowGroupPanel="False" AutoGenerateColumns="False" ItemsSource="{Binding Path=PersonInCharge}" CanUserInsertRows="True"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn x:Name="cbPersonInCharge" Header="Person In Charge" UniqueName="PersonInCharge" EditTriggers="CellClick" ItemsSource="{Binding Path=PeopleList}" DataMemberBinding="{Binding Person}" SelectedValueMemberPath= "PeopleList/Person.ID}" > <telerik:GridViewComboBoxColumn.EditorStyle> </telerik:GridViewComboBoxColumn.EditorStyle> <telerik:GridViewComboBoxColumn.CellTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=FirstName}" /> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> </telerik:GridViewComboBoxColumn.CellTemplate> <telerik:GridViewComboBoxColumn.ItemTemplate > <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=FirstName}" /> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> </telerik:GridViewComboBoxColumn.ItemTemplate> </telerik:GridViewComboBoxColumn><telerik:GridViewDataColumn Name="TargetPercentOfAccountMarketValue" Header="% Of Total" Width="75" HeaderCellStyle="{StaticResource columnHeaderStyle}"
CellStyle="{StaticResource whatIfCell}"
DisplayIndex="8" EditTriggers="CellClick,TextInput"
IsReadOnlyBinding="{Binding NodeType, Converter={StaticResource nodeTypeToIsReadOnlyConverter}}"
ColumnGroupName="WhatIfAllocation">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Node.TargetPercentOfAccountMarketValue, StringFormat={}{0:P1}}"
Foreground="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource negativeColorFormatter}, UpdateSourceTrigger=PropertyChanged}">
</TextBlock>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<TextBox BorderBrush="Transparent" BorderThickness="1" Text="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource StringToPercentageConverter}, StringFormat={}{0:N2}}" Background="Transparent"
Foreground="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource negativeColorFormatter}}"/><br>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
