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

TreeList TemplateColumn RadioButtons

3 Answers 104 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 01 Jul 2016, 03:07 PM

Three questions:

1) How do I set a group of radio buttons to allow only one to be checked at a time without checking and unchecking them in codebehind?

2) How do I set a different checked and unchecked image for each radiobutton?  i.e. radiobutton1 checked image=image1_Color, radiobutton1 unchecked image=image1_BlackWhite, radiobutton2 checked image=image2_Color, radiobutton2 unchecked image=image2_BlackWhite, etc.

3) When a user clicks above radiobutton in TreeList Template Column (I assume this is the proper column for this type of control...???) how would I capture that click/toggle event to update a value in my sql?

 

I attached a mock-up of what I am trying to accomplish.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Jul 2016, 11:08 AM
Hi Adam,

You can access the RadioButton in the template column using the appraoch in the help topic below and apply the needed settings on the server:
http://docs.telerik.com/devtools/aspnet-ajax/controls/treelist/items/accessing-cells-and-items#accessing-the-treelistdetailtemplateitem

Regards,
Maria Ilieva
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Adam
Top achievements
Rank 1
answered on 06 Jul 2016, 02:49 PM
This example does not explain how to catch events from the radio buttons and update the database.  It does not look like the events from the control in the template column are exposed.  Am I missing something?
0
Maria Ilieva
Telerik team
answered on 08 Jul 2016, 08:59 AM
Hi,

When accessing the RadioButton on the server you can attach the needed events like that:
https://msdn.microsoft.com/en-us/library/t3d01ft1.aspx

Regards,
Maria Ilieva
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TreeList
Asked by
Adam
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Adam
Top achievements
Rank 1
Share this question
or