RaGrid Batch Edit mode not working

3 posts, 0 answers
  1. Amarbir
    Amarbir avatar
    5 posts
    Member since:
    Apr 2016

    Posted 15 Apr Link to this post

    I have a grid as described below. I want to do batch editing, but when I click on cell with text nothing happens. I have another grid with exact same configuration which is working fine. I have no idea what I am missing here. Help will be appreciated

     

    <telerik:RadGrid AutoGenerateColumns="false"
                        ID="gridKeyRisks" runat="server" Skin="TIPRSilkSkin" EnableEmbeddedSkins="false"
                        ClientIDMode="Static" OnItemCreated="RiskGridOnItemCreated"
                        OnBatchEditCommand="gridKeyRisks_BatchEditCommand">
                        <MasterTableView DataKeyNames="KeyRiskId"
                        NoMasterRecordsText="No data to display" EditMode="Batch">
                        <BatchEditingSettings EditType="Cell" SaveAllHierarchyLevels="True"></BatchEditingSettings>
                            <Columns>                  
                                <telerik:GridBoundColumn DataField="RiskNumber" HeaderText="#"
                                    HeaderStyle-Font-Size="14px"
                                    HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" ReadOnly="true" />                         
                                <telerik:GridBoundColumn DataField="RiskName" HeaderText="Risk" HeaderStyle-Font-Size="14px"
                                    HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" ReadOnly="true" />
                                <telerik:GridBoundColumn DataField="Impact" HeaderText="Impact" HeaderStyle-Font-Size="14px"
                                    HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" />
                                <telerik:GridBoundColumn DataField="Likelihood" HeaderText="Likelihood" HeaderStyle-Font-Size="14px"
                                    HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" />
                                <telerik:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-Font-Size="14px"
                                    HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" />
                                <telerik:GridBoundColumn DataField="MitigationStrategy" HeaderText="Mitigation Strategy"
                                    HeaderStyle-Font-Size="14px" HeaderStyle-Font-Bold="true" ItemStyle-Font-Size="14px" />
                                <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                                    <ItemTemplate>
                                        <TIPR:GridRowEditButton runat="server" ID="rowEditButton" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>                          
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

  2. Amarbir
    Amarbir avatar
    5 posts
    Member since:
    Apr 2016

    Posted 15 Apr in reply to Amarbir Link to this post

    Nevermind. I fixed it.

    For someone elese having this issue. ClientIDMode="Static" is the problem. You cannot have static client id mode for batch edit apparently

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 20 Apr Link to this post

    Hello Amarbir,

    Please note that setting ClientIDMode="Static" is not supported with any Telerik control in any scenario, not only Batch editing:
    http://www.telerik.com/forums/typeerror-a-get_postbackelement%28-%29-is-undefined#VgZ203DhP06ZuX5wx_iRVg

    Regards,
    Eyup
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top