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

Radgrid batch editing with columngroup

1 Answer 19 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:42 PM
Hi,

I'm using 2013.2.611.40 Telerik Radgrid with Batch editing activated.

I have a GridTemplateColumn with ColumnGroup defined. When I click on the cell a JavaScript error is launched in _isColumnEditable (Unable to get property _data of undefined or null reference  in var h=g._data).

If I remove ColumnGroup property from GridTemplateColumn all is working fine and textbox is shown for editing.

 <telerik:RadGrid ID="GridLastPhase" runat="server" AutoGenerateColumns="false"
        Skin="Simple" CssClass="caronte-phase-grid"
        AllowPaging="False"
        AllowSorting="true"
        AllowFilteringByColumn="true"
        AllowMultiRowSelection="true"
        OnPreRender="GridLastPhase_PreRender"
        OnNeedDataSource="GridLastPhase_NeedDataSource"
        OnItemDataBound="GridLastPhase_ItemDataBound">
        <ClientSettings>
            <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <MasterTableView HeaderStyle-HorizontalAlign="Center" Width="99%" EditMode="Batch">
            <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
            <ColumnGroups>
                <telerik:GridColumnGroup Name="LQP1" HeaderText="Last Q Phase 1" HeaderStyle-HorizontalAlign="Center" />
            </ColumnGroups>
            <Columns>
                <telerik:GridTemplateColumn HeaderText="" AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-Width="40px">
                    <ItemTemplate>
                        <asp:Label ID="lblRowNumber" runat="server"></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>           

                <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">
                    <ItemTemplate>
                        <asp:Label ID="lblLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:TextBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>

            </Columns>
        </MasterTableView>

    </telerik:RadGrid>

Thanks in advance,

Alfonso

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Jul 2014, 11:40 AM
Hi Alfonso,

Please refer to the answer in the other thread that you have opened regarding the same issue:
Additionally, for both sides convenience and for better tracking purposes, please try to avoid opening duplicate threads in the future.

If you have any further questions, please refer to the other thread.


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
Konstantin Dikov
Telerik team
Share this question
or