This is a migrated thread and some comments may be shown as answers.

moving checkbox to after text

3 Answers 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Thomas Lang
Top achievements
Rank 1
Thomas Lang asked on 01 Dec 2010, 06:47 PM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2010, 11:06 AM
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.
0
Thomas Lang
Top achievements
Rank 1
answered on 02 Dec 2010, 01:46 PM
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      
0
Nikolay Tsenkov
Telerik team
answered on 06 Dec 2010, 12:16 PM
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.
Tags
TreeView
Asked by
Thomas Lang
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Thomas Lang
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or