RadAjaxPanel Issue

2 posts, 0 answers
  1. Gajanan
    Gajanan  avatar
    49 posts
    Member since:
    May 2010

    Posted 05 Oct 2010 Link to this post

    Hi Telerik Team,
    I am opening a popup through radwindow. When I perform certain operations on it and click Save button on it, the other controls on my parent page should get disabled.
    In the code behind, while debugging, it shows me all the controls' are enabled false (or disable for convinience). But on the UI I still can edit those controls.

    Previously I was not using radwindow and everything was working fine.
    But I cannot figure out waht has happend now?

    Here is my client side :    
    <telerik:RadAjaxPanel ID="rjxPanel_Receipt" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" >
            <fieldset class="bracket" id="Fieldset1" style="margin-left:0px; overflow:hidden;">       
            <table width="100%" class="ClsTable_Parent">
            <tr style="height:8px;"></tr>
              
            <tr>
                <td style="width:11%;" align="left">
                        <asp:Label ID="lblEventHeader" runat="server" Text="Events:">
                        </asp:Label>
                        <asp:Label ID="lblEvent" runat="server" CssClass="ClsLabelMdt" Text="*"
                            ForeColor="red">
                        </asp:Label>
                </td>
                <td  style="width:25%;">
                        <telerik:RadComboBox ID="rcbEvents" runat="server" MarkFirstMatch="true" AutoPostBack="true"
                                    DataTextField="AccountJournalEventName" DataValueField="AccountJournalEventID" 
                                    OnSelectedIndexChanged="rcbEvents_SelectedIndexChanged"
                                    Width="168px">
                        </telerik:RadComboBox>
                        <asp:Button ID="btnHelp" runat="server" Text="?" width="25px" CssClass="statusButton" OnClientClick="OpenHelp();return false;" />
                 </td>  
                <td  align="left" style="width:9%;padding-left:6px;">
                       <asp:Label ID="lblStatus" runat="server" Text="Status :">
                        </asp:Label>
                </td>
                  <td align="left" style="width:14%;">
                        <asp:TextBox ID="tbStatus" runat="server" CssClass="ClsTextBoxSml" ReadOnly="true" Width="148px"></asp:TextBox>
                        <asp:Button ID="btnStatus" runat="server" Text=".." Width="25px"  OnClientClick="javascript:btnStatus_Click();return false;"/>
      
                 </td>
                 <td align="left" style="width:9%;padding-left:6px;">
                    <asp:Label ID="lblCashReceiptDescription" runat="server" Text="Narration:"></asp:Label>
                        <asp:Label ID="lblMandatoryHeaderDesc" runat="server" CssClass="ClsLabelMdt" ForeColor="Red"
                            Text="*">
                        </asp:Label>
                 </td>  
                 <td align="left" style="width:9%;padding-left:6px;">
                    <asp:TextBox ID="tbDescription" runat="server" CssClass="ClsTextBoxMid" TextMode="MultiLine">
                    </asp:TextBox>
                 </td>    
            </tr>    
             <tr>
                <td style="width:11%;">
                    <asp:Label ID="lblCashReceiptDate" runat="server" Text="Cash Receipt Date:" ></asp:Label>
                    <asp:Label ID="lblDate" runat="server" CssClass="ClsLabelMdt" Text="*" ForeColor="red">
                    </asp:Label>  
                </td>
                 <td style="width:25%;">
                        <telerik:RadDatePicker ID="rdpCashReceiptDate" runat="server" Width="200px">
                            <DateInput ID="DateInput1" runat="server">
                            </DateInput>
                        </telerik:RadDatePicker>
                 </td>
                 <td style="padding-left:10px;width:11%;">
                        <asp:Label ID="lblIsAcounted" runat="server" Text="IsAcounted:" ></asp:Label>
                 </td>
                      
                 <td style="width:25%;">
                        <asp:CheckBox ID="chkIsAccounted" runat="server" Enabled="false">
                        </asp:CheckBox>    
                 </td>
                      
                 <td style="width:11%;">
                           
                 </td>
                 <td style="width:25%;"
                           
                </td>                
                </tr>
                <tr>
                    
                    <td style="padding-left:10px;">
                          
                    </td>
                    <td>
                          
                    </td>
                      
                     <td>
                          
                    </td>
                    <td>
                    </td
                  
                    <td >
                          
                    </td>
                    <td>
                          
                    </td>                              
                </tr
                <tr>              
                    <td style="padding-left:10px;">
                          
                    </td>
                    <td>
                                  
                    </td>
                </tr>                      
                      
           <tr style="height:8px;"></tr>
                  
                  </table>      
            </fieldset>        
             <asp:HiddenField ID="HiddenField_AccCashReciptID" runat="server" />
            <asp:HiddenField ID="HiddenField_EventID" runat = "server" />
            <asp:HiddenField ID ="HiddenField_StatusID" runat="server" />
            <asp:HiddenField ID ="HiddenField_EntityID" runat="server" />
            <asp:HiddenField ID ="HiddenField_AccCashReciptEntityID" runat="server" />
            <asp:HiddenField ID="HiddenField_AccCashReciptDetailID" runat="server" />
            <asp:HiddenField ID="HiddenField_DetalEntityID" runat="server" />
            <asp:HiddenField ID="HiddenField_dIsCSRequired" runat="server" />
            <asp:HiddenField ID="HiddenField_EventTypeID" runat="server" />
            <asp:HiddenField ID="HiddenField_dIsICSRequired" runat="server" />
            <asp:HiddenField ID="HiddenField_IsCallFromReconcile" runat="server"/>
            <asp:HiddenField ID="HiddenField_RoundingUpTo" runat="server" />
            <asp:HiddenField ID="HiddenField_AccountJournalEventDetailID" runat="server" />
     </telerik:RadAjaxPanel>
      
      
      
      
    <Table>
        <tr>
            <td>
            <div id="RestrictionZone" class="module" style="margin-top: 4px; height: 300px; width: 400px;">
                        <telerik:RadWindowManager ID="RadWindowManager1" runat="server"  style="z-index:7001">
                            <Windows>
                                <telerik:RadWindow runat="server" ID="RadWindow1" ReloadOnShow="true" ShowContentDuringLoad="true" Modal="true"
                                    Height="520px" Width="620px" NavigateUrl="ManageStatusChange.aspx" />
                            </Windows>
                        </telerik:RadWindowManager>
                    </div>
            </td>
            </tr>
    </Table>


    On the server side    :
    RadAjaxManager rjxManager = RadAjaxManager.GetCurrent(this);
                //Create a new delegate to handle the AjaxRequest event   
                rjxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(rjxManagerBudgetEntity_AjaxRequest);
                rjxManager.AjaxSettings.AddAjaxSetting(rjxManager, rjxPanel_Receipt);


    When I Click the " btnStatus ", I open a popup.
    After closing it, I want to disable the controls which are inside the ajaxpanel as well as outside.
    Please help me.
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 05 Oct 2010 Link to this post

    Hello Gajanan,

    If you're using the RadAjaxManager and RadAjaxPanel in the same page or in a master/page situation. I would suggest to not combine the two, since the RadAjaxManager will do the same thing as the RadAjaxPanel. Instead, change your RadAjaxPanel to normal Panel control. Like in this help topic:

    http://www.telerik.com/help/aspnet-ajax/ajxcontrolsinajaxpanelandajaxsettings.html

    The reason for doing it that way is because the RadAjaxManager's AjaxRequest event is never raised because the RadAjaxPanel is handling the ajax calls.

    I hope that helps.
Back to Top