I'm using the XamDataGrid to display notes for some projects in my application. For some users it shouldn't be possible to edit these notes. I therefore used FieldSettings to bind the IsReadOnly-property to a property in my ViewModel. The problem however, is, that the IsReadOnly-property only works on the XamComboEditor, and not the XamTextEditor.
XamComboEditor-field:
<igDP:Field Name="NoteType" Label="Type">
<igDP:Field.Settings>
<igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamComboEditor}">
<Setter Property="DataContext" Value="{Binding ElementName=layoutRoot, Path=DataContext}"/>
<Setter Property="ItemsSource" Value="{Binding NoteTypes}" />
<Setter Property="DisplayMemberPath" Value="Name" />
<Setter Property="ValuePath" Value="NoteTypeId" />
<Setter Property="IsReadOnly" Value="{Binding M.AccessReadOnly}" />
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
XamTextEditor-field:
<igDP:Field Name="NoteText" Label="" Width="*">
<igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}">
<Style TargetType="{x:Type igEditors:XamTextEditor}">
The IsReadOnly-property works just fine if I set it to false in the XAML. But when I use databinding it doesn't...
Hello,
It seems like that I am missing something about your scenario, so if this is still an issue for you, could please be more specific what is the functionality you want to achieve and send me screenshots of the desired result.
Looking forward for your reply.
hi,
I want to display the baloon message for XamTextEditor can u please share some sample
I am not aware of an EventBinding in WPF and I don’t think there is some approach for this functionality, but if you send me an article I could be able to think of a possible solution for you.
can you please tell me that hoew can we bind for lotfocus event of xamtexteditor like
<igEditors:XamTextEditor x:Name="txtedit" VerticalAlignment="Top" Text="TextBox Text" IsReadOnly="True" LostFocus="{Binding LostFocus}">
I have used Command for the MenuItem, so now there is no code behind.