Skip to content

Replies

0
Michael Germann
Michael Germann answered on Feb 1, 2017 12:08 AM

Hi Naresh,

   There is no auto-wrap feature, but there are two solutions that you may want to look into. One is for the Axis you can set the LabelMargin property, and give yourself more room to display the labels. Additionally I am not sure if you are already using the FormatLabel event. But you can always embed a LineFeed in the label string. Something like this:

xAxis.FormatLabel += XAxis_FormatLabel;

private static string XAxis_FormatLabel(AxisLabelInfo info)
{
    return string.Format("{0}\n{1:00}\n{2:00}", info.DateValue.Year, info.DateValue.Month, info.DateValue.Day);
}

Let me know if either of those help with your issue,

0
Michael Germann
Michael Germann answered on Jan 26, 2017 1:07 AM

Hi Naresh,

    The UltraChart is our original chart that we initially created roughly in 2005. It does have a few features such as 3D charts, that the UltraDataChart does not have, it currently also has a slightly better level of customization, but we will no longer be doing new development for it. The UltraDataChart is our latest chart, it was built with cross platform design in mind, the same chart look and feel, and API design in Windows Forms, WPF, jQuery, Xamarin, IOS and Android. We are also continuely developing for it, so if there is a feature or something that you do want, that we don't already have, the UltraDataChart is the one we will likely implement it in.

As to the blurry or flashing, you want to assign a value to the tag, and confirm that the tag is not the same, so you don't constantly update it. But in testing it myself it looks like we are constantly setting the label as well for the default tool tip so this looks like it will not work. You will need to create a custom Tooltip from scratch to get the behavior that you are looking for. You are encouraged to submit this as a feature request on our product ideas page here: ideas.infragistics.com, many of our new features are pulled from ideas suggested on this site.

Let me know if this helps,

0
Michael Germann
Michael Germann answered on Jan 23, 2017 11:28 PM

Hi Naresh,

    Currently it is not built into the DataChart to easily modify the DefaultTooltips. You do have the ability through the TooltipContentUpdating event to create your own custom tooltips. How that event works is it gives you the DataContext of the Tooltip, and the CurrentContent control that it is currently showing. Below is a snippet of a simple CustomTooltip:

        Control series_TooltipContentUpdating(object sender, ChartTooltipContentEventArgs e)
        {
            Panel panel = e.CurrentContent as Panel;

            // NOTE: The below check stops the redundant painting of the same tooltip
            if (panel == null || (panel != null && !panel.Tag.Equals(e.DataContext.Item)))
            {
                panel = new Panel();
                panel.Tag = e.DataContext.Item; // Needed for the above check to work
                panel.Size = new Size(300, 80);
                Color colorItem = e.DataContext.ActualItemBrush.Color.ToColor();
               
                Label l1 = new Label() { Text = e.DataContext.Series.GetType().FullName, Width = 290 };
                l1.Location = new System.Drawing.Point(5, 5);               
                Label l2 = new Label() { Text = e.DataContext.Series.Name, Width = 290 };
                l2.Location = new System.Drawing.Point(5, 28);
                Label l3 = new Label() { Text = e.DataContext.Item.ToString(), Width = 290 };
                l3.Location = new System.Drawing.Point(5, 51);

                l2.ForeColor = colorItem;
                l3.ForeColor = colorItem;
                panel.Controls.AddRange(new Control[] { l1, l2, l3 });
                
            }
           
            return panel;
        }

If you like the style of the DefaultTooltip, this event will fire with the DefaultTooltips enabled. While there is not a built in easy way to update the DefaultTooltip, you can access the control via the e.CurrentContent, and from there search through the UserControl's control structure to find the Label text and update it.

Let me know if this helps?

0
Michael Germann
Michael Germann answered on Sep 14, 2016 4:15 PM

Hi,

    If you are using groups, you shouldn't be using the VisiblePosition property. Instead of using the VisiblePosition, I suggest using the column.RowLayoutColumnInfo or the group.RowLayoutGroupInfo. Each of those have OriginX, OriginY, SpanX, SpanY which help with the position of the headers.

