[flexcoders] Re: Datagrid height problem.
Give it a height. -TH --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > My code looks like; > >dataField="SCHEDULED_DESCRIPTION" width="492" wordWrap="true"> > > >text="{data.SCHEDULED_DESCRIPTION}" truncateToFit="true"/> > > > > > The text that is in the DB las line 1 followed by a new line followed by line > 2, etc. > > It does not display the elipses. > > Paul > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Yep, correct about the headers scrolling too. My bad, was thinking about a > > List. Using Steve's suggestion, a Text control with truncateToFit=:true" > > will give you the ellipses and an automatic toolTip; if the text exceeds > > the size. > > > > -TH > > > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > > > Thanks for the advice... > > > > > > I was unable to use make the suggestion of removing the height from the > > > datagrid work. Even if it did work, wouldn't that cause the headers to > > > scroll out of sight? > > > > > > Regarding using an item renderer, I have been unable to find one that > > > will expand to the height available and then scroll. "TextArea" seems to > > > display a fixed height. What item renderer would you recomend? > > > > > > Regarding the elipses/popup, how do you know when to display elipses? > > > Generally the data is only a couple of lines, very infrequently is the > > > data bigger than the entire grid. > > > > > > Paul > > > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > > > > > What I do in this situation is to truncate the text in the cell and add > > > > elipses. If the user needs to see all the note text, they can click on > > > > the cell which opens a new popup. If the text is short enough, I use a > > > > tooltip. > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > > > grid height? > > > > > Even though it's not shown, the cell height is greater than the > > > > > DataGrid > > > > > height. However, the DataGrid's scroll mechanism will always take > > > > > you > > > > > to the next row, so this isn't an option. > > > > > > How can I turn on a scrollbar for the cell? > > > > > You can use an itemRenderer that has a maxHeight. Although, having > > > > > nested scrollBars is pretty bad for the user.A third option, if you > > > > > don't have thousands of records, is to put the DataGrid in a container > > > > > and do not set a height for the DataGrid. In other words, go ahead > > > > > and > > > > > render all of the DataGrid items and have the parent container do the > > > > > scrolling. This would solve your problem by allowing smooth > > > > > scrolling, > > > > > but would more of a hog when it comes to performance. But, if you > > > > > don't > > > > > have that many records to show, it's a decent trade-off and much > > > > > better > > > > > than the choppy scrolling that is native to the DataGrid. > > > > > -TH > > > > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > > > > > > > > > I have a datagrid that displays text from a notes field. I have > > > > > variableRowHeight="true". This works well unless one record has a note > > > > > that is larger than the height of the entire grid. In this case I > > > > > cannot > > > > > see the bottom of the note. It truncates the lines at the height of > > > > > the > > > > > grid > > > > > > > > > > > > There is a scroll bar for the grid, but not for the individual cell > > > > > > in > > > > > the grid. > > > > > > > > > > > > Either of the following would solve my problem; > > > > > > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > > > grid height? > > > > > > > > > > > > -or- > > > > > > > > > > > > How can I turn on a scrollbar for the cell? > > > > > > > > > > > > Paul > > > > > > > > > > > > > > > > > > > > >
[flexcoders] Re: Datagrid height problem.
My code looks like; The text that is in the DB las line 1 followed by a new line followed by line 2, etc. It does not display the elipses. Paul --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > Yep, correct about the headers scrolling too. My bad, was thinking about a > List. Using Steve's suggestion, a Text control with truncateToFit=:true" > will give you the ellipses and an automatic toolTip; if the text exceeds the > size. > > -TH > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > Thanks for the advice... > > > > I was unable to use make the suggestion of removing the height from the > > datagrid work. Even if it did work, wouldn't that cause the headers to > > scroll out of sight? > > > > Regarding using an item renderer, I have been unable to find one that will > > expand to the height available and then scroll. "TextArea" seems to display > > a fixed height. What item renderer would you recomend? > > > > Regarding the elipses/popup, how do you know when to display elipses? > > Generally the data is only a couple of lines, very infrequently is the data > > bigger than the entire grid. > > > > Paul > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > > > What I do in this situation is to truncate the text in the cell and add > > > elipses. If the user needs to see all the note text, they can click on > > > the cell which opens a new popup. If the text is short enough, I use a > > > tooltip. > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > > grid height? > > > > Even though it's not shown, the cell height is greater than the DataGrid > > > > height. However, the DataGrid's scroll mechanism will always take you > > > > to the next row, so this isn't an option. > > > > > How can I turn on a scrollbar for the cell? > > > > You can use an itemRenderer that has a maxHeight. Although, having > > > > nested scrollBars is pretty bad for the user.A third option, if you > > > > don't have thousands of records, is to put the DataGrid in a container > > > > and do not set a height for the DataGrid. In other words, go ahead and > > > > render all of the DataGrid items and have the parent container do the > > > > scrolling. This would solve your problem by allowing smooth scrolling, > > > > but would more of a hog when it comes to performance. But, if you don't > > > > have that many records to show, it's a decent trade-off and much better > > > > than the choppy scrolling that is native to the DataGrid. > > > > -TH > > > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > > > > > > > I have a datagrid that displays text from a notes field. I have > > > > variableRowHeight="true". This works well unless one record has a note > > > > that is larger than the height of the entire grid. In this case I cannot > > > > see the bottom of the note. It truncates the lines at the height of the > > > > grid > > > > > > > > > > There is a scroll bar for the grid, but not for the individual cell in > > > > the grid. > > > > > > > > > > Either of the following would solve my problem; > > > > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > > grid height? > > > > > > > > > > -or- > > > > > > > > > > How can I turn on a scrollbar for the cell? > > > > > > > > > > Paul > > > > > > > > > > > > > > >
[flexcoders] Re: Datagrid height problem.
Yep, correct about the headers scrolling too. My bad, was thinking about a List. Using Steve's suggestion, a Text control with truncateToFit=:true" will give you the ellipses and an automatic toolTip; if the text exceeds the size. -TH --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > Thanks for the advice... > > I was unable to use make the suggestion of removing the height from the > datagrid work. Even if it did work, wouldn't that cause the headers to scroll > out of sight? > > Regarding using an item renderer, I have been unable to find one that will > expand to the height available and then scroll. "TextArea" seems to display a > fixed height. What item renderer would you recomend? > > Regarding the elipses/popup, how do you know when to display elipses? > Generally the data is only a couple of lines, very infrequently is the data > bigger than the entire grid. > > Paul > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > What I do in this situation is to truncate the text in the cell and add > > elipses. If the user needs to see all the note text, they can click on the > > cell which opens a new popup. If the text is short enough, I use a tooltip. > > > > > > > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > grid height? > > > Even though it's not shown, the cell height is greater than the DataGrid > > > height. However, the DataGrid's scroll mechanism will always take you > > > to the next row, so this isn't an option. > > > > How can I turn on a scrollbar for the cell? > > > You can use an itemRenderer that has a maxHeight. Although, having > > > nested scrollBars is pretty bad for the user.A third option, if you > > > don't have thousands of records, is to put the DataGrid in a container > > > and do not set a height for the DataGrid. In other words, go ahead and > > > render all of the DataGrid items and have the parent container do the > > > scrolling. This would solve your problem by allowing smooth scrolling, > > > but would more of a hog when it comes to performance. But, if you don't > > > have that many records to show, it's a decent trade-off and much better > > > than the choppy scrolling that is native to the DataGrid. > > > -TH > > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > > > > > I have a datagrid that displays text from a notes field. I have > > > variableRowHeight="true". This works well unless one record has a note > > > that is larger than the height of the entire grid. In this case I cannot > > > see the bottom of the note. It truncates the lines at the height of the > > > grid > > > > > > > > There is a scroll bar for the grid, but not for the individual cell in > > > the grid. > > > > > > > > Either of the following would solve my problem; > > > > > > > > How can I tell the datagrid to allow cell heights greater than the > > > grid height? > > > > > > > > -or- > > > > > > > > How can I turn on a scrollbar for the cell? > > > > > > > > Paul > > > > > > > > > >
[flexcoders] Re: Datagrid height problem.
Thanks for the advice... I was unable to use make the suggestion of removing the height from the datagrid work. Even if it did work, wouldn't that cause the headers to scroll out of sight? Regarding using an item renderer, I have been unable to find one that will expand to the height available and then scroll. "TextArea" seems to display a fixed height. What item renderer would you recomend? Regarding the elipses/popup, how do you know when to display elipses? Generally the data is only a couple of lines, very infrequently is the data bigger than the entire grid. Paul --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > What I do in this situation is to truncate the text in the cell and add > elipses. If the user needs to see all the note text, they can click on the > cell which opens a new popup. If the text is short enough, I use a tooltip. > > > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > > How can I tell the datagrid to allow cell heights greater than the > > grid height? > > Even though it's not shown, the cell height is greater than the DataGrid > > height. However, the DataGrid's scroll mechanism will always take you > > to the next row, so this isn't an option. > > > How can I turn on a scrollbar for the cell? > > You can use an itemRenderer that has a maxHeight. Although, having > > nested scrollBars is pretty bad for the user.A third option, if you > > don't have thousands of records, is to put the DataGrid in a container > > and do not set a height for the DataGrid. In other words, go ahead and > > render all of the DataGrid items and have the parent container do the > > scrolling. This would solve your problem by allowing smooth scrolling, > > but would more of a hog when it comes to performance. But, if you don't > > have that many records to show, it's a decent trade-off and much better > > than the choppy scrolling that is native to the DataGrid. > > -TH > > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > > > I have a datagrid that displays text from a notes field. I have > > variableRowHeight="true". This works well unless one record has a note > > that is larger than the height of the entire grid. In this case I cannot > > see the bottom of the note. It truncates the lines at the height of the > > grid > > > > > > There is a scroll bar for the grid, but not for the individual cell in > > the grid. > > > > > > Either of the following would solve my problem; > > > > > > How can I tell the datagrid to allow cell heights greater than the > > grid height? > > > > > > -or- > > > > > > How can I turn on a scrollbar for the cell? > > > > > > Paul > > > > > >
[flexcoders] Re: Datagrid height problem.
What I do in this situation is to truncate the text in the cell and add elipses. If the user needs to see all the note text, they can click on the cell which opens a new popup. If the text is short enough, I use a tooltip. --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > How can I tell the datagrid to allow cell heights greater than the > grid height? > Even though it's not shown, the cell height is greater than the DataGrid > height. However, the DataGrid's scroll mechanism will always take you > to the next row, so this isn't an option. > > How can I turn on a scrollbar for the cell? > You can use an itemRenderer that has a maxHeight. Although, having > nested scrollBars is pretty bad for the user.A third option, if you > don't have thousands of records, is to put the DataGrid in a container > and do not set a height for the DataGrid. In other words, go ahead and > render all of the DataGrid items and have the parent container do the > scrolling. This would solve your problem by allowing smooth scrolling, > but would more of a hog when it comes to performance. But, if you don't > have that many records to show, it's a decent trade-off and much better > than the choppy scrolling that is native to the DataGrid. > -TH > --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > > > I have a datagrid that displays text from a notes field. I have > variableRowHeight="true". This works well unless one record has a note > that is larger than the height of the entire grid. In this case I cannot > see the bottom of the note. It truncates the lines at the height of the > grid > > > > There is a scroll bar for the grid, but not for the individual cell in > the grid. > > > > Either of the following would solve my problem; > > > > How can I tell the datagrid to allow cell heights greater than the > grid height? > > > > -or- > > > > How can I turn on a scrollbar for the cell? > > > > Paul > > >
[flexcoders] Re: Datagrid height problem.
> How can I tell the datagrid to allow cell heights greater than the grid height? Even though it's not shown, the cell height is greater than the DataGrid height. However, the DataGrid's scroll mechanism will always take you to the next row, so this isn't an option. > How can I turn on a scrollbar for the cell? You can use an itemRenderer that has a maxHeight. Although, having nested scrollBars is pretty bad for the user.A third option, if you don't have thousands of records, is to put the DataGrid in a container and do not set a height for the DataGrid. In other words, go ahead and render all of the DataGrid items and have the parent container do the scrolling. This would solve your problem by allowing smooth scrolling, but would more of a hog when it comes to performance. But, if you don't have that many records to show, it's a decent trade-off and much better than the choppy scrolling that is native to the DataGrid. -TH --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > I have a datagrid that displays text from a notes field. I have variableRowHeight="true". This works well unless one record has a note that is larger than the height of the entire grid. In this case I cannot see the bottom of the note. It truncates the lines at the height of the grid > > There is a scroll bar for the grid, but not for the individual cell in the grid. > > Either of the following would solve my problem; > > How can I tell the datagrid to allow cell heights greater than the grid height? > > -or- > > How can I turn on a scrollbar for the cell? > > Paul >
[flexcoders] Datagrid height problem.
I have a datagrid that displays text from a notes field. I have variableRowHeight="true". This works well unless one record has a note that is larger than the height of the entire grid. In this case I cannot see the bottom of the note. It truncates the lines at the height of the grid There is a scroll bar for the grid, but not for the individual cell in the grid. Either of the following would solve my problem; How can I tell the datagrid to allow cell heights greater than the grid height? -or- How can I turn on a scrollbar for the cell? Paul
[flexcoders] Dynamic Datagrid Height
Hi everybody, We have a datagrid which has a fixed number of rows. But since the row height is variable the grid height vary's. So either it brings in empty rows when rows heights are less due to less row data or else it brings in vertical scrollbars when rows have larger data. Is there some wayout where I can dynamically change the datagrid height so as to get around this problem. MS
[flexcoders] Re: datagrid height
Hi Matt, If the datagrid is in Accordian and still hidden, the rowcount property is not working somehow. If the results change when the datagrid is visible, it works. Any clue? Regards... --- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote: > http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclas ses/Scr > ollSelectList.html#rowCount > <http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listcla sses/Sc > rollSelectList.html#rowCount> :-) > > > > _ > > From: Robert Brueckmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 01, 2005 9:44 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] datagrid height > > > > Hey guys...I am trying something and getting a strange behavior. I get an > array of objects from the database that becomes the data provider for my > datagrid. I know the length of my data provider thanks to the > myDataGrid.dataProvider.length method and I figure I could multiply that > number by some arbitrary number of pixels to ensure that however many items > are in my data provider, that's how many rows are visible in my datagrid on > the screen...so the datagrid is never scrollable. > > > > I'm using a method that sets the dataprovider of the datagrid, > myDataGrid.dataProvider = data; and then I'm calling > myDataGrid.setSize(Stage.width - 35, myDataGrid.dataProvider.length * 25); > > > > The Stage.width - 35 compensates for some other things on the screen to look > proportionate and the myDataGrid.dataProvider.length * 25 is just > guesstimating that each row in the datagrid component is about 25 pixels > high. Well the first time I tried this, 25 was too large of a number so I > adjusted it to 22, which seemed to work but still left me with a little > extra bit of a final row visible. Well that was livable. Then I get a > result set back that only had 2 items in it, instead of the 5 I had been > testing this whole thing with and now only one row was visble and you have > to scroll down to see the second row, so I increased the 22 to 30 and that > fixed it for that but now if I call the original result set with the 5 > items, I can see a row and a half extra blank rows. Is there a better way > to dynamically show the number of rows based on the number of items in the > data provider? I wish there was a size attribute like there is with the > HTML select list component where if it's a list you can say I want x-number > of rows visible. I just don't ever want the user to have to scroll within > the datagrid...is there an easier way to do this? > > > > Thanks! > > > > _ > > This message contains information from Merlin Securities, LLC, or from one > of its affiliates, that may be confidential and privileged. If you are not > an intended recipient, please refrain from any disclosure, copying, > distribution or use of this information and note that such actions are > prohibited. If you have received this transmission in error, please notify > the sender immediately by telephone or by replying to this transmission. > > > > Merlin Securities, LLC is a registered broker-dealer. Services offered > through Merlin Securities, LLC are not insured by the FDIC or any other > Federal Government Agency, are not deposits of or guaranteed by Merlin > Securities, LLC and may lose value. Nothing in this communication shall > constitute a solicitation or recommendation to buy or sell a particular > security. > > > > > > > Yahoo! Groups Sponsor > > > > ADVERTISEMENT > > <http://us.ard.yahoo.com/SIG=129qdkk5d/M=298184.6018725.7038619.30011 76/D=gr > oups/S=1705007207:HM/EXP=1109774669/A=2593423/R=0/SIG=11el9gslf/*http :/www.n > etflix.com/Default?mqso=60190075> click here > > > > <http://us.adserver.yahoo.com/l? M=298184.6018725.7038619.3001176/D=groups/S= > :HM/A=2593423/rand=756983836> > > > > _ > > Yahoo! Groups Links > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ > <http://groups.yahoo.com/group/flexcoders/> > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! > <http://docs.yahoo.com/info/terms/> Terms of Service. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: datagrid height
Accordion and ViewStack use deferred instantiation by default. This means that until a user navigates to that view, the contents are not available for reading or setting. The quick fix is to set creationPolicy="all" on the container. However, this will remove the benefit to perceived performance that deferred instantiation provides. See the docs for more info on controlling instatiation. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexcoding Sent: Tuesday, June 14, 2005 3:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: datagrid height Hi Matt, If the datagrid is in Accordian and still hidden, the rowcount property is not working somehow. If the results change when the datagrid is visible, it works. Any clue? Regards... --- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote: > http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclas ses/Scr > ollSelectList.html#rowCount > <http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listcla sses/Sc > rollSelectList.html#rowCount> :-) > > > > _ > > From: Robert Brueckmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 01, 2005 9:44 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] datagrid height > > > > Hey guys...I am trying something and getting a strange behavior. I get an > array of objects from the database that becomes the data provider for my > datagrid. I know the length of my data provider thanks to the > myDataGrid.dataProvider.length method and I figure I could multiply that > number by some arbitrary number of pixels to ensure that however many items > are in my data provider, that's how many rows are visible in my datagrid on > the screen...so the datagrid is never scrollable. > > > > I'm using a method that sets the dataprovider of the datagrid, > myDataGrid.dataProvider = data; and then I'm calling > myDataGrid.setSize(Stage.width - 35, myDataGrid.dataProvider.length * 25); > > > > The Stage.width - 35 compensates for some other things on the screen to look > proportionate and the myDataGrid.dataProvider.length * 25 is just > guesstimating that each row in the datagrid component is about 25 pixels > high. Well the first time I tried this, 25 was too large of a number so I > adjusted it to 22, which seemed to work but still left me with a little > extra bit of a final row visible. Well that was livable. Then I get a > result set back that only had 2 items in it, instead of the 5 I had been > testing this whole thing with and now only one row was visble and you have > to scroll down to see the second row, so I increased the 22 to 30 and that > fixed it for that but now if I call the original result set with the 5 > items, I can see a row and a half extra blank rows. Is there a better way > to dynamically show the number of rows based on the number of items in the > data provider? I wish there was a size attribute like there is with the > HTML select list component where if it's a list you can say I want x-number > of rows visible. I just don't ever want the user to have to scroll within > the datagrid...is there an easier way to do this? > > > > Thanks! > > > > _ > > This message contains information from Merlin Securities, LLC, or from one > of its affiliates, that may be confidential and privileged. If you are not > an intended recipient, please refrain from any disclosure, copying, > distribution or use of this information and note that such actions are > prohibited. If you have received this transmission in error, please notify > the sender immediately by telephone or by replying to this transmission. > > > > Merlin Securities, LLC is a registered broker-dealer. Services offered > through Merlin Securities, LLC are not insured by the FDIC or any other > Federal Government Agency, are not deposits of or guaranteed by Merlin > Securities, LLC and may lose value. Nothing in this communication shall > constitute a solicitation or recommendation to buy or sell a particular > security. > > > > > > > Yahoo! Groups Sponsor > > > > ADVERTISEMENT > > <http://us.ard.yahoo.com/SIG=129qdkk5d/M=298184.6018725.7038619.30011 76/D=gr > oups/S=1705007207:HM/EXP=1109774669/A=2593423/R=0/SIG=11el9gslf/*http :/www.n > etflix.com/Default?mqso=60190075> click here > > > > <http://us.adserver.yahoo.com/l? M=298184.6018725.7038619.3001176/D=groups/S= > :HM/A=2593423/rand=756983836> > > > > _ > > Yahoo! Groups Links > > * To visit your group on the web, go t
Re: [flexcoders] List / DataGrid height problem
Hi Matt, thanks for your help. I changed my design, it works now. Greets Christoph Matt Chotin schrieb: No real other ideas off-hand, and no time to experiment, sorry! Matt -Original Message- From: Christoph Guse [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 1:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] List / DataGrid height problem Hi Matt, i tried a real value and undefined instead of 100%, didn't help. Perhaps you have another idea, otherwise I have to change my layout. I prefer the first option ;-) Good night Christoph Matt Chotin schrieb: > I'm not sure that the percentages are really going to work within a > cell renderer. Basically if you have a preferred height the row will > size to that row. But if you give it a percentage the row doesn't know > how tall you really are meant to be. So maybe try using a real value > instead of 100%? Even undefined might actually be the right value so > that it tries to size to the preferred size of the children. > > Matt > > > > *From:* Christoph Guse [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, March 16, 2005 9:43 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] List / DataGrid height problem > > Hi Matt, > > you are right. I give you some snippets of my code. > > List / DataGrid > > > variableRowHeight="true" dataProvider="{aufgabenData}" > cellRenderer="aufgaben.AufgabenCellRenderer"> >
RE: [flexcoders] List / DataGrid height problem
No real other ideas off-hand, and no time to experiment, sorry! Matt -Original Message- From: Christoph Guse [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 1:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] List / DataGrid height problem Hi Matt, i tried a real value and undefined instead of 100%, didn't help. Perhaps you have another idea, otherwise I have to change my layout. I prefer the first option ;-) Good night Christoph Matt Chotin schrieb: > I'm not sure that the percentages are really going to work within a > cell renderer. Basically if you have a preferred height the row will > size to that row. But if you give it a percentage the row doesn't know > how tall you really are meant to be. So maybe try using a real value > instead of 100%? Even undefined might actually be the right value so > that it tries to size to the preferred size of the children. > > Matt > > > > *From:* Christoph Guse [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, March 16, 2005 9:43 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] List / DataGrid height problem > > Hi Matt, > > you are right. I give you some snippets of my code. > > List / DataGrid > > variableRowHeight="true" dataProvider="{aufgabenData}" > cellRenderer="aufgaben.AufgabenCellRenderer"> > > From: Christoph Guse [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, March 16, 2005 1:48 AM >> To: flexcoders@yahoogroups.com >> Subject: [flexcoders] List / DataGrid height problem >> >> >> Hi List, >> >> I have some trouble with my custom CellRenderer. It is Panel wich >> expands when you click on it. The initial height is 28pt and when it >> expands, it has the height it needs. >> The Problem is, that when you click on it, the Panel expands as >> expected, but the row height doesn't change. I only get a scrollbar on >> the right side of the row. I tried several things, like draw() the list, >> but nothing helped. >> >> Any ideas? >> >> Thanks a lot >> Christoph >> >> -- >> >> Christoph Guse >> Löhstraße 34 >> 41747 Viersen >> Tel. 0 21 62 / 50 24 066 >> Mobil 01 72 / 160 74 84 >> VoIP 0 12 12 / 39 64 48 831 >> >> >> >> >> >> Yahoo! Groups Links >> >> >> >> >> >> >> >> >> *Yahoo! Groups Sponsor* >> ADVERTISEMENT >> click here >> <http://us.ard.yahoo.com/SIG=129sq9p52/M=298184.6018725.7038619.3001176/D=gr oups/S=1705007207:HM/EXP=078124/A=2593423/R=0/SIG=11el9gslf/*http://www. netflix.com/Default?mqso=60190075 > <http://us.ard.yahoo.com/SIG=129sq9p52/M=298184.6018725.7038619.3001176/D=gr oups/S=1705007207:HM/EXP=078124/A=2593423/R=0/SIG=11el9gslf/*http:/www.n etflix.com/Default?mqso=60190075>> > >> >> >> >> >> *Yahoo! Groups Links* >> >> * To visit your group on the web, go to: >> http://groups.yahoo.com/group/flexcoders/ >> >> * To unsubscribe from this group, send an email to: >> [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]> >> >> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of >> Service <http://docs.yahoo.com/info/terms/>. >> >> > > -- > > Christoph Guse > Löhstraße 34 > 41747 Viersen > Tel. 0 21 62 / 50 24 066 > Mobil 01 72 / 160 74 84 > VoIP 0 12 12 / 39 64 48 831 > > > > > > *Yahoo! Groups Sponsor* > ADVERTISEMENT > click here > <http://us.ard.yahoo.com/SIG=129lgq2ib/M=298184.6191685.7192823.3001176/D=gr oups/S=1705007207:HM/EXP=093419/A=2593423/R=0/SIG=11el9gslf/*http://www. netflix.com/Default?mqso=60190075> > > > > > *Yahoo! Groups Links* > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > -- Christoph Guse Löhstraße 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831 Yahoo! Groups Links
Re: [flexcoders] List / DataGrid height problem
Hi Matt, i tried a real value and undefined instead of 100%, didn't help. Perhaps you have another idea, otherwise I have to change my layout. I prefer the first option ;-) Good night Christoph Matt Chotin schrieb: I’m not sure that the percentages are really going to work within a cell renderer. Basically if you have a preferred height the row will size to that row. But if you give it a percentage the row doesn’t know how tall you really are meant to be. So maybe try using a real value instead of 100%? Even undefined might actually be the right value so that it tries to size to the preferred size of the children. Matt *From:* Christoph Guse [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, March 16, 2005 9:43 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] List / DataGrid height problem Hi Matt, you are right. I give you some snippets of my code. List / DataGrid
RE: [flexcoders] List / DataGrid height problem
I’m not sure that the percentages are really going to work within a cell renderer. Basically if you have a preferred height the row will size to that row. But if you give it a percentage the row doesn’t know how tall you really are meant to be. So maybe try using a real value instead of 100%? Even undefined might actually bethe right value so that it tries to size to the preferred size of the children. Matt From: Christoph Guse [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 9:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] List / DataGrid height problem Hi Matt, you are right. I give you some snippets of my code. List / DataGrid variableRowHeight="true" dataProvider="{aufgabenData}" cellRenderer="aufgaben.AufgabenCellRenderer">
Re: [flexcoders] List / DataGrid height problem
Hi Matt, you are right. I give you some snippets of my code. List / DataGrid
RE: [flexcoders] List / DataGrid height problem
I assume you have variableRowHeight set to true? -Original Message- From: Christoph Guse [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 1:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] List / DataGrid height problem Hi List, I have some trouble with my custom CellRenderer. It is Panel wich expands when you click on it. The initial height is 28pt and when it expands, it has the height it needs. The Problem is, that when you click on it, the Panel expands as expected, but the row height doesn't change. I only get a scrollbar on the right side of the row. I tried several things, like draw() the list, but nothing helped. Any ideas? Thanks a lot Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831 Yahoo! Groups Links
List / DataGrid height problem
Hi List, I have some trouble with my custom CellRenderer. It is Panel wich expands when you click on it. The initial height is 28pt and when it expands, it has the height it needs. The Problem is, that when you click on it, the Panel expands as expected, but the row height doesn't change. I only get a scrollbar on the right side of the row. I tried several things, like draw() the list, but nothing helped. Any ideas? Thanks a lot Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831
RE: [flexcoders] datagrid height
Thanks Matt…I really need to work on my patience factor with searching the APIs. Sorry…such an idiotI am. From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 10:55 AM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] datagrid height http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/ScrollSelectList.html#rowCount J From: Robert Brueckmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 9:44 AM To: [EMAIL PROTECTED] Subject: [flexcoders] datagrid height Hey guys…I am trying something and getting a strange behavior. I get an array of objects from the database that becomes the data provider for my datagrid. I know the length of my data provider thanks to the myDataGrid.dataProvider.length method and I figure I could multiply that number by some arbitrary number of pixels to ensure that however many items are in my data provider, that’s how many rows are visible in my datagrid on the screen…so the datagrid is never scrollable. I’m using a method that sets thedataprovider of the datagrid, myDataGrid.dataProvider = data; and then I’m calling myDataGrid.setSize(Stage.width – 35, myDataGrid.dataProvider.length * 25); The Stage.width – 35 compensatesfor some other things on the screen to look proportionate and the myDataGrid.dataProvider.length * 25 is just guesstimating that each row in the datagrid component is about 25 pixels high. Well the first time I tried this, 25 was too large of a number so I adjusted it to 22, which seemed to work but still left me with a little extra bit of a final row visible. Well that was livable. Then I get a result set back that only had 2 items in it, instead of the 5 I had been testing this whole thing with and now only one row was visble and you have to scroll down to see the second row, so I increased the 22 to 30 and that fixed it for that but now if I call the original result set with the 5 items, I can see a row and a half extra blank rows. Is there a better way to dynamically show the number of rows based on the number of items in the data provider? I wish there was a size attribute like there is with the HTML select list component where if it’s a list you can say I want x-number of rows visible. I just don’t ever want the user to have to scroll within the datagrid…is there an easier way to do this? Thanks! This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone orby replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.
RE: [flexcoders] datagrid height
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/ScrollSelectList.html#rowCount J From: Robert Brueckmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid height Hey guys…I am trying something and getting a strange behavior. I get an array of objects from the database that becomes the data provider for my datagrid. I know the length of my data provider thanks to the myDataGrid.dataProvider.length method and I figure I could multiply that number by some arbitrary number of pixels to ensure that however many items are in my data provider, that’s how many rows are visible in my datagrid on the screen…so the datagrid is never scrollable. I’m using a method that sets the dataprovider of the datagrid, myDataGrid.dataProvider = data; and then I’m calling myDataGrid.setSize(Stage.width – 35, myDataGrid.dataProvider.length * 25); The Stage.width – 35 compensatesfor some other things on the screen to look proportionate and the myDataGrid.dataProvider.length * 25 is just guesstimating that each row in the datagrid component is about 25 pixels high. Well the first time I tried this, 25 was too large of a number so I adjusted it to 22, which seemed to work but still left me with a little extra bit of a final row visible. Well that was livable. Then I get a result set back that only had 2 items in it, instead of the 5 I had been testing this whole thing with and now only one row was visble and you have to scroll down to see the second row, so I increased the 22 to 30 and that fixed it for that but now if I call the original result set with the 5 items, I can see a row and a half extra blank rows. Is there a better way to dynamically show the number of rows based on the number of items in the data provider? I wish there was a size attribute like there is with the HTML select list component where if it’s a list you can say I want x-number of rows visible. I just don’t ever want the user to have to scroll within the datagrid…is there an easier way to do this? Thanks! This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone orby replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.
datagrid height
Hey guys…I am trying something and getting a strange behavior. I get an array of objects from the database that becomes the data provider for my datagrid. I know the length of my data provider thanks to the myDataGrid.dataProvider.length method and I figure I could multiply that number by some arbitrary number of pixels to ensure that however many items are in my data provider, that’s how many rows are visible in my datagrid on the screen…so the datagrid is never scrollable. I’m using a method that sets the dataprovider of the datagrid, myDataGrid.dataProvider = data; and then I’m calling myDataGrid.setSize(Stage.width – 35, myDataGrid.dataProvider.length * 25); The Stage.width – 35 compensatesfor some other things on the screen to look proportionate and the myDataGrid.dataProvider.length * 25 is just guesstimating that each row in the datagrid component is about25 pixels high. Well the first time I tried this, 25 was too large of a number so I adjusted it to 22, which seemed to work but still left me with a little extra bit of a final row visible. Well that was livable. Then I get aresult set back that only had 2 items in it, instead of the 5 I had been testing this whole thing with and now only one row was visble and you have to scroll down to see the second row, so I increased the 22 to 30 and that fixed it for that but now if I call the original result set with the 5 items, I can see a row anda half extra blank rows. Is there a better way to dynamically show the number of rows based on the number of items in the data provider? I wish there was a size attribute like there is with the HTML select list component where if it’s a list you can say I want x-number of rows visible. I just don’t ever want the user to have to scroll within the datagrid…is there an easier way to do this? Thanks! This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.