I have a grid, with popup form template. On initial use, I am able to extract the template values (textbox input). But on succeeding input, the value of the textbox (txtName) is always empty even if i change the textbox values. Below is my code:
<
telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="false" runat="server"
AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"
AllowPaging="True" AllowSorting="true" OnItemCommand="gridRequestList_ItemCommand" >
<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" AutoGenerateColumns="false"
AllowAutomaticInserts="false" AllowAutomaticUpdates="false" >
<Columns>
columns here
</Columns>
<EditFormSettings InsertCaption="Setup Info" EditFormType="Template">
<FormTemplate> code here </FormTemplate>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
protected
void grid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName.Equals(RadGrid.PerformInsertCommandName))
{
string txtName = ((TextBox)e.Item.FindControl("txtName")).Text;
}
}
Thanks.
tj