Hey Jitendra you are really genius. You made my day.
Thanks and regards, Varun Bajaj On Sat, Jan 23, 2010 at 2:22 PM, Jitendra Jain < [email protected]> wrote: > [Embed(source=""images/footnote_icon.PNG")] > public var img:Class; > > > override public function set data(value:Object):void { > super.data = value; > > var dtField:String = (listData as > AdvancedDataGridListData).dataField; > var strTemp:String = data[dtField]; > var tempArr:Array = (strTemp != > null)?strTemp.split("{{}}"):new Array(); > lbl.text = (tempArr[0]!= "undefined")?tempArr[0] > :""; > > if((tempArr.length >1) && > (tempArr[1]!= "undefined") && > (tempArr[1]!= "")){ > image1.source = img; > this.toolTip = tempArr[1]; > trace("Data=>"+tempArr[0]+" toolTip=>"+tempArr[1]); > } > } > > add this code to gridRenderer class. > > > > > > > > > On Sat, Jan 23, 2010 at 1:59 PM, Jitendra Jain < > [email protected]> wrote: > >> Varun, at my end this application is not working.You are missing some >> files. Please check and resend so that i can track. >> >> >> >> >> On Sat, Jan 23, 2010 at 1:43 PM, Jitendra Jain < >> [email protected]> wrote: >> >>> Varun don't load the images in the render. Instead use embed. See if it >>> helps >>> >>> >>> On Sat, Jan 23, 2010 at 11:37 AM, Varun Bajaj <[email protected]> wrote: >>> >>>> Jitendra thanks for your support but it is still showing same problem. >>>> In my application file i included advanced datagrid by following code. >>>> >>>> <ADG:ADGrid id="adg" /> >>>> >>>> >>>> Warm reagards, >>>> >>>> Varun Bajaj >>>> >>>> >>>> >>>> On Fri, Jan 22, 2010 at 6:27 PM, Jitendra Jain < >>>> [email protected]> wrote: >>>> >>>>> When you are scrolling the datagrid, item renderes are loading the >>>>> images which often takes time to calculate height and width etc. So >>>>> inorder >>>>> to stop this you need to override this method. It will be taken care >>>>> during >>>>> the later screen update. >>>>> >>>>> >>>>> On Fri, Jan 22, 2010 at 6:20 PM, Jitendra Jain < >>>>> [email protected]> wrote: >>>>> >>>>>> Add this function to ADGrid.mxml and see if it works.If not then >>>>>> please sent the file in which you are creating an instance of this >>>>>> AdvancedDataGrid object. >>>>>> >>>>>> >>>>>> >>>>>> override protected function scrollVertically(pos:int, deltaPos:int, >>>>>> scrollUp:Boolean):void{ >>>>>> invalidateDisplayList(); >>>>>> super.scrollVertically(pos,deltaPos,scrollUp); >>>>>> } >>>>>> >>>>>> >>>>>> On Fri, Jan 22, 2010 at 4:37 PM, Varun Bajaj <[email protected]>wrote: >>>>>> >>>>>>> Thanks jitendra for your response i am attaching my code files with >>>>>>> this mail. Also there is data file as xml format. >>>>>>> >>>>>>> >>>>>>> Warm regards, >>>>>>> Varun bajaj >>>>>>> >>>>>>> >>>>>>> On Fri, Jan 22, 2010 at 3:12 PM, Jitendra Jain < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> ItemRenderers are reusable components. Override function set data >>>>>>>> method .It will be good if you attach a zip file of your code. >>>>>>>> >>>>>>>> On Fri, Jan 22, 2010 at 1:05 PM, Varun Bajaj <[email protected]>wrote: >>>>>>>> >>>>>>>>> Dear All >>>>>>>>> >>>>>>>>> Greeting for the day. I am working with advancedDataGrid with >>>>>>>>> itemrenderer as hbox which is having image and label. Image should >>>>>>>>> shown >>>>>>>>> only if data exist. It works fine when grid loads but it comes out in >>>>>>>>> bad >>>>>>>>> shape after scrolling. >>>>>>>>> >>>>>>>>> Image spreads all over the cells. Please provide me any idea / code >>>>>>>>> to remove the error. >>>>>>>>> >>>>>>>>> Warm regards, >>>>>>>>> >>>>>>>>> Varun Bajaj >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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]<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]<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]<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]<flex_india%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/flex_india?hl=en. >>>> >>> >>> >> > > > -- > Thanks and Regards, > JJain, > > If you have knowledge, let others light their candles in it --Margaret > Fuller: > > -- > 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.

