foreach
(ChartSeries collection in chart.Series){
foreach (ChartSeriesItem item in collection.Items
{
item.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click);
}
}
protected void ActiveRegion_Click(object sender)
{
ChartSeriesItem item = (ChartSeriesItem)sender;
item.ActiveRegion.Tooltip = item.Parent.Name;
//MessageBox.Show(item.Parent.Name);
}
error:Error 212 No overload for 'ActiveRegion_Click' matches delegate 'Telerik.Charting.RegionClickEventHandler'
In my solution I had RadControls 2007 and I can drag an item from a RadList box, to a RadTextbox
After the upgrade to RadControls 2008 Q2 – the behaviour is a bit funny...
If I use the MouseDown event
private void lstAlertTokens_MouseEnter(object sender, MouseEventArgs e)
{
if (lstAlertTokens.SelectedIndex >= 0)
{
string text = lstAlertTokens.Text;
lstAlertTokens.DoDragDrop(text, DragDropEffects.Copy);
}
}
The Drag and drops works, but when I click on items in the list, they are not selected (highlighted), I must use the up/down keyboard keys to first select the item I want, before I drag and drop it.
If I use the mouseUp event
The item selection works now (gets highlighted) when I click the mouse , but the DragDrop effect icon is missing.. So the drag and drop works, but you don’t see the DragDropEffects.Copy effect.
Any ideas?
How do I set the Size of a DockPanel in a docked state at runtime? Here's my simple code.
panel = new Telerik.WinControls.Docking.DockPanel();
panel.DockState = Telerik.WinControls.Docking.
DockState.Docked;
panel.Size = new Size(250, 250);
For some reason the Size is not set. It just remains the same.
Thanks,
Ryan
Hi,
Is there an easy way to have a method called every time the selection change (added or removed node) ? A function called SelectionChanged?
Actually the Selecting event is fired only when node are added. When you use multi select you can remove a node by clicking on it with the CTRL key down. In this case the Selecting event is not fired...
Do you plan to add this feature in a next release?
Thanks in advance,
Best regards,
Fred