Telerik Forums
UI for WinForms Forum
0 answers
98 views

I want to change cursor from default to hand cursor when I hover cursor over the rectangle showing the color of the legend item.

How to achieve this?

Borislav
Top achievements
Rank 1
 asked on 10 Nov 2017
3 answers
155 views

I've followed an example I found on your site for creating a custom gridview column. 

https://docs.telerik.com/devtools/winforms/gridview/cells/creating-custom-cells

 

 I was able to get it to work and populate, but only by manually editing the designer document of the form in which the grid was located.   My column type, however, does appear on my list of column types but after adding it, and when I try closing the grid design window I get an error.  Can you tell me what I'm doing wrong?  Attached a screen shot showing my columntype in the list, the column added (column1), and the error message I received.   Thanks for any help you can give me.

 

 

Dimitar
Telerik team
 answered on 10 Nov 2017
2 answers
208 views

Hi,

I'd like to change the initial directory used by Open and Save buttons. An InitialDirectory property like in OpenFileDialog would be perfect.

Thanks for your help

 

 

Frédéric
Top achievements
Rank 1
 answered on 10 Nov 2017
2 answers
122 views

Hi.  I'm looking to use the RadTrackBar as a selector for hours.  For example, far left would be 0700 (7am) and far right would be 1400 (2pm).

I cannot figure out how to disable/turn off/colorize the TrackBarIndicatorElement behind the slider.  I want just the bar with the slider.  As the user moves it, there should not be any color displayed in the bar.  Is that possible?

Elijah
Top achievements
Rank 1
 answered on 09 Nov 2017
1 answer
443 views

Hi,

i am trying to set focus on combobox during form shown event. I can't see method Focus(). Is there anything i am missing?

Version of control is : 2016.1.112.40

 

please help

 

Thanks

Binu

Hristo
Telerik team
 answered on 09 Nov 2017
5 answers
221 views
Hello Telerik,

I would like to customize RadPageView in mode Backstage. I like how it looks with 'TelerikMetro' theme, but I would like to change method for selecting active page - instead of using image (green arrow) I would like to use simple border on the left side. That what I am doing:
1. Open Visual Style Builder
2. Select RadPageView control and set it to Backstage.
3. Apply to 'TelerikMetro' theme.
4. Expand control tree and select 'RadPageViewStripItem' for customization.
5. Go to 'Element states' window for customization needed states for item. In my case I am looking all states where green arrow image is used. There are 'RadPageViewStripItem.Selected','RadPageViewStripItem.MouseDown' and 'RadPageViewStripItem.Selected.MouseOver'.
6. Disable repository item with green arrow.
7. Create new simple repository item - Border. For highlighting active tab.
8. And this is the issue - on preview, I see that when I select page, I have border for some pages that are not selected. It looks like the border line is too long. The same result I have if I try to use this changed theme in my project.

How I can change this and how to make border shorter, only for needed page item? I am really don't understand what causes this error.

I also uploaded video to - https://www.screencast.com/t/ZehV4cXj
Hristo
Telerik team
 answered on 09 Nov 2017
1 answer
297 views

Hello.

I have a problem with the scrollbars.

I have 2 Usercontrols with one radpageview.

The first code works.

The second don´t works.

There are no Scrollbars.

Please help.

Private Sub Hauptmenue_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    Dim _tablet As TetraFMS.FMSTablet 'Läd das Hauptfenster in die Anwendung
    _tablet = Controls("ucFMSTablet")
    If _tablet Is Nothing Then
        _tablet = New FMSTablet()
        _tablet.Name = "ucFMSTablet"
 
        Me.Controls.Add(_tablet)
        _tablet.Dock = DockStyle.Fill
        _tablet.HorizontalScroll.Enabled = True
        _tablet.VerticalScroll.Enabled = True
        _tablet.BringToFront()
    Else
        _tablet.Dock = DockStyle.Fill
        _tablet.BringToFront()
    End If

 

Private Sub RibbonTabDesigner_Click(sender As Object, e As EventArgs) Handles RibbonTabDesigner.Click
    Dim _designer As TetraFMS.FMSEditor
    _designer = Controls("ucFMSEditor")
    If _designer Is Nothing Then
        _designer = New FMSEditor()
        _designer.Name = "ucFMSEditor"
 
        Me.Controls.Add(_designer)
        _designer.Dock = DockStyle.Fill
        '_designer.AutoScroll = True
        _designer.HorizontalScroll.Enabled = True
        _designer.VerticalScroll.Enabled = True
        _designer.BringToFront()
        _designer.Refresh()
 
    Else
        '_designer.AutoScroll = True
        _designer.HorizontalScroll.Enabled = True
        _designer.VerticalScroll.Enabled = True
 
        _designer.BringToFront()
        _designer.Refresh()
    End If
 
 
