i have gridview in which i have a Image button with id (' ImageButton3 ') on click of which i want to hide that corresponding row , by first highlighting it by followed fadeIn effect ....
here is code of gridview:
<asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" CssClass="mGrid" ShowFooter="true"
AlternatingRowStyle-CssClass="altrow" DataKeyNames="productid" Width="100%" BorderWidth="0px"
AllowPaging="True" PagerStyle-HorizontalAlign="Center" PagerStyle-VerticalAlign="Middle">
<RowStyle Height="50px" />
<Columns >
<asp:TemplateField HeaderText="Image" ItemStyle-HorizontalAlign="center" ItemStyle-Width="100px">
<ItemTemplate>
<asp:HiddenField ID="HiddenField1" Value='<%#Eval("productid")%>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="prodname" HeaderText="Product Name"
ReadOnly="True" SortExpression="Name" ItemStyle-HorizontalAlign="center" ItemStyle-Width="250px">
</asp:BoundField>
<asp:BoundField DataField="prodprice" DataFormatString="Rs. {0}" HeaderText="Price" ReadOnly="True"
SortExpression="Price" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center" />
<asp:TemplateField HeaderText=" " ItemStyle-HorizontalAlign="center" ItemStyle-Width="50px">
<ItemTemplate>
<asp:ImageButton ID="ImageButton3" ImageUrl="images/delete.jpg"
runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
this is code for javascript:
<script type="text/javascript">
$(document).ready(function() {
$("[id*=ImageButton3]").live("click", function() {
$(this).closest("tr").hide();
return false;
});
});
</script>
but the code i am using only hide the row , i am not able to get the effects of fadeIn and highlighting ..
Also i want i know that am i using right code to hide gridview row ?