<
telerik:GridTemplateColumn HeaderText="Notification" UniqueName="TemplateColumn"
EditFormColumnIndex="1" ReadOnly="false">
<ItemTemplate>
<%
# Eval("vchNewsText") %>
</ItemTemplate>
<EditItemTemplate>
<span><telerik:RadTextBox runat="server" ID="txtNotification" Width="750px" height="200px"
TextMode="MultiLine"
Text='<%# Bind("vchNewsText") %>'></telerik:RadTextBox><span></span>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
User is supposed to add a new row and fill in the vchNewsText field.
In Grid_ItemCommand procedure I am trying to extract new value from txtNotification TextBox in order to update
dataset.
s1 = (editedItem.FindControl(
"txtNotification") as TextBox).Text;
Result-control not found
Another try was:
Hashtable newValues = new Hashtable();
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
s1=(string)newValues["TemplateColumn"];
Result-empty string;
So how do I extract the new value of Control in Template Column in Grid_ItemCommand procedure ?