Radio Button Inside EditFormType="Template"

5 posts, 1 answers
  1. Mike
    Mike avatar
    76 posts
    Member since:
    Mar 2013

    Posted 01 Sep 2015 Link to this post

    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?
  2. Eyup
    Admin
    Eyup avatar
    3785 posts

    Posted 03 Sep 2015 Link to this post

    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
  3. Mike
    Mike avatar
    76 posts
    Member since:
    Mar 2013

    Posted 03 Sep 2015 in reply to Eyup Link to this post

    It doesn't matter to me.  How about server side?
  4. Answer
    Eyup
    Admin
    Eyup avatar
    3785 posts

    Posted 08 Sep 2015 Link to this post

    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
  5. Mike
    Mike avatar
    76 posts
    Member since:
    Mar 2013

    Posted 08 Sep 2015 in reply to Eyup Link to this post

    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.
Back to Top