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

Radgrid batch editing with columngroup

2 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alfonso
Top achievements
Rank 1
Alfonso asked on 18 Jul 2014, 01:51 PM
Hi,

I'm using 2013.2.611.40 Telerik RadGrid.

I'm trying to use Batch editing mode with a GridTemplateColumn. If I specify ColumnGroup property, when the cell is clicked a JavaScript error is raised in _isColumnEditable (Unable to get property _data of undefined or null reference). If ColumnGroup property is removed all is working fine and edit textbox is shown.

01.<telerik:RadGrid ID="MyGrid" runat="server" AutoGenerateColumns="false"
02.        Skin="Simple"
03.        AllowPaging="False"
04.        AllowSorting="true"
05.        AllowFilteringByColumn="true"
06.        AllowMultiRowSelection="true"
07.        OnPreRender="GridLastPhase_PreRender"
08.        OnNeedDataSource="GridLastPhase_NeedDataSource"
09.        OnItemDataBound="GridLastPhase_ItemDataBound">
10.        <ClientSettings>
11.            <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
12.            <Selecting AllowRowSelect="true" />
13.        </ClientSettings>
14.        <MasterTableView HeaderStyle-HorizontalAlign="Center" Width="99%" EditMode="Batch">
15.            <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
16.            <ColumnGroups>
17.                <telerik:GridColumnGroup Name="LQP1" HeaderText="Last Q Phase 1" HeaderStyle-HorizontalAlign="Center" />
18.            </ColumnGroups>
19.            <Columns>
20.                <telerik:GridTemplateColumn HeaderText="" AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-Width="40px">
21.                    <ItemTemplate>
22.                        <asp:Label ID="lblRowNumber" runat="server"></asp:Label>
23.                    </ItemTemplate>
24.                </telerik:GridTemplateColumn>
25. 
26.                <telerik:GridClientSelectColumn>
27.                    <HeaderStyle Width="40px" HorizontalAlign="Center" />
28.                    <ItemStyle Width="40px" HorizontalAlign="Center" />
29.                </telerik:GridClientSelectColumn>
30. 
31.                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="100%" UniqueName="LQP1_PHASE_DESCRIPTION" HeaderText="Phase" DataType="System.String" DataField="LQP1_PHASE_DESCRIPTION" SortExpression="LQP1_PHASE_DESCRIPTION" ColumnGroupName="LQP1" HeaderStyle-Width="110px" ItemStyle-Width="110px">
32.                    <ItemTemplate>
33.                        <asp:Label ID="lblLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:Label>
34.                    </ItemTemplate>
35.                    <EditItemTemplate>
36.                        <asp:TextBox ID="txtLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:TextBox>
37.                    </EditItemTemplate>
38.                </telerik:GridTemplateColumn>
39.            </Columns>
40.        </MasterTableView>
41. 
42.    </telerik:RadGrid>

Thanks in advance.

Alfonso

2 Answers, 1 is accepted

Sort by
0
Alfonso
Top achievements
Rank 1
answered on 22 Jul 2014, 08:23 AM
Some help with this please? How can I do batch editing work with column groups?

Thanks,

Alfonso
0
Accepted
Konstantin Dikov
Telerik team
answered on 22 Jul 2014, 11:41 AM
Hello Alfonso,

In the context of Batch editing functionality of RadGrid, the version that you are using is rather old and you should know that too many fixes have been introduced to Batch editing since version 2013.2 611. As for the ColumnGroups issue, that issue was fixed in the next version 2013.2 717.

Please upgrade to a newer version of our controls, where the issue is fixed and see if everything is working correctly in your actual project.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Alfonso
Top achievements
Rank 1
Answers by
Alfonso
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or