Create Radcontrols in Client side

5 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 09 Aug 2011 Link to this post

    can i cretae the following controls in client side

    1. RadComboBox
    2. RadDatePicker
    3.RadTextBox
    4.RadNumericTextBox
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Aug 2011 Link to this post

    Hello Johnny,

    As far as I know these controls cannot be created from Clientside. Check the following forum thread which discusses the similar scenario.
    Create RadCombo Client side? .

    Thanks,
    Shinu.
  3. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 09 Aug 2011 Link to this post

    i already checked that reply before post my question here

    u guys replied at Posted on Jul 22, 2008 (permalink)

    i thought may be the new Versions got this features
  4. Ehab
    Ehab avatar
    1 posts
    Member since:
    Nov 2014

    Posted 11 May 2017 Link to this post

    Is there any thing new on that issue?

    ------------------------------------------------------

    can i cretae the following controls in client side

    1. RadComboBox
    2. RadDatePicker
    3.RadTextBox
    4.RadNumericTextBox

    ------------------------------------------------------

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5323 posts

    Posted 11 May 2017 Link to this post

    Hi all,

    Controls like the Telerik UI for ASP.NET AJAX controls cannot be created purely on the client. They are based on the IScriptControl interface that is part of the MS AJAX framework and require:

    • the server to render their markup
    • the server to register the scripts and styles they need
    • the MS AJAX server-side code to generate their $create() statement that creates their client-side object

    Theoretically it is possible to construct your own $create() statement when all other resources are already loaded on the page, but this will still not take care of the markup creation or the control state and availability in the server code.

    So, if you want to create pages/controls dynamically, I can suggest you look into:

    • invoking partial postbacks to add them on the server
    • OR, using a toolset like Kendo UI for jQuery which is a set of widgets that operated entirely with JavaScript


    Regards,

    Marin Bratanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top