iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I urgently need a way to make checkboxes on a treeview readonly. We have implemented a treeview with tristate checkboxes. I need to make some of the checkboxes readonly but have them checked / unchecked etc. when I create the nodes. I need to indicate the underlying selections but not allow the user to change them.
Is there a simple way to do this?
Hi,
I think it is not possible for now. In fact, they are not chekbox inputs, but they are image checkboxes. Although we get the element, it seems that we could not set disabled=true for image elements. I will disccus this to our developer first and will let you know asap. Maybe they have some suggestions.
Regards,Handy
Sorry for the previous answer. Yes, you can set checkbox into readonly by setting disable into element of checkbox.
e.g
WebTreeView1.Nodes[0].GetElementCheckBox().childNodes[0].disabled = true;
Hope this helps,
Hi Mark,
So you need to make CheckBoxes readonly or make a specific node become uneditable? Please correct me if I am wrong.
Yes, I need to make the checkboxes readonly. We are using the treeview to let people make selections and also to show people the selections they have made. For some of the nodes, we want to show a checkbox but not let the user change it directly. The readonly checkbox still needs to reflect the state of the child nodes though i.e. if they select all children, the read only checkbox should show as checked etc.
Thanks for the response. Is there any way this can be done on the server side?
Regards,
Mark
It seems that you are only able to do it from client side.
I cannot get this code to work. Nothing happens when I run it i.e. the checkbox does not become "disabled". Can you help any more?
Please see my attached sample. It should guide you. Hope this helps.
Hi Handy,
I have tracked down the problem to the fact that I need to use EnableTriStateCheckBox
Is there a way to make the checkboxes readonly when this setting is enabled?
If it is a TriStateCheckBox, the previous code would not work. In Normal checkbox, the element is an checkbox input control. But in TriState mode, it is an image. So, It could not be done for now. We need to enhance the TriState checkbox. I have talked to our developer about this enhancement. They would try to enhance this capability. Thank you for your report.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname