<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridAnimate.aspx.cs" Inherits="Animate.GridAnimate" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridAnimate.aspx.cs" Inherits="Animate.GridAnimate" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Sanjeeb LenkaPosted Aug 12, 2013, 4:44 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridAnimate.aspx.cs" Inherits="Animate.GridAnimate" %>
don't forgot to add the reference of jquery.
Vignesh KumarPosted Aug 12, 2013, 8:24 AM
http://www.dotnetcurry.com/ShowArticle.aspx?ID=219
And also this another one
http://www.dotnetcurry.com/ShowArticle.aspx?ID=287
Sanjeeb LenkaPosted Aug 12, 2013, 7:54 AM
i didn't get you. plz provide more details...
Vignesh KumarPosted Aug 12, 2013, 7:33 AM
Is it possible to do slide animation using ajax.
Sanjeeb LenkaPosted Aug 12, 2013, 6:29 AM
Vignesh KumarPosted Aug 12, 2013, 6:28 AM
Iftikar HussainPosted Aug 12, 2013, 3:45 AM
Regards,
Iftikar
Vignesh KumarPosted Aug 12, 2013, 3:40 AM
This is the code I have been using. But no luck.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridAnimate.aspx.cs" Inherits="Animate.GridAnimate" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
Iftikar HussainPosted Aug 12, 2013, 3:27 AM
$(document).ready(function () {
var gridId = '<%=GridView1.ClientID%>';
$('#' + gridId + ' thead').addClass('headerRow');
$('#' + gridId + ' tbody tr').mouseover(function () {
$(this).addClass('highlightRow');
}).mouseout(function () {
$(this).removeClass('highlightRow');
}).click(function () {
$(this).toggleClass('selectedRow');
});
});
Regards,
Iftikar
Sanjeeb LenkaPosted Aug 12, 2013, 3:19 AM
Refer to this link
http://www.aspsnippets.com/Articles/How-to-change-GridView-Row-Color-on-Mouseover-in-ASPNet.aspx
http://www.aspdotnet-suresh.com/2011/02/how-to-highlight-gridview-rows-on.html
Iftikar HussainPosted Aug 8, 2013, 3:15 AM
My understanding is that just need to change the style for each row whenever mouseover happen on that row. You can do this simply by using css only.
Add RowStyle-Css="rowOver" for gridview
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" Width="300px" RowStyle-CssClass="rowOver">
in css
tr.rowOver:hover
{
cursor: pointer;
}
Regards,
Iftika
Vignesh KumarPosted Aug 8, 2013, 2:37 AM
Raj BandiPosted Aug 7, 2013, 8:53 PM
You were trying to access GridView with id GridView1. You have to use ClientID not the ID in JQuery.
Change lines
$('#GridView1 thead').addClass('headerRow');
$('#GridView1 tbody tr').mouseover(function () {
with this code
var gridId = '<%=GridView1.ClientID%>';
$('#'+gridId+' thead').addClass('headerRow');
$('#'+gridId +' tbody tr').mouseover(function () {
or alternatively you can do like this without ClientID
$("table[id*='GridView1'] thead").fi.addClass('headerRow');
$("table[id*='GridView1'] tbody tr").mouseover(function () {
Cheers,
Raj