This is a migrated thread and some comments may be shown as answers.

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

2 Answers 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
wanlop
Top achievements
Rank 1
wanlop asked on 03 Sep 2012, 09:13 AM
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 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 04 Sep 2012, 01:36 PM
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.
0
wanlop
Top achievements
Rank 1
answered on 19 Sep 2012, 10:09 AM
Thank you for your advice.
I will try to do follow your advice.
Tags
ComboBox
Asked by
wanlop
Top achievements
Rank 1
Answers by
Ivana
Telerik team
wanlop
Top achievements
Rank 1
Share this question
or