Oh I see, I thought that I had to make an itemrenderer for the
DataGrid object, I didn't know that DataGridColumn also had an
itemrenderer property.
Thanks
--- In flexcoders@yahoogroups.com, "Joan Tan" <[EMAIL PROTECTED]> wrote:
>
> If you want a button for one column of a DataGrid, you can do something
> like
>
>
>
> To use just the default drop-in button:
>
> <mx:DataGridColumn itemRenderer="mx.controls.Button" ...
>
>
>
> Or, you can create a custom component that subclasses the Button class
> so that you can define what type of events happen when you click the
> button. (This is probably more likely). So, you would then have
> something like:
>
>
>
> <mx:DataGridColumn itemRenderer="MyButton" ...
>
>
>
> where MyButton.as looks something like -
>
>
>
> public class MyButton extends Button
>
> {
>
> ...
>
> }
>
>
>
> I hope this helps.
>
> Joan
>
> ________________________________
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of rigidcode
> Sent: Tuesday, May 23, 2006 2:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Custom DataGrid Column (flex 2b3)
>
>
>
>
> I have a DataGrid. I want one of the columns to contain a button. It
> looks like I'm supposted to make an object that implements
> IDropinListItemRenderer right?
>
> I started doing that, but with that I'm responsible for not only
> rendering my one column- I have to render every column? Even the title
> columns. I don't want to do all that, I want to use the defaults for
> that stuff, I only want to change one column. Am I doing this right?
>
> thanks
>
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> SPONSORED LINKS
>
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>
> Computer software development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>
>
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>
> * 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/> .
>
>
>
> ________________________________
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.