Hi,
I am trying to use a simple template with a checkbox for some nodes in a WebDataTree added programmatically.
The solution seems to work but it looks slightly different when viewed with Chrome, the problem is an img tag (with no image) that appears on the left of the node but in Chrome the text is below that image.
I attach a print screen for you to see the problem and the source code of the template (just in case I am doing something wrong)
Thank you in advance.
Hello rickycl,
Thank your for posting in the community! I’ve taken a look at your code and I was wondering if you need only checkboxes to put in the template, why don’t you stick with the built-in feature of the control? I’ve just commented the template and turn on the checkbox feature of the tree with the code below:
Here is the code – behind after the modifications:
Here is the outlook:
Hi Rado,
I do not want the whole tree to have checkboxes, only some of the nodes and I didn't find a way with the built in options. If there is a way to achieve that please share it with me, otherwise the question remains.
The sample is made that way to try how would we add nodes with checkboxes dinamically.
Thanks!!
I got your point, so if that the case you can do a js trick to hide the image tag e.g.
Hope this helps
Indeed, that solves the problem despite not being too elegant but we thought it could be a kind of bug as it looks different on different browsers.
Thanks.