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

Ajax request in ASCX control

1 Answer 115 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 01 Apr 2011, 08:02 PM

My structure is this... 
    MasterPage  >> Content Page which includes a RadGrid >> In the RadGrid, I am using a UserControl (ascx) for the insert item.

Masterpage has ScriptManager and RadAjaxManager
Contentpage has RadAjaxProxy
UserControl has RadAjaxProxy

The UserControl is basically a table with labels, Radtextboxes and Radcomboboxes.
My usercontrol has this declaration:
----------------------------------------------------------------------------

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uxDirectory">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxProjectName" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>

</telerik:RadAjaxManagerProxy>
-------------------------------------------------------------------------------
uxDirectory and uxProjectName are both RadComboBoxes

The problem I am facing is when a value is changed in the uxDirectory combobox all the  "Load" events based on other controls are being fired.  It is my understanding that since I have autopostback="true" on the uxDirectory, and based upon the declaration above, that only the uxProjectName control will Load.   However, all my controls are reloading.  This is wiping out the values saved, etc.  How can I perform a Ajax postback for a specific control within a ASCX Usercontrol?

-DB

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Apr 2011, 02:51 PM
Hello Dan,

Please note that when Ajax call is used on the page the page lifecycle will not be changed and the Page Events will fire the same way as normal asp page except that just the ajaxified controls are silently updated. You could review the following help topic for more information on this matter.


Greetings,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Dan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or