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

RAdAjaxManagerProxy problem

5 Answers 113 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
umut
Top achievements
Rank 1
umut asked on 18 Aug 2008, 02:46 PM
Hi, I have a masterpage and a content page. In content page i have 3 radcomboboxes. I want to fill the second one with the selection of first one. So i have a radscriptmanager in masterpage, and radajaxmanagerproxy in the content page. I added update properties to ajaxmanager

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

and in RadEkon1 selectedindexchanged event i have the code to fill Radekon2, also the autopostback=true;

Now, when i made a selection in RadEkon1(radcombobox), it postback the entire content page but does not trigger the selected indexchanged event. Is there an answer for this?
Thanks in advance,
Umut

5 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Aug 2008, 03:25 PM
Hello umut,

Could you please elaborate a little bit more on the issue. Do you observe the same behaviour if you remove the Ajax from the page? Also is the application behaves the same way if you use regular asp UpdatePanels instead RadAjax?

Regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
umut
Top achievements
Rank 1
answered on 19 Aug 2008, 06:31 AM
I remove Ajax as you said from content page, combobox made the postback, but the event still not triggered. Using asp:UpdatePanel did not work for either... I recreate the scenario in another project (as 1 master page with radscriptmanager adn rad ajaxmanager, and the content page with radajaxmanagerproxy and 2 radcombobox), but in my main project it still does not work :(
0
Konstantin Petkov
Telerik team
answered on 19 Aug 2008, 08:31 AM
Hello umut,

Please make sure the event handler is properly attached. You can post the RadComboBox markup as well as the handler code if you need further assistance.

Sincerely yours,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
umut
Top achievements
Rank 1
answered on 19 Aug 2008, 10:21 AM
Here is my combobox markup

<telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" HorizontalAlign="NotSet"
                                    LoadingPanelID=""  Width="300px">
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="width: 170px; height: 18px">
                                                <asp:Label ID="Label14" runat="server" Text="Ekonomik Sýnýflandýrma :" ToolTip="Ekonomik Sýnýflandýrma"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 170px; height: 32px">
                                                <telerik:RadComboBox ID="RadEkon1" runat="server" AutoPostBack="True" DropDownWidth="200px" Height="250px"
                                                    LoadingMessage="Yükleniyor..." OnSelectedIndexChanged="RadEkon1_SelectedIndexChanged"
                                                    Skin="Web20"  ToolTip="Ekonomik Sýnýflandýrma Seçiniz"
                                                    Width="150px" AppendDataBoundItems="True">
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 170px">
                                                <telerik:RadComboBox ID="RadEkon2" runat="server" AutoPostBack="True" DropDownWidth="200px" Height="250px"
                                                    LoadingMessage="Yükleniyor..." OnSelectedIndexChanged="RadEkon2_SelectedIndexChanged"
                                                    Skin="Web20"  ToolTip="Ekonomik Sýnýflandýrma Seçiniz"
                                                    Width="150px" AppendDataBoundItems="True">
                                                </telerik:RadComboBox>
</telerik:RadAjaxPanel>

And here is the event handler

protected void RadEkon1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        checkDdlEkonomik1 = true;
       Some  SQL And data binding to RadEkon2;
    }


0
umut
Top achievements
Rank 1
answered on 19 Aug 2008, 04:49 PM
I solved the problem :) It's because of an asp Validator in the content page. Radcombobox Causevalidation was set to true(defaultly i think) , although i didn't assign it to the validator, it still used it. By the way, thanks t telerik team for helping very fast...

Sincerely, Umut
Tags
Ajax
Asked by
umut
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
umut
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or