I have a rad grid and I'm using the pop up window for edit mode. I'm just trying to get the value of every control and update the database. The problem is, if the item has not been changed, the value of the text box is just nothing. I've read through some of your examples, but they seem way over complicated. Is there a simple way to just get the text of the text box within the edit window, whether or not it has been changed? here is my code.
protected
void
radgridUpdate(Object source, Telerik.Web.UI.GridCommandEventArgs e)
{
RadTextBox track = (RadTextBox)e.Item.FindControl(
"trackNameInputGrid"
);
Response.Write(track.Text);
}
//radgridUpdate
<
telerik:GridTemplateColumn
DataField
=
"trackName"
HeaderText
=
"Track Name"
SortExpression
=
"trackName"
UniqueName
=
"trackName"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"trackNameOutput"
runat
=
"server"
Text='<%# Bind("trackName") %>'></
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadTextBox
ID
=
"trackNameInputGrid"
Runat
=
"server"
Value='<%# Eval("trackName") %>' >
</
telerik:RadTextBox
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>