Assigning Node Images

2 posts, 0 answers
  1. Kyle
    Kyle  avatar
    2 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2010 Link to this post

    Hi,

    Is there any way to globally assign a node image dependent on if it's a parent or not?

    I have code the sets the image based on the node.count for each node, but after re-binding the datasource, the RadControls blow-up.  It's almost as if the prior datasource is still being enumerated.

    Anyway, if there's a better way for me to do this, rather than walking through the entire tree, I'd appreciate the knowledge.

    Thanks,
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 17 Dec 2010 Link to this post

    Hello Kyle,

    I don't really think there is any other way to determine the parent/child nodes without looping through the entire tree. I would handle the RadTreeView's PreRender event, to loop through the nodes and set the image urls. No need to rebind.
Back to Top