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

RadAjaxManager and dynamic controls

1 Answer 86 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Farjana
Top achievements
Rank 1
Farjana asked on 06 Aug 2013, 11:16 AM
Hi,

I am creating multiple RadeDatePickers dynamically in .cs file and i need to update a label text whenever the SelectedDateChanged event is called. With autopostback set to "true", it is possible. but i dont want to trigger a complete post back every time. I just want to update the label. I have used something like this:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(txtphasestartdate, lblphasestartdateCW); But it is throwing error arguement is null.parameter name:page. when i browsed it has been told that RadAjaxManager1.AjaxSettings.AddAjaxSetting can be done only in page_load or page_event methods. Since the controls are created at a later point in the page, i cannot do it in page_load method. Please suggest on this?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Aug 2013, 10:31 AM
Hi Farjana,

I would suggest you to add the dynamic created control into a container control which is registered ont he page(for example asp Panel). Then you could ad this panel into the RadAjaxSetting instead the dynamic independent controls.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
Ajax
Asked by
Farjana
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or