Thanks for the answer it is fine for me now,

But the actual requirement is i need to set the width based on the data
present in the data grid..

If you know about this please let me know

Regards,
Pradeep


On Tue, Mar 9, 2010 at 8:47 PM, Akshar <[email protected]> wrote:

> <hbox horizontalscrollpolicy=off />
>
> On Mar 9, 8:16 pm, Akshar <[email protected]> wrote:
> > use horizontalscrollpolicy = off
> >
> > On Mar 9, 8:10 pm, pradeepflex <[email protected]> wrote:
> >
> > > Hello Friends,
> >
> > > Please help me out this one i have crossed all the possibilities with
> > > this datagrid
> >
> > > I have used one custom item renderer like this....
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> > > paddingTop="7" implements="mx.core.IFactory">
> > > <mx:Script>
> > >         <![CDATA[
> > >                 import mx.controls.RadioButton;
> >
> > >                  public function newInstance():*
> > >                         {
> > >                            return new custItemRenderer();
> > >                         }
> > >                 public function clickEvent(event:MouseEvent):void{
> > >
> parentDocument.imageHandler(data.POSITION_ID,data.COLLEAGUE_NAME);
> > >                 }
> >
> > >         ]]>
> > > </mx:Script>
> > > <mx:Image id="img" visible="{data.GRID_COUNT > 0}" source="images/
> > > srch_plus.gif" click="clickEvent(event)"/>
> > > <mx:Label id="Lbl" text="{data.COLLEAGUE_NAME}" truncateToFit="true"/>
> > > </mx:HBox>
> >
> > > In some cases if the label data more than width i mentoned in datagrid
> > > column horzontal scroll bar come in to picture.currently i want to
> > > disable this feature like default datagrid
> >
> > >         <mx:DataGridColumn headerText="           Name"
>  sortable="false"
> > > draggable="false" width="75" id="col1"
> > >
> itemRenderer="com.pfizer.gss.modules.view.add_position.custItemRenderer"
> >
> > >                         </mx:DataGridColumn>
> >
> > > Thanks for any urgent help................
> >
> > > Regards,
> > > Pradeep
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

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

Reply via email to