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

RadGrid Update button works on laptop but not the server

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Darin
Top achievements
Rank 1
Darin asked on 08 Feb 2016, 04:06 AM

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>    

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 09 Feb 2016, 12:04 PM
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
Tags
Grid
Asked by
Darin
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or