Essentially when you are using groups you are using our RowLayout feature.  Which the designer does offer the ability to help you greatly with positioning. The link below is the landing page for that feature which has links for using the designer or not.

http://help.infragistics.com/doc/WinForms?page=WinGrid_Row_Layouts.html

If you would like to manual code then and not use the designer, another suggestion might be turn on Column and group moving, and possibly resizing. Then move and size them to how you want then just see what the OriginXResolved ,OriginYResolved, SpanXResolved, SpanYResolved are.

private void UltraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)

{

e.Layout.Override.AllowRowLayoutColMoving = GridBagLayoutAllowMoving.AllowAll;

e.Layout.Override.AllowGroupMoving = AllowGroupMoving.WithinBand;

e.Layout.Override.AllowRowLayoutLabelSpanSizing = GridBagLayoutAllowSpanSizing.AllowAll;

}

Let me know if this helps,

0
Michael Germann
Michael Germann answered on Jun 28, 2016 4:05 PM

Hi Ram,

  The line you said worked in QTP 11, I could not have ever worked as you have it typed for a number of reasons.

    For starters, the ".Object.ToolbarsManager.Tools" is telling QTP to get the underlying control Object, and get the ToolbarsManager property, and it's child property Tools. Which our DockArea's do have those properties. Butit would return the .NET ToolsCollection object. Which you could not interact with directly via QTP.
 
    You then followed it with  tbmgrToolbar, tbmgrClick, "AppToolbar", "Save" which is the foot print for our QTP\UFT specific method PerformToolAction method, that is intended to run on the root QTP\UFT contexted object such as  SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are"). So I can imagine a valid recording interacting with the same Toolbar might be:

   SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are").PerformToolAction tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"

    That being said, the SwfWindow identifier also changed, which gives me the impression that this script is either not for the same form, or the underlying form was renamed. So the original script would no longer work on this form either. Even something as simple as :
SwfWindow("Zorba-WorkStation").Resize 200,200

Because it wouldn't be able to identify the Window correctly.

0
Michael Germann
Michael Germann answered on Jun 27, 2016 3:46 PM

Hi Nitin,

     As I said, our samples, at least on my machine it is using version 11. Also I even doubled checked the actual project file of that assembly, and the reference has SpecificVersion = False. As to why it is looking for 10, I am not sure. There are a few possibilities, but let's see if we can resolve your first error. When you drop on the PivotGrid on the Design surface it should add the following DLL's.

Infragistics4.Olap.Core.v##.#
Infragistics4.Olap.DataProvider.Adomd.v##.#
Infragistics4.Olap.DataSource.Flat.v##.#
Infragistics4.Olap.DataSource.Mdx.v##.#
Infragistics4.Olap.DataSource.v##.#
Infragistics4.Olap.DataSource.Xmka.v##.#
Infragistics4.Shared.v##.#
Infragistics4.Win.UltraWinEditors.v##.#
Infragistics4.Win.UltraWinPivotGrid.v##.#
Infragistics4.Win.UltraWinTree.v##.#
Infragistics4.Win..v##.#

If you manually added the dll's and created the PivotGrid in code, and left off a few of the assemblies that could be a reason why you are having the missing assemblies errors. Just so that I can possibly rule out different issues. Are all the assemblies local to your development machine? Was our product installed locally on your development machine with the assemblies in the GAC.

0
Michael Germann
Michael Germann answered on Jun 23, 2016 11:20 PM

Hi Nitin,

    No, we do not provide that dll as it is a Microsoft DLL, and it would be dependant on the version of SQL Server that you are using or connect to. I do not see specifically in our documentation what veersion we support, but my guess is that we do support all of the current ones as 12 is based on SQL Server 2012, and our control came out in 2014. Although the sample from our samples browser is using 11. From a StackOverflow question, below I was able to get a download site for the dll, but again I believe it is dependant on what you are connecting to, so check with your server or DB admin to verify.

http://stackoverflow.com/questions/23605901/adomdclient-missing
http://www.microsoft.com/en-us/download/details.aspx?id=29065

Also below is a link to our help demonstrating using PivotGrid with an ADOMD datasource
http://help.infragistics.com/doc/WinForms?page=WinPivotGrid_Using_ADOMD.html

Let me know if that works for you,