Telerik Forums
UI for WinForms Forum
7 answers
341 views

I create a BarSeries where the category is the sequence of integers 1, 2, 3, ...

then I change

MajorTickInterval = 10;

tick labels are drawn as 12 22 32 ...

Why not 10, 20, 30 ...?

Dimitar
Telerik team
 answered on 23 May 2018
5 answers
119 views

If I handle a RadTreeNode in this way:

public partial class RadForm2 : Telerik.WinControls.UI.RadForm
    {
        private RadTreeNode m_myNode1;
        private RadTreeNode m_myNode2;
        public RadForm2()
        {
            InitializeComponent();
 
            m_myNode1 = new RadTreeNode();
            m_myNode2 = new RadTreeNode();
 
            m_myNode1.Nodes.Add(m_myNode2);
 
            radTreeView1.Nodes.Add(m_myNode1);
        }
 
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
 
            var treeview1 = m_myNode1.TreeView;
            if (treeview1 == null)
                throw new InvalidOperationException();
 
            //var x = m_myNode2.TreeViewElement; this solves the problem, by calling FindTreeView internally
            var treeview2 = m_myNode2.TreeView;
            if (treeview2 == null)
                throw new InvalidOperationException();
        }
    }

 

The second Exception is thrown.

The workaround is in the comment, if you call m_myNode2.TreeViewElement or m_myNode2.Nodes before, everything works fine,

anything that causes internally a call to "TreeViewElement" or "FindTreeView" (i digged a bit in the source code).

So this happens only on Nodes, without Childnodes and not for Rootnodes.

It's more a Bug-Report than a Question, but don't know where to Post ist.

If  the TreeView Property is the first Property called, on a RadTreeNode, it always has the value null.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2018
5 answers
182 views

I create chart as follows:

            var barModel = new BarSeries
            {
                ValueMember = "Model",
                CategoryMember = "N"
            };
            radChartViewGss.Series.Add(_barModel);
            var barWellModel = new BarSeries
            {
                ValueMember = "WellModel",
                CategoryMember = "N"
            };
            radChartViewGss.Series.Add(barWellModel);

...creating and filling a table (DataTable gssTable)

            radChartViewGss.DataSource = gssTable;

... and show table
            radGridViewGss.DataSource = gssTable;

 

Everything works great.

Then I want to change the data:
           radChartViewGss.DataSource = null;

           radGridViewGss.DataSource = null;

            gssTable.BeginLoadData();
            gssTable.Rows.Clear();

... filling a table (gssTable)

            gssTable.EndLoadData();
            gssTable.AcceptChanges();

During the data modification process, the radGridView is not updated, but radChartView constantly tries to update itself. As a result, everything works very slowly.

Why two similar component behave differently when data source disconnected?

I know how programmatically I can disable this behavior of the chart. But this should be done automatically!!! If there is no data source, the chart is not drawn



 

 


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2018
1 answer
487 views

Hello,

Will I be able to sell my app developed using my Telerik DevCraft Ultimate License

(Complimentary Developer License - Student Edition)?

*Commercial Use

Imer
Telerik team
 answered on 22 May 2018
2 answers
171 views

Hello,

 

I'm developing a new app using telerik radwizard, using the example found at

https://docs.telerik.com/devtools/wpf/controls/radwizard/features/pages

However, when i try to run my application, i get an empty window:

 

I don't know what I'm doing wrong, can someone help me?

 

Source code bellow:

 

