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

[Solved] Adding AjaxSetting at runtime does not work

3 Answers 130 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jason Maronge
Top achievements
Rank 1
Jason Maronge asked on 07 Sep 2007, 01:42 AM
I have a webusercontrol in which i add controls dynamically and also attach the AjaxSetting to my ProxyManager.  Problem is that the Ajax calls do not work when the setting is made at runtime.  The ones i did at design time are fine.  I have confirmed that my AjaxSettings collection has all the settings in them on the masterpage before it renders them, but in looking at the html source i do not see them declared.  Is this a known issue with the latest Prometheus build? 

Thanks...

Jason

3 Answers, 1 is accepted

Sort by
0
Jason Maronge
Top achievements
Rank 1
answered on 07 Sep 2007, 01:53 AM
Looks like i found my own answer after trying to recreate the problem in a test app.  Turns out if you have settings declared in the design mode, the ones you add at runtime will not work.  I took all my settings and did then at runtime and it works great. 

Jason
0
Konstantin Petkov
Telerik team
answered on 07 Sep 2007, 09:00 AM
Hello Jason,

This works just find at my end. I have used the attached test sample. Would you please confirm that functions correctly on your side?

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason Maronge
Top achievements
Rank 1
answered on 08 Sep 2007, 06:10 AM
Konstantin,

    I tried your example and it worked fine for me also.  I then tried to create a test app that mimicked my main app and i saw the problem one time and it worked after that every time.  I then added back the setting in the design and now my main app works.  Talk about frustrating.  I spent 4 hours on this last night and another 2 tonight.  I guess I am good for now.  If i can find a way to repro it in a small test app i will let you know. 

Thanks...

Jason

Tags
Ajax
Asked by
Jason Maronge
Top achievements
Rank 1
Answers by
Jason Maronge
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or