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

Radio Button Inside EditFormType="Template"

4 Answers 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 01 Sep 2015, 06:19 PM
I have a grid that lists data, and I have set the EditFormType to be "Template" and created my edit table.  However, I want to be able to adjust one of the controls in my edit table to be either a RadTextBox or a RadDateTimePicker based on a different control on the same edit table (a RadioButtonList).  I have an event on the RBL when a user changes the SelectedValue, so how can I swap my controls on the page based on the users actions?  Or is there a better way to do it?

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Sep 2015, 01:43 PM
Hello Mike,

This can be achieved both on client or server-side. Let me know which approach you prefer so I can prepare a web site sample for your convenience.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mike
Top achievements
Rank 1
answered on 03 Sep 2015, 02:33 PM
It doesn't matter to me.  How about server side?
0
Accepted
Eyup
Telerik team
answered on 08 Sep 2015, 11:12 AM
Hello Mike,

I've created a sample RadGrid web site to demonstrate how you can achieve this requirement using server-side logic. Please run the attached application and let me know if it helps you.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mike
Top achievements
Rank 1
answered on 08 Sep 2015, 06:23 PM
Perfect, thanks!  My problem ended up being that I was trying to reference the text box and the date picker directly and not infer them from the GridEditableItem.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Mike
Top achievements
Rank 1
Share this question
or