Telerik Forums
UI for WinForms Forum
2 answers
219 views

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

Jeff
Top achievements
Rank 1
 answered on 21 Jun 2018
1 answer
58 views

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

Hristo
Telerik team
 answered on 21 Jun 2018
7 answers
506 views
When using the EditorBrowser control, is it possible to set properties on the OpenFileDialog dialog, such as the OpenFileDialog.Filter property?
CSharpBR
Top achievements
Rank 1
 answered on 20 Jun 2018
3 answers
257 views

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.

 

 


 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jun 2018
1 answer
1.0K+ views

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

Dimitar
Telerik team
 answered on 20 Jun 2018
4 answers
97 views

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
    }
}
Dimitar
Telerik team
 answered on 20 Jun 2018
3 answers
104 views

Hi,

Is there a way to allow the user to draw a rectangle and get all the data points within that rectangle?

Thanks

Tony

Dimitar
Telerik team
 answered on 20 Jun 2018
3 answers
312 views

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

 

Dimitar
Telerik team
 answered on 19 Jun 2018
1 answer
112 views

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(اسفند)

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2018
9 answers
648 views
Hi,

I would like to change the GroupPanel Text. Currently it says, "Drag a column here to group by that column.". I would like it to say something else.

Can someone please assist.

Thanks,

Vance
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?