How to pass rowIndex on JavaScript function inside GridView in VB.NET and get total.
<script type="text/javascript">
function GetDisAmt(i) {
var gv = document.getElementById("<%= gv_poitem.ClientID %>");
var rows = gv.getElementsByTagName("tr");
var GrossTotal = 0;
var Totaldisamt = 0;
var tds = rows[i].getElementsByTagName("td");
if (rows[i].getElementsByTagName("td").length > 0) {
var quantity = rows[i].getElementsByTagName("input")[5].value;
var price = rows[i].getElementsByTagName("input")[6].value;
var ddt_cvat = rows[i].getElementsByTagName("select")[0].value;
var disper = rows[i].getElementsByTagName("input")[7].value;
if (disper == null && disper == '' && disper == undefined) {
disper = 0;
}
var withoutdisnet = parseFloat(price) * parseFloat(quantity);
var disamt = parseFloat(withoutdisnet * disper) / 100;
var net = withoutdisnet + (parseFloat(parseFloat(price) * parseFloat(quantity)) * disper) / 100;
console.log(i);
rows[i].getElementsByTagName("input")[8].value = isNaN(disamt) ? "" : disamt;
rows[i].getElementsByTagName("input")[9].value = isNaN(net) ? "" : net;
GrossTotal += isNaN(net) ? 0 : net;
document.getElementById("ContentPlaceHolder1_gv_poitem_ftlblgrossamt").innerHTML = GrossTotal;
Totaldisamt += isNaN(disamt) ? 0 : disamt;
document.getElementById("ContentPlaceHolder1_gv_poitem_lblorderdisamttotal").innerHTML = Totaldisamt;
}
}
</script>
<form id="form1" runat="server" enctype="multipart/form-data" method="post">
<section class="container-fluid block location-block">
<div class="container">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
<div class="row">
<div class="card card-body">
<div class="row">
<div class="col-sm-12" style="margin-top:10px;">
<hr />
<asp:UpdatePanel ID="upnlAccordionPane2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<ajax:Accordion ID="Accordion1" runat="server" HeaderCssClass="headerCssClass" ContentCssClass="contentCssClass" RequireOpenedPane="false" HeaderSelectedCssClass="headerSelectedCss" FadeTransitions="true" TransitionDuration="500" AutoSize="None">
<Panes>
<ajax:AccordionPane ID="AccordionPane4" runat="server" >
<Header> <i class="fa fa-bars"></i> ITEM DETAILS </Header>
<Content>
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<label class="lblstyle">Purchase Request No</label>
<asp:TextBox ID="txtreqn" runat="server" CssClass="form-control" autocomplete="none" Text="10186112" AutoCompleteType="None" placeholder=" "></asp:TextBox>
<ajax:filteredtextboxextender id="fxtxtreqn" runat="server" filtertype="Numbers" targetcontrolid="txtreqn" />
</div>
</div>
<div class="col-sm-7">
<div class="form-group">
<label class="lblstyle"> </label>
<asp:Button ID="btnAdd" runat="server" Text="SELECT FROM REQUEST" OnClick="btnAdd_click" CssClass="btn btn-primary btn-xs" Style="letter-spacing: 1px" />
</div>
</div>
<hr />
<div class="col-sm-12" style="background-color:#ffffff; margin-top: 5px;">
<div class="table-responsive" >
<asp:GridView ID="gv_poitem" runat="server" ShowFooter="true" AutoGenerateColumns="false" OnRowDataBound = "OnRowDataBound" BackColor="White" DataKeyNames="item" CssClass="table table-bordered table-striped" Style="white-space: nowrap; font-size: 11.50px; letter-spacing: 0.25px; margin-top:15px" >
<Columns>
<asp:TemplateField HeaderText="#" HeaderStyle-Width="20px" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
<ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderStyle-Width="10px" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="Left">
<HeaderTemplate>
<asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" OnCheckedChanged="OnCheckedChanged" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkDel" runat="server" AutoPostBack="true" OnCheckedChanged="OnCheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Request <br> No" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="65px" >
<ItemTemplate>
<asp:Label runat="server" ID="lblreqno" Text='<%# Eval("reqno") %> '></asp:Label>
<asp:TextBox ID="txtreqno" ReadOnly="true" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:65px" CssClass="form-control" runat="server" Text='<%# Eval("reqno") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100px">
<ItemTemplate>
<asp:Label runat="server" ID="lblitem" Text='<%# Eval("item") %>'></asp:Label>
<asp:TextBox ID="gw_txtitem" AutoFocus="true" AutoPostBack = "true" autocomplete="none" style="padding-right: 4px; padding-left: 4px; min-width:100px; white-space:nowrap" OnTextChanged="gw_txtitem_TextChanged" CssClass="form-control" runat="server" Text='<%# Eval("item") %>' Visible="false"></asp:TextBox>
<ajax:AutoCompleteExtender ID="AutoCompleteExtender4" runat="server" FirstRowSelected="true" TargetControlID="gw_txtitem" CompletionListCssClass="AutoExtender" CompletionListItemCssClass="AutoExtenderList" CompletionListHighlightedItemCssClass="AutoExtenderHighlight" MinimumPrefixLength="1" EnableCaching="true" CompletionSetCount="1" CompletionInterval="100" ServiceMethod="GetItem">
</ajax:AutoCompleteExtender>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Item Name" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="200px" >
<ItemTemplate>
<asp:Label runat="server" ID="lbldsca" Text='<%# Eval("dsca") %>'></asp:Label>
<asp:TextBox ID="gv_txtdsca" ReadOnly="true" style="white-space:nowrap; padding-right: 4px; padding-left: 4px; min-width:200px; " CssClass="form-control" runat="server" Text='<%# Eval("dsca") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Part No" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="80px">
<ItemTemplate>
<asp:Label runat="server" ID="lblpartno" Text='<%# Eval("partno") %>'></asp:Label>
<asp:TextBox ID="gv_txtpartno" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; width:80px" CssClass="form-control" runat="server" Text='<%# Eval("partno") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UOM" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="50px">
<ItemTemplate>
<asp:Label ID="lbluom" runat="server" Text='<%# Eval("uom").ToString().ToLower() %>'></asp:Label>
<asp:DropDownList ID="gv_dduom" runat="server" Visible = "false" CssClass="custom-select mb-3" style="min-width:50px">
<asp:ListItem Value="nr">nr</asp:ListItem>
<asp:ListItem Value="ton">ton</asp:ListItem>
<asp:ListItem Value="bag">bag</asp:ListItem>
<asp:ListItem Value="pkt">pkt</asp:ListItem>
<asp:ListItem Value="ltr"> ltr</asp:ListItem>
<asp:ListItem Value="nos"> nos</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantity" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="60px" >
<ItemTemplate>
<asp:Label runat="server" ID="lbloqua" Text='<%# Eval("oqua", "{0:N1}") %>'></asp:Label>
<asp:TextBox ID="txtoqua" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:60px; text-align:right" CssClass="form-control" runat="server" Text='<%# Eval("oqua") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unit <br> Price" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="60px">
<ItemTemplate>
<asp:Label runat="server" ID="lblpric" Text='<%# Eval("pric", "{0:N1}") %>'></asp:Label>
<asp:TextBox ID="txtpric" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:60px; text-align:right" CssClass="form-control" onkeyup="GetDisAmt(<%# Container.DataItemIndex + 1 %>);" runat="server" Text='<%# Eval("pric") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="VAT" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="45px" >
<ItemTemplate>
<asp:Label id="lblt_cvat" runat="server" Text='<%# Eval("t_cvat")%>'></asp:Label>
<asp:DropDownList ID="ddt_cvat" runat="server" Visible = "false" CssClass="custom-select mb-3" onChange="GetDisAmt(<%# Container.DataItemIndex + 1 %>);" style="min-width:45px" >
<asp:ListItem Value="0"> 0% </asp:ListItem>
<asp:ListItem Value="5"> 5% </asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Discount <br> %" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="60px" >
<ItemTemplate>
<asp:Label runat="server" ID="lbldiscprc" Text='<% #Eval("discprc", "{0:F2}") %>' ></asp:Label>
<asp:TextBox ID="txtdiscprc" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:60px; text-align:right" onkeyup="GetDisAmt(<%# Container.DataItemIndex + 1 %>);" CssClass="form-control" runat="server" Text='<%# Eval("discprc", "{0:N1}") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Discount <br> Amount" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="60px" >
<ItemTemplate>
<asp:Label runat="server" ID="lblldam" Text='<%# Eval("ldam", "{0:N}") %>'></asp:Label>
<asp:TextBox ID="txtldam" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:60px; text-align:right" onkeyup="GetDisAmt(<%# Container.DataItemIndex + 1 %>);" CssClass="form-control" runat="server" Text='<%# Eval("ldam", "{0:N1}") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
<FooterTemplate>
Total Discount Amount : <br />
Gross Total :
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Net" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Font-Bold="true" HeaderStyle-Width="80px">
<ItemTemplate>
<asp:Label runat="server" ID="lblamta" Text='<% #Eval("amta", "{0:F2}") %>' ></asp:Label>
<asp:TextBox ID="txtamta" ReadOnly="true" style="padding-right: 4px; padding-left: 4px; min-width:80px; white-space:nowrap; text-align:right" CssClass="form-control" AutoCompleteType="None" autocomplete="none" runat="server" Text='<%# Eval("amta", "{0:N1}") %>' Visible="false"></asp:TextBox>
</ItemTemplate>
<FooterTemplate>
<asp:label ID="lblorderdisamttotal" runat="server" ></asp:label>
<br />
<asp:label ID="ftlblgrossamt" runat="server" ></asp:label>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delivery <br> Date" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="65px" >
<ItemTemplate>
<asp:Label ID="lblddta" runat="server" Text='<%# Eval("ddta", "{0:dd-MM-yy}")%>'></asp:Label>
<asp:TextBox ID="gv_txtddta" onkeydown="return false;" style="padding-right: 4px; padding-left: 4px; white-space:nowrap; min-width:65px; background-color:#ffffff" CssClass="form-control datepicker" runat="server" Text='<%# Eval("ddta", "{0:dd-MM-yy}")%>' Visible="false"></asp:TextBox>
<ajax:CalendarExtender ID="clgv_txtddta" runat="server" Enabled="True" Format="dd-MM-yy" TargetControlID="gv_txtddta" CssClass="cltxtddta" > </ajax:CalendarExtender>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Spec" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" HeaderStyle-Width="20px" >
<ItemTemplate>
<asp:Label ID="gv_lbldet_text" runat="server" CssClass="viscol" Text='<%# Eval("det_text") %>'></asp:Label>
<asp:label runat="server" ID="gv_lblspecupload" ForeColor="#3fa46a" Font-Size="10px" Style="margin-bottom: 0px;" Visible="false"></asp:label>
<asp:TextBox ID="gv_txtdet_text" style=" white-space:nowrap; min-width:20px;" CssClass="form-control viscol" runat="server" Text='<%# Eval("det_text") %>' Visible="false"></asp:TextBox>
<asp:LinkButton ID="gv_btnSpecView" runat="server" CssClass="" ForeColor="#E17E26" Font-Size="10px" OnClick="gv_btnSpecView_Click" CommandArgument ="<%# Container.DataItemIndex %>"> VIEW </asp:LinkButton>
<asp:LinkButton ID="gv_btnSpecAdd" runat="server" Visible="false" CssClass="" ForeColor="#E17E26" Font-Size="10px" OnClick="gv_btnSpecAdd_Click" CommandArgument="<%# Container.DataItemIndex %>"> UPLOAD </asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Button ID="gv_btnUpdate" runat="server" CssClass="btn btn-primary btn-xs" Text="SAVE" OnClick="gv_Update" Visible="false" style="margin-bottom:15px; background-color:#949494; color:#ffffff; border:1px solid #949494" />
<asp:Button ID="gv_btnDelete" runat="server" CssClass="btn btn-primary btn-xs" OnClientClick="return confirm('Are you sure to delete the PO Item ?')" Text="DELETE" style="margin-bottom:15px; background-color:#949494; color:#ffffff; border:1px solid #949494" OnClick="gv_Delete" Visible="false" />
<%--START View Specification from Popup --%>
<asp:Panel ID="pnlSpecitemDetailsView" runat="server" CssClass="modalPopup" Style="display: none;">
<div style="overflow-y: auto; overflow-x: hidden; max-height: 800px; min-width:600px">
<div class="modal-header">
<asp:Label ID="lblitemspecview" runat="server" CssClass="modal-title"></asp:Label>
<asp:Label ID="lblitemspecview_item" runat="server" CssClass="modal-title"></asp:Label>
</div>
<div class="modal-body">
<div class="row">
<asp:TextBox ID="txtitemspecview" ReadOnly="true" Style="background-color:#ffffff" runat="server" TextMode="MultiLine" Cols="10" Rows="15" CssClass="form-control" placeholder=""></asp:TextBox>
</div>
<div class="modal-footer">
<div class="row">
<%-- <div class="col-md-12">--%>
<asp:Button ID="btnclose" runat="server" Text="CLOSE" CssClass="btn btn-primary btn-xs" />
<%-- </div>--%>
</div>
</div>
</div>
</div>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpeSpeitemView" runat="server" PopupControlID="pnlSpecitemDetailsView"
TargetControlID="LinkButton20" BehaviorID="mpeSpeitemView" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</ajax:ModalPopupExtender>
<asp:LinkButton ID="LinkButton20" runat="server"></asp:LinkButton>
<%--END View Specification from Popup --%>
</div>
</div>
<%-- START Add Records from Request No --%>
<asp:Panel ID="pnlAddUpdateitemDetails" runat="server" CssClass="modalPopup" Style="display: none;">
<div style="overflow-y: auto; overflow-x: hidden; max-height: 800px;">
<div class="modal-header">
<asp:Label ID="lblHeading" runat="server" CssClass="modal-title"></asp:Label>
</div>
<div class="modal-body">
<div class="row">
<div class="table-responsive" style="margin-top: 5px;">
<div class="" style="height: 200px; overflow: auto;">
<asp:GridView ID="gw_requistion_ref" runat="server" CssClass="table table-bordered table-striped" Style="white-space: nowrap; font-size: 12px; letter-spacing: 0.50px" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderText="#" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:CheckBox ID="checkAll" runat="server" Checked="true" onclick="checkAll(this);" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" Checked="true" runat="server" onclick="Check_Click(this)" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="item" HeaderText="item" Visible="false" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="reqno" HeaderText="Request No" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="item" HeaderText="Item Code" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="dsca" HeaderText="Item Name" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="det_text" ItemStyle-CssClass="viscol" HeaderStyle-Font-Bold="true" HeaderStyle-CssClass="viscol" HeaderText="Specification" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="partno" HeaderText="Part No" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="uom" HeaderText="UOM" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="oqua" HeaderText="Quantity" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="right" ItemStyle-HorizontalAlign="Right" />
<asp:BoundField DataField="pric" HeaderText="Unit Price" HeaderStyle-Font-Bold="true" DataFormatString="{0:N}" HeaderStyle-HorizontalAlign="right" ItemStyle-HorizontalAlign="Right" >
<ItemStyle HorizontalAlign="right" />
</asp:BoundField>
<asp:BoundField DataField="ddta" DataFormatString="{0:dd-MM-yy}" HeaderText="Delivery Date" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" />
</Columns>
<EmptyDataTemplate>
<div>No records found</div>
</EmptyDataTemplate>
</asp:GridView>
</div>
</div>
</div>
<div class="modal-footer">
<div class="row">
<%-- <div class="col-md-12">--%>
<asp:Button ID="btnselect" runat="server" Text="IMPORT" CssClass="btn btn-primary btn-xs" />
<asp:Button id="btnCancel" runat="server" Text="CLOSE" CssClass="btn btn-primary btn-xs" />
<%-- </div>--%>
</div>
</div>
</div>
</div>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpeAddUpdateitem" runat="server" PopupControlID="pnlAddUpdateitemDetails"
TargetControlID="LinkButton4" BehaviorID="mpeAddUpdateitem" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</ajax:ModalPopupExtender>
<asp:LinkButton ID="LinkButton4" runat="server"></asp:LinkButton>
<%-- END Add Records from Request No --%>
<%--START Error Mesasage from Popup --%>
<asp:Panel ID="errormsg" runat="server" CssClass="modalPopup" Style="display: none;">
<div style="overflow-y:auto; overflow-x:hidden; max-height:800px;">
<div class="modal-header">
<asp:Label ID="Label1" runat="server" CssClass="modal-title"><i class="fa fa-exclamation-triangle"></i> ERROR</asp:Label>
</div>
<div class="modal-body">
<div class="row">
<asp:Label ID="lblreqnerror" runat="server" style="font-size:14px; letter-spacing:1px; " ForeColor="#ff3636" Visible="false" > Please enter valid Purchase Request No. </asp:Label>
</div>
<div class="modal-footer" style="margin-top:15px;">
<div class="row">
<asp:Button ID="btncloseerror" runat="server" Text="CLOSE" CssClass="btn btn-primary btn-xs" />
</div>
</div>
</div>
</div>
</asp:Panel>
<ajax:ModalPopupExtender ID="mperrormsg" runat="server" PopupControlID="errormsg"
TargetControlID="LinkButton5" BehaviorID="mperrormsg" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</ajax:ModalPopupExtender>
<asp:LinkButton ID="LinkButton5" runat="server"></asp:LinkButton>
<%--END Error Mesasage from Popup --%>
<%--START Add Specification from Popup in Grid View --%>
<asp:Panel ID="pnlgvadddet_text" runat="server" CssClass="modalPopup" Style="display: none;" >
<div style="overflow-y: auto; overflow-x: hidden; max-height: 800px; min-width:600px">
<div class="modal-header">
<asp:Label ID="gv_lblitemspecview" runat="server" CssClass="modal-title"> </asp:Label>
</div>
<div class="modal-body">
<div class="row">
<asp:TextBox ID="txtitemspecrowIndex" runat="server" CssClass="form-control viscol" placeholder=""></asp:TextBox>
<asp:TextBox ID="gv_txtitemspec" runat="server" TextMode="MultiLine" Cols="10" Rows="15" CssClass="form-control" ></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" SetFocusOnError="true" ControlToValidate="gv_txtitemspec" ValidationGroup="additemspecx" ForeColor="#ff3636" Font-Size="11px" Style="letter-spacing: 1px"><i class="fa fa-exclamation-triangle"></i> Required!</asp:RequiredFieldValidator>
</div>
<div class="modal-footer">
<div class="row">
<%-- <div class="col-md-12">--%>
<asp:Button ID="gv_btndet_text" runat="server" Text="SUBMIT" CssClass="btn btn-primary btn-xs" ValidationGroup="additemspecx" />
<asp:Button ID="Button7" runat="server" Text="CLOSE" CssClass="btn btn-primary btn-xs" />
<%-- </div>--%>
</div>
</div>
</div>
</div>
</asp:Panel>
<ajax:ModalPopupExtender ID="mp_gvadddet_text" runat="server" PopupControlID="pnlgvadddet_text"
TargetControlID="LinkButton3" BehaviorID="mp_gvadddet_text" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</ajax:ModalPopupExtender>
<asp:LinkButton ID="LinkButton3" runat="server"></asp:LinkButton>
<%--END Add Specification from Popup --%>
</div>
<div class="col-sm-12" style="margin-bottom:10px;">
<hr style="margin-top: 5px" />
<asp:Label runat="server" ID="lblerroritemgrid" Style="font-size:12px; color:#ff3636; letter-spacing:1px" Visible="false" ><i class="fa fa-exclamation-triangle"></i> Add atleast one item for the purchase order!</asp:Label>
</div>
<div class="col-sm-12">
<div class="form-group">
<asp:Button ID="Button4" runat="server" Text="SAVE / NEXT" ValidationGroup="AccordionPane4" CssClass="btn btn-primary btn-xs" Style="letter-spacing: 1px" />
</div>
</div>
</Content>
</ajax:AccordionPane>
<ajax:AccordionPane ID="AccordionPane5" runat="server" Visible="false">
<Header> <i class="fa fa-bars"></i> TEST DETAILS </Header>
<Content>
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<label class="lblstyle">Test Details</label>
</div>
</div>
</div>
</Content>
</ajax:AccordionPane>
</Panes>
</ajax:Accordion>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</div>
</div>
</section>
</form>
</asp:Content>