TreeList TemplateColumn RadioButtons

4 posts, 0 answers
  1. Adam
    Adam avatar
    3 posts
    Member since:
    Jul 2016

    Posted 01 Jul Link to this post

    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.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 06 Jul Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    3 posts
    Member since:
    Jul 2016

    Posted 06 Jul in reply to Maria Ilieva Link to this post

    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?
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 08 Jul Link to this post

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