Hi Gautham, Can you explain it in more detail please ? What do you mean by need to access this datagrid using keyboard and need to click this link (button ?) using any keypress.
I guess you meant that when you are in the linkbutton column, any keypress will mean you clicked the linkbutton. If that is the case, listen for keyboard events and in the handler check for the column id and if that column is the linkbutton column go ahead and do your logic. Not sure if I understood your problem properly, but I think that's what you meant. -V On Thu, Feb 3, 2011 at 12:07 AM, Gautam Ram <gauthamram...@gmail.com> wrote: > hi Friends, > > Any idea regarding this?? > > Gautham > > On Thu, Jan 27, 2011 at 11:18 AM, Gautam Ram <gauthamram...@gmail.com>wrote: > >> Hi all, >> >> I have a datagrid which contians 3 datagridcolumns. >> Last datagridcolumn uses one itemRendor.. that is an MXMl file. >> In this column one linkbutton will displayed after loading. >> I need to access this datagrid using keyboard. >> and need to click this link using any keypress. >> >> Gautham >> >> >> >> >> On Wed, Jan 26, 2011 at 11:37 AM, Raj <db.raj...@gmail.com> wrote: >> >>> >>> What do u mean by "* datagrid column change.."* >>> Which class does DGIconRender extend ? >>> >>> Maybe what you need is to use inline item renderer and attach event >>> listeners. >>> >>> You can also dispatch custom events as Munira said, if that is >>> sufficient, go for it. >>> If you need more control on specific events, then use inline item >>> renderer. >>> >>> -Raj >>> >>> >>> On Mon, Jan 24, 2011 at 3:53 PM, Munira Presswala >>> <p.munir...@gmail.com>wrote: >>> >>>> hi, >>>> >>>> you can dispatch a custom event from the function onClickEvent and set >>>> it bubbles true and then handle it in main application and addeventListener >>>> should be called on data grid reference. >>>> >>>> On Thu, Jan 20, 2011 at 1:36 PM, Gautam Ram >>>> <gauthamram...@gmail.com>wrote: >>>> >>>>> Hi.. >>>>> >>>>> <mx:DataGrid id="dgId" dataProvider="{ddStmt}"> >>>>> <mx:columns> >>>>> <mx:DataGridColumn dataField="name" headerText="Name" >>>>> width="150"/> >>>>> <mx:DataGridColumn id="typeId" dataField="type" >>>>> itemRenderer="com.DGIconRender" headerText="file" width="200"/> >>>>> >>>>> </mx:columns> >>>>> </mx:DataGrid> >>>>> >>>>> >>>>> >>>>> DGIconRender class .. >>>>> -------------- >>>>> >>>>> override public function set data(value:Object):void >>>>> { >>>>> if(value != null) { >>>>> super.data = value; >>>>> } >>>>> } >>>>> >>>>> >>>>> public function onClickEvent():void{ >>>>> Util.openDocument(data); >>>>> } >>>>> >>>>> <mx:HBox width="100%" height="100%" verticalGap="0" horizontalGap="0" >>>>> verticalAlign="middle" horizontalAlign="center"> >>>>> <mx:HBox id="pdbox"> >>>>> <mx:LinkButton id="testImage" rollOverColor="#FFFFFF" >>>>> textRollOverColor="#000000" click="onClickEvent()"/> >>>>> </mx:HBox> >>>>> </mx:HBox> >>>>> >>>>> *My issue*: *select the dataFridcolumn using keyboard and invoke the >>>>> onClickEvent() (In the ItemRendor) >>>>> while datagrid column change.. while am trying to access that function >>>>> using change() of datafrid >>>>> am getting null object reference * >>>>> >>>>> Gautham >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, Jan 20, 2011 at 11:03 AM, Vikas Madan <madan.vika...@gmail.com >>>>> > wrote: >>>>> >>>>>> Gautham, I am not sure if I understood your problem properly. Please >>>>>> share some code for better understanding, so that others can help you. >>>>>> >>>>>> I guess you need to use, itemClick event and do what you are trying to >>>>>> do. But we can give you the most appropriate answer only once we know >>>>>> what >>>>>> you are doing in the code currently. >>>>>> >>>>>> Thanks, >>>>>> Vikas >>>>>> >>>>>> On Wed, Jan 19, 2011 at 8:25 PM, Gautham <gauthamram...@gmail.com>wrote: >>>>>> >>>>>>> Hi Friends, >>>>>>> >>>>>>> I am working with a mx:datagrid and one of my column uses itemRendor >>>>>>> and clicking that column uses a function which passes data as >>>>>>> arguement. >>>>>>> I need to access this function from my mxml page using the datagrid >>>>>>> column change. >>>>>>> while am trying to call this function am getting error like null >>>>>>> object reference >>>>>>> >>>>>>> currently the item rendor class is overriding (override public >>>>>>> function set data(value:Object):void) >>>>>>> and this data is sending to the click function. >>>>>>> >>>>>>> How i can call this function from my mxml >>>>>>> >>>>>>> Gautham. >>>>>>> >>>>>>> -- >>>>>>> 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_india@googlegroups.com. >>>>>>> To unsubscribe from this group, send email to >>>>>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>>>>> . >>>>>>> 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 flex_india@googlegroups.com. >>>>>> To unsubscribe from this group, send email to >>>>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>>>> . >>>>>> 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 flex_india@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>>> . >>>>> 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 flex_india@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>>> . >>>> 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 flex_india@googlegroups.com. >>> To unsubscribe from this group, send email to >>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> >>> . >>> 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 flex_india@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > 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 flex_india@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.