RadGrid Batch Edit Problem

1 posts, 0 answers
  1. Jalen
    Jalen avatar
    9 posts
    Member since:
    Oct 2016

    Posted 30 Nov 2017 Link to this post

    I would like to use RadGrid in Batch Edit mode.

    Here is my code:

    <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="gvOpSetting" AutoGenerateColumns="false" AllowPaging="true" MasterTableView-TableLayout="Fixed"
        OnNeedDataSource="gvOpSetting_NeedDataSource" AllowMultiRowSelection="true" OnItemDataBound="gvOpSetting_ItemDataBound" OnItemCommand="gvOpSetting_ItemCommand">
        <MasterTableView NoMasterRecordsText="No Data!!" DataKeyNames="WStationID,CtrlOrder" CommandItemDisplay="Top" EditMode="Batch" AutoGenerateColumns="false" Width="500px">
            <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click"/>
            <Columns>
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="WStationID" Visible="false" HeaderStyle-Width="250px" />
                <telerik:GridBoundColumn DataField="CtrlOrder" Visible="false" />
                <telerik:GridBoundColumn DataField="CtrlItem" HeaderText="CtrlItem" />
                <telerik:GridNumericColumn DataField="StandardValue" HeaderText="StandardValue"
                    SortExpression="StandardValue" UniqueName="StandardValue">
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="TolerancePlus" HeaderText="TolerancePlus"
                    SortExpression="TolerancePlus" UniqueName="TolerancePlus">
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="ToleranceMinus" HeaderText="ToleranceMinus"
                    SortExpression="ToleranceMinus" UniqueName="ToleranceMinus">
                </telerik:GridNumericColumn>
            </Columns>
            <NoRecordsTemplate>
                <table width="300px" border="0" cellpadding="20" cellspacing="20">
                    <tr>
                        <td align="center">
                            <h2 style="color: black; font-size: xx-large; font-weight: bold;">No Data!!</h2>
                        </td>
                    </tr>
                </table>
            </NoRecordsTemplate>
        </MasterTableView>
        <PagerStyle Mode="NextPrevAndNumeric" />
        <ClientSettings EnableRowHoverStyle="false" EnablePostBackOnRowClick="true" AllowKeyboardNavigation="true">
            <ClientEvents OnRowDblClick="rowDblClick" OnPopUpShowing="onPopUpShowing"/>
        </ClientSettings>
    </telerik:RadGrid>

     

    When I click cell into edit mode, a textbox show for a second, then it closed immediately.

    I couldn't edit at all. 

    Which setting did I miss?

     

     

Back to Top