expand + sign without serversidecallback

2 posts, 0 answers
  1. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 11 Mar 2009 Link to this post

    Hi, can you tell me how I would get the + sign to appear on nodes which don't have children without having to se the expandmode t0 serversidecallback.
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 13 Mar 2009 Link to this post

    Hi ali,

    Please try this code /presuming you have a reference to the node object/

    //get the LI element of the node 
    var element = node.get_element(); 
    //insert the span with the plus 
    $telerik.$("span.rtSp", element).after("<span class='rtPlus' />"); 

    I hope this helps.

    Regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top