Hi
How do I get radGrids EditIndex or a row that is in editmode in a button click event handler that is outside the RadGrid?
Thanks!!
Neelima
How do I get radGrids EditIndex or a row that is in editmode in a button click event handler that is outside the RadGrid?
Thanks!!
Neelima
Protected
Sub
btnOK_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
btnOK.Click
Dim
phone
As
String
=
String
.Empty
Dim
row
As
GridEditableItem
' How to get the row that is in editmode?
phone =
DirectCast
(row.FindControl(
"txtPhone"
), TextBox).Text
End
Sub
<
telerik:RadGrid
ID
=
"RadgridDestination"
runat
=
"server"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
AutoGenerateColumns
=
"False"
Skin
=
"Sunset"
AllowPaging
=
"True"
GridLines
=
"None"
>
<
GroupingSettings
ShowUnGroupButton
=
"True"
/>
<
ClientSettings
AllowDragToGroup
=
"True"
allowcolumnsreorder
=
"True"
columnsreordermethod
=
"Reorder"
reordercolumnsonclient
=
"True"
>
</
ClientSettings
>
<
MasterTableView
EditMode
=
"InPlace"
DataKeyNames
=
"Destination_ID"
GroupLoadMode
=
"Client"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
CommandName
=
"Select"
Text
=
"Select"
ButtonType
=
"ImageButton"
UniqueName
=
"column1"
ImageUrl
=
"Images/Home-Edit.gif"
>
</
telerik:GridButtonColumn
>
<
telerik:GridBoundColumn
DataField
=
"Destination_ID"
HeaderText
=
"Destination_ID"
visible
=
"False"
UniqueName
=
"Destination_ID"
/>
'
'
'
'
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
Text
=
"Delete"
UniqueName
=
"Delete"
>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:Button
ID
=
"btnOK"
runat
=
"server"
CausesValidation
=
"false"
Text
=
" OK "
/>