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

Grid saving old values in editforms mode

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 15 Jul 2016, 03:32 AM

Hello,

My grid is saving the old value for New Topic Number. Please assist.

<telerik:RadGrid ID="gridApprovedTopics" runat="server" GridLines="None" DataSourceID="dsApprovedTopics"
                AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" Skin="WebBlue" AllowAutomaticUpdates="True" OnItemCommand="gridApprovedTopics_ItemCommand">
                <HeaderContextMenu>
                    <CollapseAnimation Type="OutQuint" Duration="200" />
                </HeaderContextMenu>
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="Old_Topic_Number" EditMode="EditForms">
                    <EditFormSettings>
                        <EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditImageUrl="../App_Themes/WebBlue2/Grid/Edit.gif"
                            UpdateImageUrl="../App_Themes/WebBlue2/Grid/Update.gif" CancelImageUrl="../App_Themes/WebBlue2/Grid/Cancel.gif">
                        </EditColumn>
                    </EditFormSettings>
                    <CommandItemTemplate>
                        <div style="padding: 5px 5px; float: right;">
                            <span style="margin-right: 15px">
                                <asp:LinkButton ID="btnClearFilters" runat="server" CommandName="ClearFilters" Text="Clear Filters" />
                            </span>
                            <asp:Button runat="server" ID="buttonRefresh" CommandName="Rebind" CssClass="rgRefresh" Text=" " />
                            <asp:LinkButton ID="btnRefresh" runat="server" CommandName="RebindGrid" Text="Refresh" />
                        </div>
                    </CommandItemTemplate>
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit" ButtonType="ImageButton" EditImageUrl="../App_Themes/WebBlue2/Grid/Edit.gif" />
                        <telerik:GridBoundColumn DataField="Technology_Group_Abbreviation" HeaderText="Technology Office"
                            SortExpression="Technology_Group_Abbreviation" UniqueName="Technology_Group_Abbreviation" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="PM_User_Name" HeaderText="PM" SortExpression="PM_User_Name" UniqueName="PM_User_Name" ReadOnly="true" />
                        <telerik:GridHyperLinkColumn DataNavigateUrlFields="Topic_Id" DataNavigateUrlFormatString="~/Topics/CreateViewTopic.aspx?id={0}&p=0"
                            HeaderText="Topic Number" DataTextField="Old_Topic_Number" UniqueName="Old_Topic_Number" AllowFiltering="False" ShowFilterIcon="False" ShowSortIcon="False" Target="_blank" />
                        <telerik:GridBoundColumn DataField="Status_Name" HeaderText="Status" SortExpression="Status_Name" UniqueName="Status_Name" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="TPOC" HeaderText="TPOC" SortExpression="TPOC" UniqueName="TPOC" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="New_Topic_Number" UniqueName="New_Topic_Number" HeaderText="New Topic Number" Display="false" />
                    </Columns>
                </MasterTableView>
                <ClientSettings EnablePostBackOnRowClick="false" AllowColumnsReorder="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <FilterMenu>
                    <CollapseAnimation Type="OutQuint" Duration="200" />
                </FilterMenu>
            </telerik:RadGrid>

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 02 Aug 2016, 08:40 PM
Anybody?
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Share this question
or