• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

DataTip will not display in AdvancedDataGrid

New Here ,
Apr 12, 2011 Apr 12, 2011

Copy link to clipboard

Copied

I am really at the end of my discovery abilities!

I have dataTips properly defined in an AdvancedDataGrid component.  The dataTip simply will not display!  What in world am I missing?

I have experimented with several different permutations of settings - but it simply will not display.  Even the default "Data Tip not Found!" will not display.

Is there something higher up that may be preventing dataTip displaying?

                    private function getDataTip(object:Object):String                     {                          if( object is AdvancedDataGridColumn ) {                               if( object.hasOwnProperty("dataTipField") ) {                                    return(object.dataTipField);                               }                               else if( object.hasOwnProperty("headerText") ) {                                    switch(object.headerText) {                                         case "Cn":      return "Campaign Name";break;                                         case "Cb":      return "Date/Time Campaign Began";break;                                         case "MiH": return "Minimum Wait Time for Calls on Hold";break;                                         case "MaH": return "Maximum Wait Time for Calls on Hold";break;                                         case "AvH": return "Average Wait Time for Calls on Hold";break;                                         case "Ho":      return "Number of Calls Currently Holding";break;                                         case "MiT": return "Minimum Talk Time of Calls";break;                                         case "MaT": return "Maximum Talk Time of Calls";break;                                         case "AvT": return "Average Talk Time of Calls";break;                                         case "Tot": return "Total Calls in the Campaign";break;                                         case "Dr":      return "Dropped Calls";break;                                         case "%Dr": return "% of Calls Dropped";break;                                         case "Co":      return "Completed Calls";break;                                         case "%Co": return "% of Calls Completed";break;                                         case "Sta": return "Campaign Status";break;                                    }                               }                          }                          else {                               if( object.hasOwnProperty("dataTipField") ) {                                    return(object.dataTipField);                               }                               else if( object.hasOwnProperty("dataField") ) {                                    switch(object.dataField) {                                         case "campName":       return "Campaign Name";break;                                         case "started":       return "Date/Time Campaign Began";break;                                         case "minhold":       return "Minimum Wait Time for Calls on Hold";break;                                         case "maxhold":       return "Maximum Wait Time for Calls on Hold";break;                                         case "avghold":       return "Average Wait Time for Calls on Hold";break;                                         case "holding":       return "Number of Calls Currently Holding";break;                                         case "mincall":       return "Minimum Talk Time of Calls";break;                                         case "maxcall":       return "Maximum Talk Time of Calls";break;                                         case "avgcall":       return "Average Talk Time of Calls";break;                                         case "totalcalls": return "Total Calls in the Campaign";break;                                         case "abandon":       return "Dropped Calls";break;                                         case "pdropped":       return "% of Calls Dropped";break;                                         case "completed":  return "Completed Calls";break;                                         case "pcomp":            return "% of Calls Completed";break;                                         case "status":            return "Campaign Status";break;                                    }                               }                          }                          return "Data Tip Not Found!";                     }

<mx:AdvancedDataGrid id="cCalls" dataProvider="{ArrayCamps}" dataTipFunction="{getDataTip}" sortExpertMode="true" editable="false" enabled="true" width="100%" height="100%" textAlign="center" styleName="DatagridComp" bottom="0">      <mx:columns>      <mx:AdvancedDataGridColumn headerText="Cn"  dataField="campName"   dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Campaign Name" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="Cb"  dataField="started"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Date/Time Campaign Began" width="140" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="MiH" dataField="minhold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Minimum Wait Time for Calls on Hold" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="MaH" dataField="maxhold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Maximum Wait Time for Calls on Hold" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="AvH" dataField="avghold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Average Wait Time for Calls on Hold" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="Ho"  dataField="holding"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Number of Calls Currently Holding" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="MiT" dataField="mincall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Minimum Talk Time of Calls" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="MaT" dataField="maxcall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Maximum Talk Time of Calls" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="AvT" dataField="avgcall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Average Talk Time of Calls" headerWordWrap="true" />      <mx:AdvancedDataGridColumn headerText="Tot" dataField="totalcalls" dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Total Calls in the Campaign" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="Dr"  dataField="abandon"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Dropped Calls" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="%Dr" dataField="pdropped"   dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="% of Calls Dropped" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="Co"  dataField="completed"  dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Completed Calls" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="%Co" dataField="pcomp"      dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="% of Calls Completed" headerWordWrap="false" />      <mx:AdvancedDataGridColumn headerText="Sta" dataField="status"     dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Campaign Status" headerWordWrap="false">           <mx:itemRenderer>                <mx:Component>                <mx:HBox width="100%" horizontalAlign="center">                     <mx:Image horizontalAlign="center" verticalAlign="middle" width="16" source="images/{data.status}.png" />                                                                           </mx:HBox>                </mx:Component>           </mx:itemRenderer>      </mx:AdvancedDataGridColumn>                     </mx:columns> </mx:AdvancedDataGrid>

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 12, 2011 Apr 12, 2011

Copy link to clipboard

Copied

when i cut and paste your work into one of my apps the tips appear fine when i hover over the column name

i had to clobber the last grid column and remove the reference to the dataprovider. empty grid but the tips were there

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

Thanks, but that really is my point.  It simply does not display.  I was pretty certain that I had coded everything correctly.

Any ideas on what may be preventing them from displaying?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

maybe i am really dense but what I am saying is that they are displaying

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

No, you certainly are not!  That is why I am so baffled here.  They seem to be displaying for you, and, are certainly coded correctly.

However, in my application, they just plain are not showing!

I just cannot for the life of me figure out what /where is preventing them from displaying in my app!

I am hoping someone can point me to somewhere that could give some clue about why they would NOT appear, when they are coded correctly and should be appearing!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

can you see the datatips on this:

http://trumpboston.com/datatips/wcf_client_test.html

ignore the error that first arrives ...

maybe it is your build, your libraries

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

Yes, I sure can see the dataTips on that page.  Still baffled as to where/what build/lib settings may be affecting this display tho.

This is certainly a wierd one and, I would guess, something that may benefit fellow developers.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

Well, I found the solution.  In our environment of several devlopers, and, in our app, which does addChild() to display new screens in a base window, another developer had inserted ToolTipManager.enabled = false; code.  This overrode the display in child screens of the datatips.

I removed that and we are back to displying the tips!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

hurray !

Date: Wed, 13 Apr 2011 13:26:56 -0600

From: forums@adobe.com

To: drewpierce@live.com

Subject: DataTip will not display in AdvancedDataGrid

Well, I found the solution. In our environment of several devlopers, and, in our app, which does addChild() to display new screens in a base window, another developer had inserted ToolTipManager.enabled = false; code. This overrode the display in child screens of the datatips.

I removed that and we are back to displying the tips!

>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 07, 2012 Feb 07, 2012

Copy link to clipboard

Copied

LATEST

Hello!

My problem is not really similar but it has to do with DataTips too so I thought maybe one of you would have an idea. I have dataTips in my AdvancedDataGrid that are specific to each row. This works just fine except for a few rows at the top of the grid. I say a few because on my computer it's broken on the three first rows but only on two on a colleague's computer. That has to be the weirdest bug I've ever seen but maybe someone had a similar problem and will be able to help me.

Thanks for reading this post. Hope you can help.

Regards,

Gudril

Edit: Never mind, I found a solution. It occurred when I switched the datagrid verticalScrollPolicy to off AFTER the datagrid had been created. So I just changed this portion and it works fine. Hope this helps if anybody encounters the same problem.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines