Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-17-2004, 09:28 PM   #1
martini
Registered User
 
Join Date: Sep 2004
Posts: 7
Default Disable DataGrid itemRollOver ???

Hi all,

Does anyone know how to disable the datagrid item rollover? I dont want the event to fire at all.

Thanks
martini is offline   Reply With Quote
Old 09-20-2004, 07:06 PM   #2
madgett
is my last name...
 
Join Date: May 2004
Posts: 1,051
Default

It's a built in property, just use
Code:
grid._enabled = false;
__________________
Anything is possible with Flash, it's just a matter of inventing the possibilities
Certified Swfwizard
madgett is offline   Reply With Quote
Old 09-24-2004, 02:06 PM   #3
martini
Registered User
 
Join Date: Sep 2004
Posts: 7
Default

Hi madgett,

Thanks for your reply. Your suggestion does not seem to work ...

myGrid._enabled = false;

I want the kill the event, or listener, that highlights the rows on rollOver. I assume it is 'itemRollOver' which is an event that the DataGrid inherits from the List class. I did not see a property/policy for this in the DataGrid anywhere. Any other ideas?

Last edited by martini; 09-24-2004 at 02:09 PM.
martini is offline   Reply With Quote
Old 09-24-2004, 02:21 PM   #4
frankfenten
Registered User
 
Join Date: Sep 2004
Location: Manchester, UK
Posts: 12
Send a message via MSN to frankfenten
Default dg.useRollOver=false;

dg.useRollOver=false;
frankfenten is offline   Reply With Quote
Old 09-27-2004, 07:17 PM   #5
martini
Registered User
 
Join Date: Sep 2004
Posts: 7
Default

Thanks frankfenten,

this is the solution i was looking for! Where are all these undocumented properties listed, how did you find out about them?
martini is offline   Reply With Quote
Old 09-30-2004, 01:51 AM   #6
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

It isn't that they are undocumented, it is that they are internal methods and properties that were never meant to be exploited. The datagrid serves the purpose of displaying tabular data and many people have extended it to do what they need it to. The only reason many people know about all of this is that Macromedia provided all the source code for the UI components. Try findoing answers on exploiting Data component properties and methods and no one will have any anwers.
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 10-01-2004, 01:56 PM   #7
martini
Registered User
 
Join Date: Sep 2004
Posts: 7
Default

Thanks for the tip. Now i know where to look.
martini is offline   Reply With Quote
Old 10-12-2004, 05:17 PM   #8
frankfenten
Registered User
 
Join Date: Sep 2004
Location: Manchester, UK
Posts: 12
Send a message via MSN to frankfenten
Default dg.useRollOver

it seems churlish to disagree with Annexion as he has posted so many posts, and I so few, but I gonna do it anyway.

It's not undocumented, or really part of the source as such. The datagrid inherits all the capabilities of the List class and useRollover is one of the customisable attributes of the list class. I just tried it and it worked.

Inheritence is a powerful thing. It allows you (or macromedia) to build a stack of functionality in classes without writing the same code many times. It's a bit hard to use because you have to understand how it works and how to follow the inheritence back to its source. If you look at the documentation for the Datagrid class, it tells you about its inheritence right there. It's even clickable! You can use any of those attributes, although expect to do some fiddling about to make it work.
frankfenten is offline   Reply With Quote
Old 10-13-2004, 01:49 AM   #9
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

You're absolutely right. Let me save face here by saying that I remember having to dig into the datagrid to find out how to disable another feature. Seeing this prompted me to remember doing that, although I remembered incorrectly what feature it was that I did it to.

Excellent post, by the way. We need more people like you around here.
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 10-14-2004, 03:00 PM   #10
barticus
Registered User
 
Join Date: Oct 2004
Location: Lincoln, Nebraska, USA
Posts: 1
Default

try:

Code:
your_grid.setStyle("useRollOver", false);
That seems to do the trick for me.
barticus is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.