how to set width of the column depends on data

4 views
Skip to first unread message

noorul ameen

unread,
Mar 8, 2012, 1:11:06 PM3/8/12
to flex_...@googlegroups.com
Hi,
     I trust You are all well.
     I want to set width of the DataGridColumn  depends on the length of data in cell.
  i enclosed snapshot for this.



thanks
noorul
SET_WIDTH.png

Nitin Gopi

unread,
Mar 18, 2012, 2:07:34 PM3/18/12
to flex_...@googlegroups.com
Hi Noorul,
There is a property typicalitem, dataitem as shown below. You can use this.  Here the first column datafield is 'fname' and its width will be = width of string 'First Name' .
<s:typicalItem>
<s:DataItem  fname='First Name' lname='Second Name' />
</s:typicalItem>


noorul

--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



--
You can only depend on yourself. The cavalry ain't coming.
Reply all
Reply to author
Forward
0 new messages