Grid saving old values in editforms mode

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    11 posts
    Member since:
    May 2009

    Posted 14 Jul Link to this post

    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!

  2. Patrick
    Patrick avatar
    11 posts
    Member since:
    May 2009

    Posted 02 Aug in reply to Patrick Link to this post

    Anybody?
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top