Hello!
I've spent quite a bit of time researching this, but could not find a solution - so please forgive me if I'm posting a new thread on something that has already been answered.
The functionality I'm looking for is to simply enable/disable a textbox inside of a template column that belongs to a radgrid on that radgrid's client event: OnRowSelected (using a GridClientSelectColumn). I understand how to retrieve actual values via ClientDataKeyNames, but I'm looking to just manipulate the actual textbox control - not retrieve any values. Is there anything you could point me to in order to get me going in the right direction? Any help is greatly appreciated!
(Desired behavior: OnRowSelected --> txtScore.disabled = false;)
Here's my radgrid:
I've spent quite a bit of time researching this, but could not find a solution - so please forgive me if I'm posting a new thread on something that has already been answered.
The functionality I'm looking for is to simply enable/disable a textbox inside of a template column that belongs to a radgrid on that radgrid's client event: OnRowSelected (using a GridClientSelectColumn). I understand how to retrieve actual values via ClientDataKeyNames, but I'm looking to just manipulate the actual textbox control - not retrieve any values. Is there anything you could point me to in order to get me going in the right direction? Any help is greatly appreciated!
(Desired behavior: OnRowSelected --> txtScore.disabled = false;)
Here's my radgrid:
<
telerik:RadGrid
runat
=
"server"
ID
=
"gridEmployees"
AllowMultiRowSelection
=
"true"
OnNeedDataSource
=
"gridEmployees_NeedDataSource"
Width
=
"25%"
OnDataBinding
=
"gridEmployees_DataBinding"
AutoGenerateColumns
=
"false"
Style
=
"margin: 10px auto 0px auto;"
GridLines
=
"None"
Skin
=
"WebBlue"
EnableAJAX
=
"true"
ClientSettings-EnablePostBackOnRowClick
=
"false"
>
<
MasterTableView
Name
=
"EmployeeTable"
ClientDataKeyNames
=
"EmployeeID, FirstName"
DataKeyNames
=
"EmployeeID"
AllowMultiColumnSorting
=
"False"
>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
>
</
telerik:GridClientSelectColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"FirstName"
HeaderText
=
"Employee"
AllowFiltering
=
"true"
HeaderButtonType
=
"TextButton"
DataField
=
"FirstName"
UniqueName
=
"FirstName"
FilterControlWidth
=
"65px"
/>
<
telerik:GridTemplateColumn
HeaderText
=
"Score"
>
<
ItemStyle
Width
=
"100px"
/>
<
ItemTemplate
>
<
telerik:RadTextBox
ID
=
"txtScore"
runat
=
"server"
Enabled
=
"false"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Notes"
>
<
ItemStyle
Width
=
"100px"
/>
<
ItemTemplate
>
<
telerik:RadTextBox
ID
=
"txtNotes"
runat
=
"server"
Enabled
=
"false"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Failed"
>
<
ItemStyle
Width
=
"20px"
/>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"chkFailed"
Text
=
""
runat
=
"server"
Enabled
=
"false"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
UseClientSelectColumnOnly
=
"true"
/>
<
ClientEvents
OnRowSelected
=
"RowSelected"
OnRowDeselected
=
"RowDeselected"
/>
</
ClientSettings
>
</
telerik:RadGrid
>