Yeah but how can I set that rows height without using cell-renderers J

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Tuesday, February 28, 2006 12:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

Yes it should work with variableRowHeight and if you specify a starting index of 1 and a length of 1 I’d imagine it should give you that individual row.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Tuesday, February 28, 2006 11:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

Does it work with variableRowHeight=true? And how is calculate height actually getting the individual row heights?

Reason I ask is I am still trying to find a way to find an individual row height in AS.

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Tuesday, February 28, 2006 12:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

Found it: in B1 the function is named calculateHeight: http://livedocs.macromedia.com/labs/1/flex/langref/mx/controls/listclasses/ListBase.html#calculateHeight()

 

Set your DP, then set height equal to that value.

 

In B2 the function will be measureHeightOfItems

 

Matt


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Monday, February 27, 2006 6:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

rowCount is read-only if ya use variableRowHeight=true. So no word on finding the height of a specific row with actionscript?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Sunday, February 26, 2006 6:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

Have you guys set rowCount to be the same as dataProvider.length?  That should get the DG to start attempting to draw all rows.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Friday, February 24, 2006 10:33 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

If you can find a way to find out rowHeight by actionscript with variableRowHeight=true, more power to you – I’m still stumped on this.

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dustin Mercer
Sent: Friday, February 24, 2006 11:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

What did you use for number?  What about height=”{(dg.dataProvider.length * dg.rowHeight) + 2}”… you might need the + 2 there to account for the 1px border on top and bottom.  For the variableRowHeight, you will have to do a lot more work.  It will be very tough since you cannot just loop through the rows to find their heights, because the hidden rows aren’t drawn yet ;)  So that will take so creativity.  Maybe someone else has an idea on that, in the mean time, I will play with the idea.  Hope this works for normal row heights though.

 

Dustin Mercer

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Friday, February 24, 2006 7:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid automatic height

 

I’d love to figure this out also, especially if you use variableRowHeight=true

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alberto Albericio Salvador
Sent: Friday, February 24, 2006 6:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid automatic height

 

Hi all,

Is there any property on the DataGrid component to automatically resize
the datagrid to show the number of items of its dataProvider?

I use height="dataProviders.length * Number" but it's not exact enough

Thanks

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to