Seems odd that you'd be setting rowHeight inside updateDisplayList.  You
should probably do it on the event where the user selects the option.
 
You shouldn't need callLater either, the DG should respond on the next
update.
 
It might be easier to figure out once try to get it working that way.
 
-Alex

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava
Sent: Monday, March 26, 2007 9:05 AM
To: [email protected]
Subject: Re: [flexcomponents] error when increase the rowheight at
runtime?



Hi Alex,

    I have done following:
    In the class where i added my datagrid as child:

    override protected function updateDisplayList(){ 
       ...
       // This height needs to be set at runtime, if user selects an
option
       // I have to increase the rowheight.
       if(changeHeight){
          myDataGrid.rowHeight = 50;
       }else{
          myDataGrid.rowHeight = 30;
       }

       doSomething();

       callLater(validateMyDataGrid);
    }

    private function validateMyDataGrid():void{
       myDataGrid.validateNow();
    }

    I tried putting invalidateDisplayList() and other functions but
didn't worked.

Thanks
Arpan


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, March 25, 2007 8:23:39 PM
Subject: RE: [flexcomponents] error when increase the rowheight at
runtime?



Increasing rowHeight while scrolling would probably not be handled
correctly.  Increasing rowHeight and scrolling before system validated
the DataGrid may not be handled well either.  Might you be doing one or
the other?

 

________________________________

From: flexcomponents@ yahoogroups. com [mailto: flexcomponents@
yahoogroups. com ] On Behalf Of arpan srivastava
Sent: Saturday, March 24, 2007 3:36 AM
To: Flex Components
Subject: [flexcomponents] error when increase the rowheight at runtime?

 

Hi All,
    
    I need to change rowheight of my datagrid at runtime. I have a bar
chart in one of my columns and when i change a property of bar chart at
runtime the row height of the datagrid should change. I am able to
change the rowheight but when i scroll the datagrid just after changing
the property i get an error from "scrollVertically( )" function in
"ListBase.as" that some property is undefine or null. I am not getting
at all what is the cause of the error. Is it just increasing the height
of row at runtime or anything else?

Thanks
Arpan

 

________________________________

The fish are biting.
Get more visitors
<http://us.rd.yahoo.com/evt=49679/*http:/searchmarketing.yahoo.com/arp/s
ponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50>
on your site using Yahoo! Search Marketing.



________________________________

Food fight?
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE
wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s
id=396545367>  Enjoy some healthy debate
in the Yahoo! Answers Food Drink Q&A.
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE
wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s
id=396545367>  

 

Reply via email to