Highcharts - allowPointDrilldown: false not hiding category names - highcharts

allowPointDrilldown: false not hiding category names.
Drill down to second level
Unselect Parent and Child2 or any combination. The category names are not hiding and also unwanted sequence numbers are also showing. (-1, 8, 9).
How to hide the unwanted category names?
jsfiddlehttp://jsfiddle.net/4gdwjkn4/

Related

AllowAllUp property for TToolButton Is Not Working

I am using Delphi XE5.
I am trying to workout as per the Delphi's help about TToolButton component.
Delphi Help Says about TToolButton.AllowAllUp property:
Indicates whether all the tool buttons in a group can be un-selected at the same time.
If AllowAllUp is set to true, all of the tool buttons in the group can be unselected. If AllowAllUp is set to false, at least one tool button in the group must be selected at any time. (Determine which tool button is initially selected by setting its Down property to true.)
AllowAllUp is effective only when Grouped is true and Style is set to tbsCheck. Changing the value of AllowAllUp for one button in a group automatically changes the value for all buttons in the group.
What I have done is I have placed a TToolBar on the form and created three TToolButtons in it. Then AllowAllUp and Grouped property is set to True. Also, set Style property to tbsCheck.
When I run the application, and when I go on clicking all buttons one by one, then any one button is showing as selected, if i try to select or click on other TToolButton previous one becomes un-selected.
How to make AllowAllUp property working?
These properties all work as intended. It seems that you are misunderstanding the intent of these properties.
The documentation for the Grouped property says:
When an unbroken sequence of adjacent tool buttons each has its Grouped property set to true and Style set to tbsCheck, then no more than one of the buttons can be selected at the same time.
The AllowAllUp property is related and described like so:
Indicates whether all the tool buttons in a group can be unselected at
the same time.
If AllowAllUp is set to true, all of the tool buttons in the group can
be unselected. If AllowAllUp is set to false, at least one tool button
in the group must be selected at any time. (Determine which tool
button is initially selected by setting its Down property to true.)
AllowAllUp is effective only when Grouped is true and Style is set to
tbsCheck. Changing the value of AllowAllUp for one button in a group
automatically changes the value for all buttons in the group.
This property only has an impact when you group buttons, and what it does is control whether or not you can have zero buttons down. But once you have grouped buttons, never more than one of the group can be down at any one time.
You need to do the following:
Set Grouped to False.
Set AllowAllUp to False, not that it really matters but you may as well restore the default to avoid confusion.
Set the style to tbsCheck.
Once you've done this you can check and uncheck the buttons independently of each other.

How to render Menu level 1 and 2 always others if parent selected with simple navigation

I am working with SimpleNavigation-gem on rails;
My Menu display looks like this: Top - level (level 1) on top of the page (thats why it is called top level, I think)
toplevel has 3 items: left, right and legal (at the bottom ;-))
all have some submenus
what I already got is:
A toplevel menu, only showing level 1 ie 3 items.
a menu on the left, showing only 'menu left' items and same for the other two.
All is fine as long i 'expand: all', but i dont want to have all expanded, level 3 should only be here if level2 is selected. so what I need is 'expand: all_to_level_2'
if I use level: (1..2) i get what it says level 1 & 2 but not level 3 if parent is selected
any ideas?

TcxGrid column is hidden when dragging to group row

I have two seemingly identical TcxGrids bound to two different tables. On one grid, when the column header is dragged and dropped to the group panel, a large X appears above the column being dragged, when it is dropped the column is immediately hidden. On the other grid a big circle with a line through it shows and it cannot be dropped on to the group panel. The Options.Grouping for both columns is false. Why the difference in the two behaviors ? I cannot see a property setting difference but I'm sure there must be one somewhere that causes this behavior. What property is it ?
John
Inspect the properties of the column which won't group in the Object Inspector. Probably, you'll find that its DisableGrouping property is set to True. If it is, set it to False. If that doesn't work, a) I'll take this answer down and b) edit your q to add the contents of your DFM.
There are two places in DX grid that control the ability to group columns. First is at the grid level and it takes precedent over the columns' individual Options.Grouping settings. Second is at the column level. Look at .OptionCustomize.ColumnGrouping. It may be set to False.

TeeChart, "skip" rows value when column marked "Exclude"

Delphi XE3
Steema VCL Charting
I have a data source with 12 rows. Each row has a vertical bar. I have a column in the table that is called Exclude. If Exclude is True I do not want it to “draw” the bar for that rows value. How can I exclude some rows values from being charted programmatically? The pseudo code would be…
If Exclude <> True then draw bar ;
If someone changes the Exclude value I want to redraw the graph to reflect the change in that rows value which means if Exclude is True the bar does not get drawn.
The easiest way to do that is using the SetNull method to make a bar null and hence not being painted, for example:
if Exclude then Series1.SetNull(Index);
you can revert that calling SetNull like this:
Series1.SetNull(Index, False);

Checked Toggle between TMenuItems in group

I have three menu items I would like to toggle between one another with a check.
The first one is default checked = true and the other two are false
I would like to have the check mark show next to the one clicked
I tried setting the group index of the three different from the rest of all the other menu items, but that didn't seem to work. All three menu items have autocheck = true
do I have to manually handle all this by code?
thanx
You need to do the following for each of the three menu items:
Set AutoCheck to True.
Set RadioItem to True.
Set the GroupIndex for all three items to the same value.
This will result in a bullet rather than a tick being placed next to your menu item. That's by design. These menu items operate like radio buttons (hence the bullet) rather than check boxes (which would have ticks).

Resources