moving checkbox to after text

4 posts, 0 answers
  1. Thomas Lang
    Thomas Lang avatar
    7 posts
    Member since:
    Dec 2009

    Posted 01 Dec 2010 Link to this post

    hi telerik!

    i need some help badly!

    is there a way to move the node checkbox to appear after the node text?

    thanks in advance!!!

    Tom
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Dec 2010 Link to this post

    Hi Tom,

    One suggestion is using ItemTemplate with CheckBox so that you can customize the node according to your requirement. Also you need to use you custom logic to get the checked nodes.

    Hope this suggestion helps.


    -Shinu.
  3. Thomas Lang
    Thomas Lang avatar
    7 posts
    Member since:
    Dec 2009

    Posted 02 Dec 2010 Link to this post

    Thanks Shinu!

    I was hoping to use the OnChecked event on the server because it passes all the event information with it natively.

    Using a form element in the template, unfortunately you can't process the events, i.e. the click element of a checkbox or button

    I am guessing there is no easy way to do this. i.e. somehow changing the style of the div which encapsulates the checkbox so that it floats right for instance.

    thanks
    Tom      
  4. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 06 Dec 2010 Link to this post

    Hi Thomas Lang,

    There is no trivial way to do so, yes.
    The cleanest way I can suggest, would be to create a NodeTemplate with checkbox on the right-side and not make use of the default checkboxes in RadTreeView, but keep in mind you need to handle all the events that are changing the state of the checkbox.


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top