Hi,
I have a hierarchy grid where I want to allow to edit on the child nodes only. Here is my code to diable the editing on the parent:
grid.ColumnLayouts[0].EditingSettings.AllowEditing = Infragistics.Silverlight.
EditingType.None;
and allow editing on the child:
grid.ColumnLayouts[1].EditingSettings.AllowEditing = Infragistics.Silverlight.EditingType.Row;
Here is my problem. When I, first, click on the parent then it works (no editing). But when I start clicking on the child row which allows me to edit and then go back to any parent row, the parent is in edit mode. How can I fix this issue? No editing functions were set in the xaml. Thakns!
Hello,
I tested this with 9.1 (9.1.20091.1006) and 9.2 (9.2.20092.1073) and it works correctly. I used your code snippet to enable/disable editing. Could you please give us the exact dll version of the dlls that you are using? Can you provide any other information that you think might have an effect on this or a sample reproducing this issue so that we can look into it?
Alex,
Here is my Xaml code:
="False"
="Top"
="grdPrt_CellDoubleClicked">
>
="false" >
="Stretch">
=TwoWay}" />
="Row" />
Here is my code behind:
if ((e.Cell.Row.Data as PartChild) != null) { (this.FindName("grdPrt") as XamWebGrid).ColumnLayouts[1].EditingSettings.AllowEditing = Infragistics.Silverlight.EditingType.Row; } (this.FindName("grdPrt") as XamWebGrid).ColumnLayouts[0].EditingSettings.AllowEditing = Infragistics.Silverlight.EditingType.None;
I just installed the latest SR - 9.2.20092.2014. It still does not work. Thanks for your help!