Hi all,
I'd like to use the tristate checkbox in a webdatatree but, unlike the default behavior, I've need that the partial state will be explicitly choosen by the user, for example with three click on the check box (one click for selecting, two click for unselecting, the third for making the checkbox partially checked).
Is this possible? If yes any hints?
Thanks in advance.
Dear Costanzo,
Thank you for contacting Infragistics!
We have received your support request concerning TriState Checkboxes with custom actions, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and my first question is are you looking to allow your users to choose between all three states for every node in the tree rather than just for parent nodes?
I am looking into how to allow the user to choose all three states explicitly and will get back to you by sometime tomorrow with more information or questions for you.
Looking forward to hearing from you.
Hi Michael,
Thank you for your quick reply.
For answering your question: yes, I'm looking to allow the user to choose between all three states for every node in the tree.
For my purposes this should also be accomplish changing the icon associated with the node. Is it possible on the client side click event changing the image url of the node? If yes I could rotate three different images (logically associated to tristate). The last question is: if I can easily realize this image changing on user click, do I have server side the image state information when I need to save the tree information on my backend?
Thank you.
Hello Costanzo,
I am following up to see if the information and sample provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Sincerely,
Mike P.
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com
Hi Mike,
thank you very much for the example.
Currently, my issues regarding webdatatree and changing checkbox images are solved.
Many thanks.
Thank you for your patience. I have modified the sample to demonstrate this behavior. In the client side Initialize event I loop though the nodes and check the state if they and set the image. At the top of the event I have some test code to demonstrate this on the first node.
Please let me know if you have any questions concerning this matter.
Thank you for the update. In theory this can be achieved by handling the client side Initialize event which should occur after that data has been loaded and the state of the checkboxes have been set. After this you would loop through you nodes checking the value and if they are set to the state you want change the image. I am working on a sample to demonstrate this behavior. I will continue to look into this matter and give you a progress update by the end of the day tomorrow.
thanks for the example it works very well.
Now I've the following issue: when loading the tree I need to fill it with the checkbox state that I read from the datasource. This operation is server side for me. How can I change the checkbox icon in this case?
Thank you in advance.