i want to Enable/Disable XamDataTree check box based upon the user rights.
Is it possible?
I cant see any property in XamDataTree.CheckBoxSettings.Please suggest.
Thanks,
Sri
Hello Sri,
I am just checking have you been able to resolve your issue? If you still need any assistance on the matter do not hesitate to ask.
In case the above suggestion helped you solve your issue please verify the thread as answered, so other users may take better advantage of it.
You can use CheckBoxSettings’s property CheckBoxStyle to assign a style for all checkboxes in the XamDataTree. In order to disable the CheckBoxes I can suggest you create a new “disable” style and set IsEnabled to false like this:
<Style TargetType="CheckBox" x:Key="disable">
<Setter Property="IsEnabled" Value="False"/>
</Style>
If you need any additional assistance on this, please feel free to ask.
Elena,
Thanks for quick response.
I had already gone through the link you have provided.But i want to Enable/Disable the check box not the Visibilty. Please let me know if there is any way to achieve that.
Regards,
I was looking into your post and I can suggest you check the following link from our documentation:
http://help.infragistics.com/NetAdvantage/Silverlight/2011/1/CLR4.0/?page=xamDataTree_xamDataTree_Check_Boxes.html
which discusses the main properties and functionalities provided by XamDataTree’s Check boxes. You can set their visibility like this :
<ig:XamDataTree.CheckBoxSettings>
<ig:CheckBoxSettings CheckBoxVisibility="Visible"/>
</ig:XamDataTree.CheckBoxSettings>
If you still need any assistance on this, I will be glad to help.