Hi..
I am using Telerik Rad Wpf grid.
I want to disable some records by binding with linq entities.
Suppose I have an entity named Title which has an active field. I have below converter which is mentioned in Resources.
<
my:UserControl.Resources>
<my1:BooleanConverter x:Key="RowEnableConverter"/>
</my:UserControl.Resources>
And in Grid control , there is a datacolumn.
<
telerik:GridViewDataColumn Header="Document Name" DataMemberBinding="{Binding DOCUMENTDSC, UpdateSourceTrigger=PropertyChanged}" Width="1.5*" IsFilterable="False" IsEnabled="{Binding ACTIVE,Converter={StaticResource RowEnableConverter}, UpdateSourceTrigger=PropertyChanged}" />
Now please see the below example:
1 Ahmed 25
2 Ali 35
3 Maifs 25
Now i want to disable/readonly 2nd record which is
2 Ali 35.
How would i ?
Suggest please.
Function CompareTypeByName(ByVal x As System.Type, ByVal y As System.Type) As Integer If x Is Nothing Then If y Is Nothing Then Return 0 Else Return -1 End If Else If y Is Nothing Then Return 1 Else Return x.Name.CompareTo(y.Name) End If End IfEnd FunctionDim typeList As New List(Of System.Type) typeList.Add(GetType(String)) typeList.Add(GetType(Int32)) typeList.Sort(AddressOf CompareTypeByName)<telerik:RadToolBar > <telerik:RadDropDownButton > <StackPanel Orientation="Horizontal"> <Image Source="/Fdj.Eurp.GuiMain;component/Graphics/User.png" ></Image> <TextBlock Text="aaa" ></TextBlock> </StackPanel> <telerik:RadDropDownButton.DropDownContent> <StackPanel Orientation="Vertical" Name="spUserAccountPanel"> <telerik:RadButton Content="bbb"></telerik:RadButton> <telerik:RadButton Content="ccc"></telerik:RadButton>...