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

Ajax not working after upgrade 2010.2.929.35

2 Answers 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ted
Top achievements
Rank 1
Ted asked on 19 Oct 2010, 02:39 PM
I upgraded a project to the latest version 2010.2.929.35 and I had Radcombobox that when changed updated a grid with a Linqdatasource but now changing the combobox won't refresh the grid.  any thoughts on what may have happened?

this is in my masterpage
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />            
            <asp:ScriptReference Path="Scripts/SessionKeepalive.js" />            
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>

 

 

 

this is the combobox
 

 

<telerik:RadComboBox ID="_Stage" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="_Stage_SelectedIndexChanged">
                    <Items>
                        <telerik:RadComboBoxItem runat="server" Text="Pre-Proposal" Value="Pre-Proposal" />
                        <telerik:RadComboBoxItem runat="server" Text="Proposal" Value="Proposal" />
                        <telerik:RadComboBoxItem runat="server" Text="Active" Value="Active" />
                    </Items>
                </telerik:RadComboBox>

 

 

 

grid header
 

 

<telerik:RadGrid ID="_opps" runat="server" DataSourceID="LinqDataSource1" 
            GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" 
        Width="1600px" onitemdatabound="_opps_ItemDataBound" 
        onexcelmlexportrowcreated="RadGrid1_ExcelMLExportRowCreated" 
        onexcelmlexportstylescreated="RadGrid1_ExcelMLExportStylesCreated" 
        onitemcommand="_opps_ItemCommand"  
        onitemcreated="_opps_ItemCreated" >            
            <ExportSettings ExportOnlyData="True" IgnorePaging="True" 
                OpenInNewWindow="True">
                <Excel Format="ExcelML" />
            </ExportSettings>
<MasterTableView AutoGenerateColumns="False" DataSourceID="LinqDataSource1" 
                DataKeyNames="OPPORTUNITYID" UseAllDataFields="True">

 

 

 

 

LinqDatasource where parameters
 

<WhereParameters>
                    <asp:ControlParameter ControlID="_Stage" Name="STAGE" 
                        PropertyName="SelectedValue" Type="String" />
                    <asp:ControlParameter ControlID="_Type" Name="TYPE" 
                        PropertyName="SelectedValue" Type="String" />
                </WhereParameters>

 

I setup the ajax using

private object Content(string id)        
{            
   return Page.Master.FindControl(id);
}
protected void Page_Load(object sender, EventArgs e)
{
   AjaxManager.AjaxSettings.AddAjaxSetting(_opps, _opps);
   AjaxManager.AjaxSettings.AddAjaxSetting(_opps, _number);
}

2 Answers, 1 is accepted

Sort by
0
Ted
Top achievements
Rank 1
answered on 20 Oct 2010, 03:16 PM
OK.  never mind.  I just had to specifically tell it what loading panel to use where before I didn't have too.  Not sure if that is considered a bug or not but it works as long as I specify the Loading panel to use.

Actually the Ajax call was working before, I just wasn't seeing the Loading panel so I didn't think that it was working. 
0
Pavlina
Telerik team
answered on 21 Oct 2010, 09:53 AM
Hi Ted,

I am glad you were able to make the things work. However, I recommend that you review the help articles below for more information about how RadAjax works:
http://www.telerik.com/help/aspnet-ajax/ajxajax.html
http://www.telerik.com/help/aspnet-ajax/ajx-how-it-works.html
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html
http://www.telerik.com/help/aspnet-ajax/ajxloadingpanel.html

Best wishes,
Pavlina
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
Ted
Top achievements
Rank 1
Answers by
Ted
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or