RadGrid Update button works on laptop but not the server

2 posts, 0 answers
  1. Darin
    Darin avatar
    11 posts
    Member since:
    Jan 2013

    Posted 07 Feb Link to this post

    The following is my grid which uses AllowAutomaticUpdates and updates the row as expected when the Update button is clicked. The problem is when I copy the code to the server, when I click the Update button, nothing happens. Clicking Edit brings up the Update and Cancel buttons as expected. Clicking Cancel takes the row out of Edit mode as expected. The environments appear to be the same. The code is the same. 

     What could be causing Update button not to fire on one computer but works fine on another? What do I look for?

        <telerik:RadGrid ID="rgProducts" runat="server" DataSourceID="sqlProducts" GroupPanelPosition="Top" Skin="Office2010Black" AutoGenerateColumns="False" Width="600px"
            AllowSorting="True" Height="200px" AutoGenerateEditColumn="True" MasterTableView-EditMode="InPlace" AllowAutomaticUpdates="True">
    <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
            <MasterTableView DataSourceID="sqlProducts" DataKeyNames="product_id" >
                <Columns>
                    <telerik:GridBoundColumn DataField="product_id" Visible="false"  HeaderText="Product_id" UniqueName="product_id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="product_name"  HeaderStyle-Width="100px" FilterControlAltText="Filter product_name column" HeaderText="Product" SortExpression="product_name" UniqueName="product_name">
    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="sams_excel_column"  HeaderStyle-Width="30px" DataType="System.Int32" FilterControlAltText="Filter sams_excel_column column" HeaderText="Sams Excel Column" SortExpression="sams_excel_column" UniqueName="sams_excel_column">
    <HeaderStyle Width="30px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="rd_excel_column"  HeaderStyle-Width="30px" DataType="System.Int32" FilterControlAltText="Filter rd_excel_column column" HeaderText="RD Excel Column" SortExpression="rd_excel_column" UniqueName="rd_excel_column">
    <HeaderStyle Width="30px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>    

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 09 Feb Link to this post

    Hi Darin,

    Based on the provided information it would be hard to pinpoint what is causing the behavior. However, you could try couple of things that can narrow the search.

    If AJAX is enabled on the page - disable it. You can easily do this by setting the EnableAJAX property of RadAjaxManager or RadAjaxPanel to false. Then run the page and see if there is a server-side error thrown when updating.

    Also, you can handle the ItemUpdated event for the RadGrid and see if an error is returned from the database. The approach is illustrated in this example.

    Regards,
    Viktor Tachev
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top