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.
Thanks in advance.
Alfonso
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