<Window x:Class="MainWindow.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:wizard="clr-namespace:Telerik.Windows.Controls.Wizard assembly=Telerik.Windows.Controls.Navigation"
                Title="MainWindow"
                WindowState="Normal"
                WindowStartupLocation="CenterScreen"
                WindowStyle="None"
                Background="#dee3e9">
    <telerik:RadWizard x:Name="radWizard" >
        <telerik:RadWizard.WizardPages>
            <telerik:WizardPage Content="My Wizard Page Content" SideHeaderWidth="100" HeaderHeight="100">
                <telerik:WizardPage.HeaderTemplate>
                    <DataTemplate>
                       <Image Source="Images/BrandMark_Telerik_Black.png" Width="200" Height="100" />
                    </DataTemplate>
                </telerik:WizardPage.HeaderTemplate>
                <telerik:WizardPage.SideHeaderTemplate>
                    <DataTemplate>
                        <TextBlock Text="My Side Header" />
                    </DataTemplate>
                </telerik:WizardPage.SideHeaderTemplate>
                <telerik:WizardPage.FooterTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <telerik:RadButton Content="Back"
                                               Width="70" Height="25"
                                               Command="wizard:RadWizardCommands.MoveCurrentToPrevious" 
                                               CommandParameter="{Binding}" />
                            <telerik:RadButton Content="Next" Width="70" Height="25"
                                               Command="wizard:RadWizardCommands.MoveCurrentToNext"
                                               CommandParameter="{Binding}" />
                        </StackPanel>
                    </DataTemplate>
                </telerik:WizardPage.FooterTemplate>
            </telerik:WizardPage>
        </telerik:RadWizard.WizardPages>
    </telerik:RadWizard>
</Window>

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2018
4 answers
135 views

Hello

I`ve the following class properties. But they are not orderd using Display-Order. Is it possible to order properties by another way?

[Display(Name = "Field2", Order = 2)]
public string Field2
{
    get; set;
}
 
[Display(Name = "Field3", Order = 3)]
public string Field3
{
    get; set;
}
 
[Display(Name = "Field1", Order = 1)]
public int Field1
{
    get; set;
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2018
13 answers
1.8K+ views

Hi,

I am looking for a sample code to set the background and fore color of a checkedlistbox control. I want to set  fore color as green and background as red if the item is checked . The font style also needs to be changed to bold if the item is checked. Whenever any user the checked any row it has to be highlighted and formatted to according to my need. The same checkedlistbox can have more than one checked rows so all these rows can be in the desired format. I am programatically binding the sql datasource.

Thanks in advance

Sarin

Dimitar
Telerik team
 answered on 22 May 2018
6 answers
241 views

I need to show tooltips on the elements of a RadForm TitleBar, like in the attached image.

things I've tried that didn't work:

  • setting the ToolTipText
this.FormElement.TitleBar.SystemButtons.Children[0].ToolTipText = "this is a tooltip";

  • using the ToolTipTextNeeded  form event
class TestTooltipForm : RadForm
{
    public TestTooltipForm()
    {
        InitializeComponent();
 
        this.ToolTipTextNeeded += (sender, args) =>
        {
            args.ToolTipText = "a tooltip";
        };
    }
}

The only thing that seems to be working is instantiating a RadToolTip and showing it inside del ToolTipTextNeeded (ignoring the args parameter)

The problem with this method is that the tooltip stays visible forever, so I need to hide it on some event like 'form_mouseHover' which is kind of convoluted.

Is there a better way?


 

Stefano
Top achievements
Rank 1
 answered on 21 May 2018
1 answer
144 views

Hello,

I am using a RadButton with a touch theme and when I tap it on a touchscreen, the visual appearance of the button (to show a click occured) doesn't show.  It shows if I use a mouse and click the button.  When using a touchscreen the button remains flat with no visual that I tap on it.

I use Telerik WinForms 2013 Q3 1328

Is there a solution for that?

Thanks,

Hristo
Telerik team
 answered on 21 May 2018
1 answer
201 views

Hello

I want to draw a chart (Cartesian, line series) with mouse click but i don't know how can I get location of mouse click in chart axes,

Also how to allow for add new point only in horizontal and vertical stripes lines intersect

Thanks

Dimitar
Telerik team
 answered on 21 May 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
CheckedDropDownList
ProgressBar
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
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?