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

Radajaxpanel showModalDialog

1 Answer 70 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Diana
Top achievements
Rank 1
Diana asked on 27 Sep 2010, 08:18 AM
when I click one button and then showModalDialog wjhen I close this modaldialog window,the RadAjaxLoadingPanl appear。I don't want it to appear.
I set this in masterPage but it no use
<telerik:AjaxSetting AjaxControlID="button">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>

In content page :
<td style="width: 500px; height: 30px;">
                                                        <telerik:RadAjaxPanel ID="rapText" runat="server">
                                                            <telerik:RadComboBox ID="rcbText" runat="server" Width="493px" Style="height: auto;"
                                                                MarkFirstMatch="true" OnLoad="rcbText_Load" EnableLoadOnDemand="true" EmptyMessage="documentSelectionListBox "
                                                                AutoPostBack="True" OnSelectedIndexChanged="rcbText_SelectedIndexChanged"
                                                                Skin="WebBlue" MaxHeight="100px">
                                                            </telerik:RadComboBox>
                                                        </telerik:RadAjaxPanel>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="button" runat="server" Style="width: 75px; text-align: center; height: 25px;" Text="btnText" />
                                                    </td>

 function showPage() {
                var result = window.showModalDialog("Text.aspx", "", "dialogWidth:400px;dialogHeight:" + dialogheight + "px;toolbar=no,title:no;location=no;scroll:no;status:no;menubar=no;resizable:no;");
                var s = document.getElementById("<%=txtText.ClientID %>");
                s.Text = result;
                $find("<%=rapText.ClientID %>").ajaxRequest("ctl00_ContentPlaceHolder1_button");
            }
content code behind
this.button.Attributes.Add("onclick", "return showPage()");

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Sep 2010, 11:42 AM
Hi Diana,

There are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios. Also please note that you should not add RadAjaxLoadingPanel as ajax initiator or updated control into the RadAjaxManager settings. It should be add only ad default LoadingPanel for the Manager or as LoadingPanelID to a specific Ajax setting.


All the best,
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
Diana
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or