Hi,
I have a radgrid with addnewrecord feature.
when user clicks on addnewrecord button i am getting dropdownlist and textbox inside the grid with update and cancel buttons
when update button is clicked the values are saving to the grid but the controls are still visible instead of hiding.
i tried with popup also but same problem arises
cancel is functioning properly
below is the html grid code.
<telerik:RadGrid ID="rgdAddNewBatch" runat="server" ShowStatusBar="true" AutoGenerateColumns="False"
AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
PageSize="5" AllowSorting="false" AllowMultiRowSelection="False" AlternatingItemStyle-BackColor="White"
AllowPaging="True" BorderWidth="0" GridLines="Both" Width="55%" OnNeedDataSource="rgdAddNewBatch_NeedDataSource"
OnItemCommand="rgdAddNewBatch_ItemCommand" OnInsertCommand="rgdAddNewBatch_InsertCommand"
OnItemUpdated="rgdAddNewBatch_ItemUpdated" OnItemInserted="rgdAddNewBatch_ItemInserted">
<ValidationSettings EnableValidation="false" />
<MasterTableView SkinID="GVHeadrColor" EditMode="EditForms" DataKeyNames="BatchNo"
CommandItemDisplay="Top" PagerStyle-AlwaysVisible="true" InsertItemDisplay="Top"
InsertItemPageIndexAction="ShowItemOnFirstPage">
<ExpandCollapseColumn Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn HeaderText="Batch#" HeaderStyle-CssClass="GVHdrColor"
ItemStyle-CssClass="GvUnRead">
<ItemTemplate>
<asp:Label Text='<%# Eval("BatchNo") %>' ID="lblBatchNo" runat="server" CssClass="lblformfields">
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlBatchNo" runat="server" CssClass="drpdnContent">
<asp:ListItem Text="Select"> </asp:ListItem>
<asp:ListItem Text="1"> </asp:ListItem>
<asp:ListItem Text="2"> </asp:ListItem>
<asp:ListItem Text="3"> </asp:ListItem>
<asp:ListItem Text="4"> </asp:ListItem>
<asp:ListItem Text="5"> </asp:ListItem>
<asp:ListItem Text="6"> </asp:ListItem>
<asp:ListItem Text="7"> </asp:ListItem>
<asp:ListItem Text="8"> </asp:ListItem>
<asp:ListItem Text="9"> </asp:ListItem>
<asp:ListItem Text="10"> </asp:ListItem>
<asp:ListItem Text="11"> </asp:ListItem>
<asp:ListItem Text="12"> </asp:ListItem>
<asp:ListItem Text="13"> </asp:ListItem>
<asp:ListItem Text="14"> </asp:ListItem>
<asp:ListItem Text="15"> </asp:ListItem>
<asp:ListItem Text="16"> </asp:ListItem>
<asp:ListItem Text="17"> </asp:ListItem>
<asp:ListItem Text="18"> </asp:ListItem>
<asp:ListItem Text="19"> </asp:ListItem>
<asp:ListItem Text="20"> </asp:ListItem>
<asp:ListItem Text="21"> </asp:ListItem>
<asp:ListItem Text="22"> </asp:ListItem>
<asp:ListItem Text="23"> </asp:ListItem>
<asp:ListItem Text="24"> </asp:ListItem>
<asp:ListItem Text="25"> </asp:ListItem>
<asp:ListItem Text="26"> </asp:ListItem>
<asp:ListItem Text="27"> </asp:ListItem>
<asp:ListItem Text="28"> </asp:ListItem>
<asp:ListItem Text="29"> </asp:ListItem>
<asp:ListItem Text="30"> </asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Kickoff renewal Batch after days of Kickoff"
HeaderStyle-CssClass="GVHdrColor" ItemStyle-CssClass="GvUnRead">
<ItemTemplate>
<asp:Label Text='<%# Eval("RenBatchdays") %>' ID="lblRenBatchdays" runat="server"
CssClass="lblformfields"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtRenBatchdays" runat="server" SkinID="LookupTextBox"></asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ConfirmText="Delete this Batch?" HeaderText="Action" HeaderStyle-CssClass="GVHdrColor"
ConfirmDialogType="Classic" ConfirmTitle="Delete" CommandName="Delete" Text="Delete"
UniqueName="DeleteColumn">
</telerik:GridButtonColumn>
</Columns>
<%-- <EditFormSettings EditFormType="WebUserControl" CaptionFormatString=""
UserControlName="~/Controls/RenewalPolicy.ascx">
<EditColumn UniqueName="EditCommandColumn">
</EditColumn>
<PopUpSettings Height="200px" Width="800px" Modal="true" />
</EditFormSettings>--%>
<EditFormSettings>
<EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
UniqueName="EditCommandColumn1" CancelText="Cancel edit" >
</EditColumn>
<FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow" Width="100%">
</FormTableButtonRowStyle>
</EditFormSettings>
<CommandItemSettings AddNewRecordText="Add New Batch" RefreshText="Refresh" />
</MasterTableView>
</telerik:RadGrid>
I have a radgrid with addnewrecord feature.
when user clicks on addnewrecord button i am getting dropdownlist and textbox inside the grid with update and cancel buttons
when update button is clicked the values are saving to the grid but the controls are still visible instead of hiding.
i tried with popup also but same problem arises
cancel is functioning properly
below is the html grid code.
<telerik:RadGrid ID="rgdAddNewBatch" runat="server" ShowStatusBar="true" AutoGenerateColumns="False"
AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
PageSize="5" AllowSorting="false" AllowMultiRowSelection="False" AlternatingItemStyle-BackColor="White"
AllowPaging="True" BorderWidth="0" GridLines="Both" Width="55%" OnNeedDataSource="rgdAddNewBatch_NeedDataSource"
OnItemCommand="rgdAddNewBatch_ItemCommand" OnInsertCommand="rgdAddNewBatch_InsertCommand"
OnItemUpdated="rgdAddNewBatch_ItemUpdated" OnItemInserted="rgdAddNewBatch_ItemInserted">
<ValidationSettings EnableValidation="false" />
<MasterTableView SkinID="GVHeadrColor" EditMode="EditForms" DataKeyNames="BatchNo"
CommandItemDisplay="Top" PagerStyle-AlwaysVisible="true" InsertItemDisplay="Top"
InsertItemPageIndexAction="ShowItemOnFirstPage">
<ExpandCollapseColumn Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn HeaderText="Batch#" HeaderStyle-CssClass="GVHdrColor"
ItemStyle-CssClass="GvUnRead">
<ItemTemplate>
<asp:Label Text='<%# Eval("BatchNo") %>' ID="lblBatchNo" runat="server" CssClass="lblformfields">
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlBatchNo" runat="server" CssClass="drpdnContent">
<asp:ListItem Text="Select"> </asp:ListItem>
<asp:ListItem Text="1"> </asp:ListItem>
<asp:ListItem Text="2"> </asp:ListItem>
<asp:ListItem Text="3"> </asp:ListItem>
<asp:ListItem Text="4"> </asp:ListItem>
<asp:ListItem Text="5"> </asp:ListItem>
<asp:ListItem Text="6"> </asp:ListItem>
<asp:ListItem Text="7"> </asp:ListItem>
<asp:ListItem Text="8"> </asp:ListItem>
<asp:ListItem Text="9"> </asp:ListItem>
<asp:ListItem Text="10"> </asp:ListItem>
<asp:ListItem Text="11"> </asp:ListItem>
<asp:ListItem Text="12"> </asp:ListItem>
<asp:ListItem Text="13"> </asp:ListItem>
<asp:ListItem Text="14"> </asp:ListItem>
<asp:ListItem Text="15"> </asp:ListItem>
<asp:ListItem Text="16"> </asp:ListItem>
<asp:ListItem Text="17"> </asp:ListItem>
<asp:ListItem Text="18"> </asp:ListItem>
<asp:ListItem Text="19"> </asp:ListItem>
<asp:ListItem Text="20"> </asp:ListItem>
<asp:ListItem Text="21"> </asp:ListItem>
<asp:ListItem Text="22"> </asp:ListItem>
<asp:ListItem Text="23"> </asp:ListItem>
<asp:ListItem Text="24"> </asp:ListItem>
<asp:ListItem Text="25"> </asp:ListItem>
<asp:ListItem Text="26"> </asp:ListItem>
<asp:ListItem Text="27"> </asp:ListItem>
<asp:ListItem Text="28"> </asp:ListItem>
<asp:ListItem Text="29"> </asp:ListItem>
<asp:ListItem Text="30"> </asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Kickoff renewal Batch after days of Kickoff"
HeaderStyle-CssClass="GVHdrColor" ItemStyle-CssClass="GvUnRead">
<ItemTemplate>
<asp:Label Text='<%# Eval("RenBatchdays") %>' ID="lblRenBatchdays" runat="server"
CssClass="lblformfields"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtRenBatchdays" runat="server" SkinID="LookupTextBox"></asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ConfirmText="Delete this Batch?" HeaderText="Action" HeaderStyle-CssClass="GVHdrColor"
ConfirmDialogType="Classic" ConfirmTitle="Delete" CommandName="Delete" Text="Delete"
UniqueName="DeleteColumn">
</telerik:GridButtonColumn>
</Columns>
<%-- <EditFormSettings EditFormType="WebUserControl" CaptionFormatString=""
UserControlName="~/Controls/RenewalPolicy.ascx">
<EditColumn UniqueName="EditCommandColumn">
</EditColumn>
<PopUpSettings Height="200px" Width="800px" Modal="true" />
</EditFormSettings>--%>
<EditFormSettings>
<EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
UniqueName="EditCommandColumn1" CancelText="Cancel edit" >
</EditColumn>
<FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow" Width="100%">
</FormTableButtonRowStyle>
</EditFormSettings>
<CommandItemSettings AddNewRecordText="Add New Batch" RefreshText="Refresh" />
</MasterTableView>
</telerik:RadGrid>