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

RaGrid Batch Edit mode not working

2 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
amarbir
Top achievements
Rank 1
amarbir asked on 15 Apr 2016, 09:13 PM

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 Answers, 1 is accepted

Sort by
0
amarbir
Top achievements
Rank 1
answered on 15 Apr 2016, 09:36 PM

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

0
Eyup
Telerik team
answered on 20 Apr 2016, 02:58 PM
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.
Tags
Grid
Asked by
amarbir
Top achievements
Rank 1
Answers by
amarbir
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or