Hi everybody !
I have a radTreeView controller binding by self referencing data from a programmatically build DataTable..
I define radtreeView ChildMember, ParentMember and DisplayMember properly, all looks fine.
on select event click like mouseclick for instance, I easily can get DisplayMember value using e.Node.Name or e.Node.text, but I need to get the ChildMember value, and I can't find any way to find It.
A piece of help would be great !
Thanks in advance !
Jeff
I am trying to implement shortcut key for my application and I try to use RadShortcuts to add into Shortcuts property of component such as TextBoxElement, ButtonElement. But it seems that the RadShortcuts does not work as I expected.
For Ex:
1. I create a RadShortcut with combination of Shift+LWin+M, there is no event fired.
2. I use Shift+M+LWin -> it works.
Any one know how to create RadShortcut as #1 ?
Thanks in advance,
Hung
I updated to 2016 Q1 from 2014. In 2014, I had worked around the problem of the drop down closing whenever the user tried to click on a filter row by subscribing to the drop down closing event. Here was the code for that event which worked great for me:
If TypeOf sender Is RadMultiColumnComboBox Then
rmc = sender
If rmc.SelectedIndex > -1 Then
'--- if focus is on a row, then let popup close
'Console.WriteLine("clicked on: " & CStr(rmc.SelectedIndex))
Else
'--- else, check mouse position and don't allow close if within popup window area
pt = rmc.EditorControl.TableElement.PointFromControl(MousePosition)
popTop = rmc.MultiColumnComboBoxElement.MultiColumnPopupForm.Top
popLft = rmc.MultiColumnComboBoxElement.MultiColumnPopupForm.Left
popHt = rmc.MultiColumnComboBoxElement.MultiColumnPopupForm.Height
popWd = rmc.MultiColumnComboBoxElement.MultiColumnPopupForm.Width
If pt.X >= popLft And pt.X <= popLft + popWd Then
If pt.Y >= popTop And pt.Y <= popTop + popHt Then
'--- should be click within window so leave it open
args.Cancel = True
rmc.Focus()
End If
End If
End If
End If
Now, when a user clicks on the filter row, it opens the drop down so they can type in a filter but as before, they have to click on it twice to set the focus (a separate bug?). When they make the second mouse click with 2016Q1, I am now getting a null reference exception in Telerik.Wincontrols.UI. I cannot even trap this error in a Try..Catch, it simply crashes the program. Screenshot shows situation...user clicks drop down on Cust# field...clicks on filter row in customerName column, has to click again to set the focus and the POOF!
Thanks in advance for help.
Hello,
I would've thought there would be a simple way to do this, but having gone through the documentation I can't find anything.
What I want is that when there resides a data point on a chart which can be used to drill down to another chart, that when the mouse cursor hovers over that data point the cursor will change from an arrow to a hand.
https://docs.telerik.com/devtools/winforms/chartview/features/drill-down
Within the RadChartView object I can't find any events that would inform me of when the mouse cursor resides over a datapoint, and even when using the coordinates on the "MouseMove" event, I can't find anything within the API to translate the coordinates to a data point.
Is there anyway to know when the mouse cursor is hovering over a datapoint?
Thanks!
Matt
I need to change the BackColor of the Tabs inside the PageViewElement of a Child row in a Gridview. I can access the PageViewElement itself, but how do I get to the Tabs' BackColor Property?
private void myDataTable_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
GridDetailViewCellElement detailCell = e.CellElement as GridDetailViewCellElement;
if (detailCell != null)
{
detailCell.Margin = new Padding(60, 0, 0, 0);
detailCell.Font = new Font(new FontFamily("Calibri"), 20.0f, FontStyle.Bold | FontStyle.Underline);
detailCell.ForeColor = Color.FromArgb(255, 102, 0);
detailCell.PageViewElement.DrawFill = true;
detailCell.PageViewElement.BackColor = Color.Red; //this sets the backcolor of the PageViewElement
}
}
Hi,
Is there a way to allow the user to draw a rectangle and get all the data points within that rectangle?
Thanks
Tony
Hi,
I try to save the content of a simple RadForm to a Bitmap.The non client area of the form is not drawn at all (transparent value). If I disable Theming, it works.
Here is the code I used :
static
void
Main()
{
Application.EnableVisualStyles();
var form =
new
RadForm1();
//
form.AllowTheming =
false
; --> Works is Theming is disabled ! Otherwise no.
form.Show();
var rect =
new
Rectangle(0, 0, form.Bounds.Width, form.Bounds.Height);
var image =
new
Bitmap(rect.Width, rect.Height);
form.DrawToBitmap(image, rect);
image.Save(
"d:/test.png"
);
}
How can I force the drawing of the NC area of the form ?
Thks
hi
i'm using radDateTimePicker with Persian culture (fa-IR) in my win-from application
but when i want to change month to select other date Next button doesn't work
it will stop on some special month like Ordibehesht(اردیبهشت),Tir(تیر),Esfand(اسفند)