How to dynamically add combobox object that are the result of WebMethod.

3 posts, 0 answers
  1. wanlop
    wanlop avatar
    16 posts
    Member since:
    Nov 2010

    Posted 03 Sep 2012 Link to this post

    Hi Telerik,

    I'm have created an dynamic RadComboBox object and use it as the result of PageMethods.[WebMethod name].

    When the client side receives this result back I'm try to create a html object from this response and add the html object to div tag on webpage.

    But I found this method it doesn't work properly in many parts such as RadScriptManager not define style-sheet.

    So please advise me for the correct solution or give me an example.

    Best Regards,
    Mr.Wanlop N (Ball)
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 04 Sep 2012 Link to this post

    Hello Wanlop,

    Server controls should not be created on the client out of a string which comes from the server. You should instead create the control on the server in the proper event from the page life cycle (Page_Init, Page_PreInit event).

    I hope this will help.

    Regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. wanlop
    wanlop avatar
    16 posts
    Member since:
    Nov 2010

    Posted 19 Sep 2012 Link to this post

    Thank you for your advice.
    I will try to do follow your advice.
Back to Top