End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Nov 2017
5 answers
164 views
Hello Guys

Im trying to create a simple Hierarchy in a RadGridView, but the RadGridView 
is not making the relation, i mean, as you can see in the attached file,
 even the relation is betweet columns Id_Report of the parent Template,
and Id_Report  of the child template, is not making the match between them.
 Can anyone tell me something about this behaivor pls? 


Dim template As New GridViewTemplate()
template.BeginUpdate()
template.DataSource = Me.oConsulta.Select_DS("56").Tables(0)
grReportsSolicitado.MasterTemplate.Templates.Add(template)
 
Dim relation As New GridViewRelation(grReportsSolicitado.MasterTemplate)
relation.ChildTemplate = template
relation.RelationName = "Id_Report"
relation.ParentColumnNames.Add("Id_Report")
relation.ChildColumnNames.Add("Id_Report")
grReportsSolicitado.Relations.Add(relation)
template.EndUpdate()
Me.grReportsSolicitado.EndUpdate()
Me.grReportsSolicitado.Refresh()


Thanks for you Help

Cesar
Mariajo
Top achievements
Rank 1
 answered on 07 Nov 2017
1 answer
144 views

HI,

I have a radPopupEditor control and a radPopupContainer control .Inside radPopupContainer , i placed a radGridView. In radGridView there are a lot of data and have a scroll in it , the problem is when i tried to scroll inside the radGridView the popub  is closing  and the radGridView  scroll doesnt works . how can i solve the problem.

Dimitar
Telerik team
 answered on 07 Nov 2017
3 answers
124 views

Hi,

Spent some time today with the RadTreeView and can't figure out why a node is removed fine from the DS when using 

            radTreeView1.DisplayMember = "Name";
            radTreeView1.ValueMember = "Id";

But not when using:

            radTreeView1.DisplayMember = "Name\\ChildName";
            radTreeView1.ChildMember = "list\\ChildObjects";

Regards,

Thomas

See code below:

namespace RadTreeViewTest
{
    public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        BindingList<MyObject> list = new BindingList<MyObject>();
        int counter = 0;
        public RadForm1()
        {
            InitializeComponent();
            list.ListChanged += List_ListChanged;
            radTreeView1.DataSource = list;
            radTreeView1.DisplayMember = "Name\\ChildName";
            radTreeView1.ChildMember = "list\\ChildObjects";
            //radTreeView1.DisplayMember = "Name";
            //radTreeView1.ValueMember = "Id";
        }
 
        private void List_ListChanged(object sender, ListChangedEventArgs e)
        {
            radLabel1.Text = ""+list.Count;
        }
 
        private void radButton1_Click(object sender, EventArgs e)
        {
            list.Add(new MyObject(counter++, "Test " + counter, 5));
        }
    }
 
    public class MyObject : INotifyPropertyChanged
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { SetField(ref id, value, "Id"); }
        }
        private string name;
        public string Name
        {
            get { return name; }
            set { SetField(ref name, value, "Name"); }
        }
 
        private int counter;
        public int Counter
        {
            get { return counter; }
            set { SetField(ref counter, value, "Counter"); }
        }
        public BindingList<ChildObject> ChildObjects { get; set; }
        public MyObject()
        {
 
        }
        public MyObject(int i, string n, int c)
        {
            ChildObjects = new BindingList<ChildObject>();
            this.Id = i; this.Name = n;this.Counter = c;
            ChildObjects.Add(new ChildObject(i, "ghejwgk 1"));
            ChildObjects.Add(new ChildObject(i, "ghejwgk 2"));
        }
 
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
        protected bool SetField<T>(ref T field, T value, string propertyName)
        {
            if (EqualityComparer<T>.Default.Equals(field, value)) return false;
            field = value;
            OnPropertyChanged(propertyName);
            return true;
        }
    }
    public class ChildObject
    {
        public int ParentId { get; set; }
        public string ChildName { get; set; }
 
        public ChildObject(int i, string n)
        {
            this.ParentId = i; this.ChildName = n;
        }
    }
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Nov 2017
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?