Re: [flexcoders] Re: DataGridColumn headerText Runtime Exception , a Flex bug ?
On Wednesday 07 Mar 2007, jmorpher03 wrote: > I did not see any documentation mentioning this anywhere, nor is there > an indication about the settings for headerWordWrap. The LiveDocs for DataGridColumn.headerWordWrap, though giving it type '*', do also refer to DataGrid.wordWrap which is a Boolean. -- Tom Chiverton Helping to ambassadorially introduce enterprise-class information On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
[flexcoders] Re: DataGridColumn headerText Runtime Exception , a Flex bug ?
Hi all, Programmatically setting the "headerWordWrap" property to "true", without setting the headerHeight of the DataGrid to a bigger value seems to be causing this issue. I set the DataGrid's headerHeight="50" and then set the headerWordWrap to true. This seems to solve the issue. I did not see any documentation mentioning this anywhere, nor is there an indication about the settings for headerWordWrap. I hope this helps others who get stuck with similar issue. So here's how you can set it programmatically : myDGCol.headerWordWarp = true; In the DataGrid mxml, set the headerHeight to a higher value(to accomodate 2/3 lines. For ex : Regards, Asgar. --- In flexcoders@yahoogroups.com, "jmorpher03" <[EMAIL PROTECTED]> wrote: > > Hi, > I am getting a runtime error stating : > > TypeError: Error #1010: A term is undefined and has no properties. > > This happens when I try to set the headerText for a dynamically > created DataGridColumn which contains spaces and special characters. > For ex: > > var myDGCol:DataGridColumn = new DataGridColumn("mynewCol1"); > myDGCol.dataField = "mynewCol1"; > myDGCol.headerText = "2/20/07 to 4/3/07"; > > After this I add up the "myDGCol" to the DataGrid columns. > When I have a data, which enables the Vertical ScrollBar and I try > to scroll, this exception comes up. > > Has anyone faced this earlier ? > > Regards, > Asgar. >