Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- </div>
- <script>
- $("[id*= ddl_status]").on("change", function () {
- var status = $(this).val();
- $drop = $(this);
- $check = $drop.closest().find('[id*= Idtbl_property]');
- $id = $check.val();
- alert(drop);
- $.ajax({
- type: "POST",
- url: "/webservices/recordStatusChange.asmx/SaveChange",
- data: '{propid:' + $id + ',status:' + status + + '}',
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (response) {
- alert("Thank you for providing your input");
- $("[id*= ddl_Reason]").hide();
- }
- }).fail(function (error) {
- alert(error.StatusText);
- })
- });
- </script>
- <div class="content">
- <asp:GridView ID="gridview_leads" runat="server" CellPadding="3" CellSpacing="1"
- Font-Names="Arial" Font-Size="Small" AutoGenerateColumns="False" OnRowUpdating="gridview_leads_RowUpdating">
- <Columns>
- <asp:BoundField DataField="Idtbl_property" HeaderText="Property ID" >
- <ItemStyle Font-Size="Small" />
- </asp:BoundField>
- <asp:BoundField DataField="ClientName" HeaderText="Client Name" >
- <ItemStyle Font-Size="Small" />
- </asp:BoundField>
- <asp:BoundField DataField="ClientEmail" HeaderText="Client Email" >
- <ItemStyle Font-Size="Small" />
- </asp:BoundField>
- <asp:BoundField DataField="ClientCell" HeaderText="Client Cell" >
- <ItemStyle Font-Size="Small" />
- </asp:BoundField>
- <asp:TemplateField ShowHeader="True" HeaderText="Status">
- <ItemTemplate>
- <asp:DropDownList ID="ddl_status" runat="server" OnInit="ddl_status_Init"></asp:DropDownList>
- </ItemTemplate>
- <ControlStyle Font-Names="Arial" Font-Size="Small" />
- <ItemStyle BackColor="#FFFFCC" Font-Names="Calibri" Font-Size="Small" />
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement