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

Cannot Ajixify radgrid.

1 Answer 25 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 31 Aug 2009, 11:28 PM
For some reason the ajax loading panel is just not working on with my radgrid.  When I try to page or edit or anything it does a normal page refresh.  I am assuming I missed a step somewhere.  I setup my web.config per the asp.net ajax instructions and here is my code.  Any ideas?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="xxx.aspx.vb" Inherits="xxx" 
    Title="xxx" MasterPageFile="~/main.master" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="CPHMain" runat="Server"
    <span style="font-size: 2em; color: white;">xxx</span> 
    <br /> 
    <asp:Panel ID="pnlMain" runat="server"
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" 
            DataSourceID="SqlDataSourceGlobalVars" GridLines="None" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" 
            AllowSorting="True" PageSize="20" ShowFooter="True" Skin="WebBlue" ShowStatusBar="True"
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSourceGlobalVars" 
                AllowSorting="False" ShowFooter="False" CommandItemDisplay="TopAndBottom"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id" ReadOnly="True" 
                        SortExpression="id" UniqueName="id" Visible="False"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="config_param" HeaderText="Parameter" SortExpression="config_param" 
                        UniqueName="config_param"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="config_data" HeaderText="Value" SortExpression="config_data" 
                        UniqueName="config_data"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="config_desc" HeaderText="Description" SortExpression="config_desc" 
                        UniqueName="config_desc"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="datemod" DataType="System.DateTime" HeaderText="Last Modified" 
                        ReadOnly="True" SortExpression="datemod" UniqueName="datemod"
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSourceGlobalVars" runat="server" ConnectionString="<%$ ConnectionStrings:PrimaryConnectionString %>" 
            SelectCommand="SELECT [id], [config_param], [config_data], [datemod], [config_desc] FROM [site_config]" 
            UpdateCommand="UPDATE site_config SET config_desc = @config_desc , datemod = GETDATE(), config_data = @config_data, config_param = @config_param WHERE (id = @id)" 
            DeleteCommand="DELETE FROM site_config WHERE (id = @id)" InsertCommand="INSERT INTO site_config(config_desc, datemod, config_data, config_param) VALUES (@config_desc, GETDATE(), @config_data, @config_param)"
            <DeleteParameters> 
                <asp:Parameter Name="id" /> 
            </DeleteParameters> 
            <UpdateParameters> 
                <asp:Parameter Name="config_desc" /> 
                <asp:Parameter Name="config_data" /> 
                <asp:Parameter Name="config_param" /> 
                <asp:Parameter Name="id" /> 
            </UpdateParameters> 
            <InsertParameters> 
                <asp:Parameter Name="config_desc" /> 
                <asp:Parameter Name="config_data" /> 
                <asp:Parameter Name="config_param" /> 
            </InsertParameters> 
        </asp:SqlDataSource> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="1000" > 
        <asp:Image ID="imageloading" runat="server" ImageUrl="~/images/loading.gif" /> 
        </telerik:RadAjaxLoadingPanel> 
    </asp:Panel> 
</asp:Content> 
 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Sep 2009, 04:54 PM
Hi Jason,

I went through your code and it looks fine to me. At this point in order to find a quick solution/fix of this matter I will ask you to open a formal support ticket and send me a simple runnable application. Thus I could do all my best to help you in further in resolving this issue.

Additionally, please review the following online example which is working as expected and let me know what is the difference in your case:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Jason
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or