Hello,
I have a gridview in which I inserted a GridTemplateColumn with a checkbox. The grid is loaded from your code and I can not set the checkbox value in the datatable.
Help
Best regards
Alessia
I have a gridview in which I inserted a GridTemplateColumn with a checkbox. The grid is loaded from your code and I can not set the checkbox value in the datatable.
Help
Best regards
Alessia
<
telerik:RadGrid
ID
=
"G_Permessi"
runat
=
"server"
AllowPaging
=
"true"
Width
=
"100%"
Height
=
"100%"
AutoGenerateColumns
=
"false"
GridLines
=
"Both"
PageSize
=
"13"
AllowSorting
=
"true"
AllowMultiRowSelection
=
"true"
>
<
ClientSettings
AllowKeyboardNavigation
=
"true"
ActiveRowIndex
=
"0"
>
<
Scrolling
AllowScroll
=
"true"
SaveScrollPosition
=
"true"
UseStaticHeaders
=
"True"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
<
ClientEvents
OnRowSelected
=
"G_Permessi_OnRowSelected"
/>
</
ClientSettings
>
<
AlternatingItemStyle
BackColor
=
"#C7E3E3"
/>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
PagerTextFormat
=
"{4} Numero record filtrati: {5}"
/>
<
MasterTableView
runat
=
"server"
TableLayout
=
"Fixed"
DataKeyNames
=
"IdPermesso"
EditMode
=
"InPlace"
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"AttivoDB"
DataField
=
"Attivo"
Display
=
"false"
/>
<
telerik:GridBoundColumn
UniqueName
=
"IdPermesso"
DataField
=
"IdPermesso"
Display
=
"false"
/>
<
telerik:GridBoundColumn
UniqueName
=
"Modulo"
DataField
=
"Modulo"
HeaderText
=
"Modulo"
meta:resourcekey
=
"G_Permessi_Modulo"
>
<
HeaderStyle
Width
=
"100px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Permesso"
DataField
=
"Permesso"
HeaderText
=
"Permesso"
meta:resourcekey
=
"G_Permessi_Permesso"
>
<
HeaderStyle
Width
=
"100px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Descrizione"
DataField
=
"Descrizione"
HeaderText
=
"Descrizione"
meta:resourcekey
=
"G_Permessi_Descrizione"
>
<
HeaderStyle
Width
=
"100px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Attivo"
DataField
=
"Attivo"
HeaderText
=
"Attivo"
meta:resourcekey
=
"Grid_Attivo"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"Chk_Attivo"
OnCheckedChanged
=
"AssegnaPermesso"
AutoPostBack
=
"true"
runat
=
"server"
/>
</
ItemTemplate
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"50px"
/>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>