Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-17-2008, 08:01 PM   #1
RR_QQ
Registered User
 
Join Date: Jan 2008
Posts: 175
Default [AS3] Setting DataGrid width="100%"

So in MXML I can do this :

Code:
<mx:DataGrid x="0" y="0" width="100%"
to set the width to 100%. But in AS3 I get an error "1067: Implicit coercion of a value of type String to an unrelated type Number.

HOW do I set myDataGrid.width = 100%???

Thank you!
RR_QQ is offline   Reply With Quote
Old 04-18-2008, 09:02 AM   #2
panel
AS3
 
panel's Avatar
 
Join Date: Mar 2007
Location: Warsaw
Posts: 1,991
Send a message via Skype™ to panel
Default

ActionScript Code:
dataGrid.percentWidth = 100;
panel 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove a Datagrid added with AS3 CgullZa Components 6 03-30-2008 03:30 PM
Setting DataGrid Row Color Dynamically cuk Flex 2, 3 & 4 2 05-16-2007 04:10 PM
AS3 Loaded XML into DataGrid chuckgrenade Flex 2, 3 & 4 11 03-27-2007 07:55 PM
Setting the width of colums in a dataGrid quincewyss Components 1 06-24-2005 07:22 PM
Datagrid (V1): setting header row properties? campbela Components 1 10-13-2004 08:34 PM


All times are GMT. The time now is 01:04 PM.

///
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.