CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 4/9/2008 10:15:54 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 121 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Ryg_
Asp.Net User
<TR> mouseover in Gridview4/9/2008 10:15:54 AM

0/0

Hi, iam having problem to add a mouseover effect in GridView. Iam using RowDataBound to add the following attributes to a TableRow:

 

e.Row.Attributes.Add("onmouseover", "style.backgroundColor='#EFEFEF'");

e.Row.Attributes.Add("onmouseout", "style.backgroundColor='#FFFFFF'");

 

The generated HTML looks fine to me so far:

<tr onmouseover="style.backgroundColor='#EFEFEF'" onmouseout="style.backgroundColor='#FFFFFF'">
                        <td><a href="javascript:__doPostBack('ctl00$ctl00$PlaceHolderMain$PlaceHolderContent$ObjectList','Select$2')">test10</a></td>
                        <td>[email protected]</td>
                        <td>True</td>
                        <td>4/8/2008 10:11:18 AM</td>
                        <td>4/8/2008 10:11:18 AM</td>
                        <td>4/8/2008 10:11:18 AM</td>
                        <td>4/8/2008 10:11:18 AM</td>
                        <td>False</td>
 </tr>

The current row (hover) is not highlighted but the same code works fine using the "default" GridView without adapter.
 

MikeJ83
Asp.Net User
Re: <TR> mouseover in Gridview4/9/2008 5:25:16 PM

0/0

Are you sure this is not an HTML problem, rather than a GridView problem? I am no JavaScript expert, but I think you have to do:

this.style.backgroundColor = '#EFEFEF';

HTH,

 -Mike

Ryg_
Asp.Net User
Re: <TR> mouseover in Gridview4/9/2008 6:17:03 PM

0/0

Thank's for your response. I tried your suggestion and added "this." to the JavaScript without any changes.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

mouseover in Gridview - ASP.NET Forums mouseover in Gridview. Last post 04-09-2008 2:17 PM by Ryg_. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
ASP.NET 2.0 mouse over event in gridview Sep 30, 2008 ... < HeaderTemplate>
Books:
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007

Web:
Mouseover-Effect (Hover) for ASP.NET GridView with CSS Mouseover-Effect (Hover) for ASP.NET GridView with CSS in .NET C# Code, articles , tutorials, ... Such a row is internally represented by an HTML TR-tag. ...
Matt Berseth: Creating a GridView with Resizable Column Headers Aug 30, 2007 ... So i am not able to resize column in my gridview. ... get all of the tr elements from the gridview ... [/tr][tr onmouseover="this.style. ...
Mouseover Gridview Image Switch - ASP Free Visit ASP Free to discuss Mouseover Gridview Image Switch. ... font-family: verdana"> AjaxDataControls : GridView Attaching javascript to a row when ... Aug 4, 2008 ... I am in the process of converting a asp:GridView control to ... tr.onmouseover = function(){ this.className = 'rowMouseOver' }; ...
Javascript access Gridview values : javascript, gridview, access I have an asp gridview and i need to access the cell values of my gridview in javascript. ... Jagadish Pulakhandam's: TIP: Highlighting ASP.NET 2.0 GridView ... NET 2.0 GridView rows on mouseover (using CSS) Personalized MSN blog,Upload/ share photo and ... tr.row:hover, tr.over td { background-color: #ffccff; } ...
CodeProject: Hotmail-like Mouse Over & Mouse Out Effects on ... I have also implemented row coloring of GridView on mouse over and mouse out events in this ....
redGridView coloring on client side




Search This Site:










installer doesn't run.

css help for control

vertical align

ie6 and menu top level width

menu itemtemplate binding problem

where is persistantimage.ashx ?

bug: urls not resolving correctly

conditional comments with css

passwordrecoveryadapter doesn't display username and question for templated views

menu adapter style submenu items

menu, from right to left?

different output of menuadapter- and sharepoint:aspmenu-control

ok,i'm trying to replicate the enhanced horizontal menu example

treeview navigation beta3

css menu disappears on some pages

forms authorization headache

loginadapter

how to add a custom icon to a specific menu item

seperatorimageurl not supported on cssfriendly menu

css menuadapter

css menu adapter and ie6

css friendly treeview ignoring treenode renderpretext and renderposttext

disable menu javascript files

treeview. please, could someone help me out?

safari menu control

detailsview unable to set input width in edit mode

why all the classnames?

can somebody get me this ?

in css friendly vertical menu submenu should scroll above flash animation

adjustable tabs in css adapters menu

  Privacy | Contact Us
All Times Are GMT