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

Order of AjaxSetting mattered

1 Answer 35 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 28 Jan 2016, 09:07 PM
It generates incorrect render with this configuration, but works if I rearrange the AjaxSetting. 

 

<div>
        <table style="width:100%" border="1">
            <tr>
                <td>                  
                     <asp:Button ID="btnIgnore" runat="server" Text="Test" />    
                </td>
            </tr>
 
            <tbody id="tblNeededYes" runat="server">
                <tr>
                    <td>
                        <asp:Button ID="btnAdd" runat="server" Text="Add"  />    
                    </td>
                </tr>
                <tr>
                    <td>
                        <telerik:RadGrid id="RadGridGifts" runat="server">
                            <MasterTableView CommandItemDisplay="None" AutoGenerateColumns="false">
                                <Columns>
                                    <telerik:GridBoundColumn HeaderText="Item Description" UniqueName="ItemDescription" DataField="ItemDescription"></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>                        
                    </td>
                </tr>
            </tbody>           
        </table>
     </div>
 
    <!-- This only works if we put btnIgnore AjaxSetting below the btnAdd -->
 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnIgnore">
                <UpdatedControls>                   
                    <telerik:AjaxUpdatedControl ControlID="tblNeededYes" />                   
                </UpdatedControls>
            </telerik:AjaxSetting>
 
            <telerik:AjaxSetting AjaxControlID="btnAdd">
                <UpdatedControls>                   
                    <telerik:AjaxUpdatedControl ControlID="RadGridGifts" />
                </UpdatedControls>   
           </telerik:AjaxSetting
 
        </AjaxSettings>       
    </telerik:RadAjaxManager>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 02 Feb 2016, 04:03 PM
Hi,

Can you please elaborate a bit more on what exactly incorrect rendering you facing and what are the Ajax settings that are causing the issue? Thus we will be able to test the described issue locally and advise you further.

Regards,
Maria Ilieva
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Ajax
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or