Dynamically Create Button on Client

2 posts, 0 answers
  1. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 17 Mar 2013 Link to this post

    Is it possible to dynamically create a RadButton on the client? 

    I tried

    var MyBtn = new Telerik.Web.UI.RadButton();

    When I do this, I get an error:

    Sys.ArgumentException: Value must be a DOM element.
    Parameter name: element

    Is it possible to do this?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Mar 2013 Link to this post


    As far as I know, it is not possible to create a RadButton from client-side code. The main RadControls like RadButton, RadComboBox etc cannot be created from client-side code. To add items such as adding items to RadComboBox using JavaScript is possible.

Back to Top