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

[Solved] RadAjaxManager with UserControls And masterpage

3 Answers 99 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Debojyoti
Top achievements
Rank 1
Debojyoti asked on 28 May 2009, 09:06 AM
Hi,

I have an .aspx page with a master page and two controls. One control (UserControl1) contains a  linkButton and the other control (UserControl2) contains a RadGrid. My goal is to update the radgrid of UserControl2 on click of the linkbutton of UserControl1. Now I have inserted this code in the aspx page

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ctl00_ContentPlaceHolder_Center_CategorySearch1_LinkButton_AdvanceSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ctl00_ContentPlaceHolder_Center_ViewCategories1_GridView_Report" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

The problem is that the code still does the postback. What shall i do to solve this problem. Do i use the RadAjaxManagerProxy?? if if then in which control shall i write it and how to get the the id of the other control(Button or grid).

One more questation how to get the clientId of the control. shall i use the javascript to get it???


3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 28 May 2009, 11:54 AM
Don't use the ClientID. 

If you declare
<asp:button runat="server" id="btn1" />

then you would do
<telerik:AjaxSetting AjaxControlID="btn1">
0
Debojyoti
Top achievements
Rank 1
answered on 29 May 2009, 04:27 AM
I did that that also not working..... can u give me a bit details??
0
Kevin
Top achievements
Rank 1
answered on 29 May 2009, 10:45 AM
Tags
Ajax
Asked by
Debojyoti
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Debojyoti
Top achievements
Rank 1
Share this question
or