RadAjaxManager and dynamic controls

2 posts, 0 answers
  1. Farjana
    Farjana avatar
    26 posts
    Member since:
    Aug 2013

    Posted 06 Aug 2013 Link to this post


    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?
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 09 Aug 2013 Link to this post

    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.

    Maria Ilieva
    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.
Back to Top