Telerik Forums
UI for WinForms Forum
2 answers
148 views

I have a GridView with many rows (let's call it Grid A).  Within each row there is another GridView (Grid B).  This is created when the RowSourceNeeded event is raised. 

When the user changes a value in one of the columns in my GridView (Grid A), I need this to result in removing the GridView (Grid B) that was added during RowSourceNeeded and have the event be raised again.

Dimitar
Telerik team
 answered on 02 Feb 2018
4 answers
294 views

For a float value, the PropertyGridSpinEditor is always used. 

It is not comfortable. For example, the value is always rounded to two decimal places.

How to do that this editor is not used and the SingleConverter (overridden) was used

 

Valery
Top achievements
Rank 1
Veteran
 answered on 02 Feb 2018
2 answers
78 views

Why is the radrotator seem to be poor at updating at it's defined intervals? The same thing also happens in First Look.

I thought that maybe the webbrowser element was slowing things down if it sensed it needed to update and repaint, but Im finding that using a rotator with 2 png files can take many seconds to recover after resizing a window, if it ever recovers (I get bored waiting after a minute or two) as it appears to stall.

Are there any hints to improve performance and prevent stalling please? I can't use the control if I can't rely on it working reliably.

 

Dimitar
Telerik team
 answered on 02 Feb 2018
2 answers
118 views

Hi.

Using VS2017 with Telerik control set version 2018.1.116.40

I'm following the help document Telerik simple example for using the radrotator control and am having design time problems with script errors generated in visual studio every time I attempt to use the radwebbrowser item in the rotator.. I'm setting it to http://www.telerik.com. I've not tried any other URL. I've not had a chance to test suppressing script errors at runtime as I've no clue how to get beyond the design time problem :D

The errors are thrown by VS2017 itself and I can't break out of the constant stream of exception messages. I have to close it using task manager each time. Once VS reloads all sorts of corruptions seem to occur in VS's settings.

My only option is to go into the x.designer.cs file and delete references and code for the webbrowser item.

If its easily solveable then it might be useful to document this in the example so that users can fix it before it happens.

Can you help please?

Hristo
Telerik team
 answered on 02 Feb 2018
4 answers
269 views
ERD
I'm trying to use the RadDiagram to create an ERD that shows a root entity and all of its first level relationships. The goal is to have the related entities placed in a circle around the root entity. This is easily enough accomplished with the RadialTree layout. The second requirement is that the layout use orthogonal lines. Is there a way to achieve both of these goals in conjunction?
Hristo
Telerik team
 answered on 02 Feb 2018
3 answers
225 views

I've tried to put this question in the forum but the page keeps disappearing after I click "submit", so here I am...

I have a 3 column GridView and the GridViewComboBoxColumn is not binding correctly.  I've set the following for the grid.

  1. DisplayMember = Color
  2. ValueMember = Id 
  3. DataType =  System.ComponentModel.BindingList`1[TelerikGridViewTests.Models.ColorViewModel]

When I run the application I see "System.ComponentModel.BindingList`1[TelerikGridViewTests.Models.ColorViewModel]" instead of the object within my model.  For my other 2 columns in the grid (a decimal and a string) those are displayed just fine. 

 

Here is my model code... 

using System.ComponentModel;

namespace TelerikGridViewTests.Models
{
    public class CarsViewModel : ViewModelBase
    {
        public CarsViewModel()
        {
            _cars = new BindingList<CarViewModel>();

            _cars.Add(new CarViewModel()
            {
                Id = 0m,
                Description = "Ford",
                Colors = new ColorsViewModel().Colors,
            });

            _cars.Add(new CarViewModel()
            {
                Id = 1m,
                Description = "Chevy",
                Colors = new ColorsViewModel().Colors,
            });

            _cars.Add(new CarViewModel()
            {
                Id = 2m,
                Description = "Dodge",
                Colors = new ColorsViewModel().Colors,
            });
        }

        BindingList<CarViewModel> _cars;
        public BindingList<CarViewModel> Cars { get { return _cars; } set { _cars = value; } }
    }

    public class CarViewModel : ViewModelBase
    {
        public decimal Id { get; set; }
        public string Description { get; set; }

        BindingList<ColorViewModel> _colors;
        public BindingList<ColorViewModel> Colors
        {
            get { return _colors; }
            set { _colors = value; }
        }
    }

    public class ColorsViewModel : ViewModelBase
    {
        public ColorsViewModel()
        {
            Colors = new BindingList<ColorViewModel>();

            Colors.Add(new ColorViewModel()
            {
                Id = 1,
                Color = "Blue",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 2,
                Color = "Red",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 3,
                Color = "Green",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 4,
                Color = "Yellow",
            });
        }

        public BindingList<ColorViewModel> Colors { get; set; }
    }

    public class ColorViewModel : ViewModelBase
    {
        public int Id { get; set; }
        public string Color { get; set; }
    }
}

 

and code which binds the model..

using System.ComponentModel;
using System.Windows.Forms;
using TelerikGridViewTests.Models;

namespace TelerikGridViewTests
{
    public partial class Form1 : Form
    {        
        public Form1()
        {
            InitializeComponent();

            BindingList<CarViewModel> _cars = new CarsViewModel().Cars;
            radGridView1.DataSource = _cars;
        }
    }
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Feb 2018
2 answers
141 views

Hello,
Is there a way to load a pdf file; located in Project's Resources, into pdfviewer?

Thanks a lot,

William

wiquezada
Top achievements
Rank 1
 answered on 01 Feb 2018
5 answers
869 views
I want to have a check box column, that if there is test/value in column1, I want to check box to be checked.  If there isn't any value, I don't want it to be checked. What's easiest way to implement this?
Dimitar
Telerik team
 answered on 01 Feb 2018
2 answers
107 views

Hi,

since some days, I got the title's related null reference exception when I click on item on RadListView control in DetailView mode. 

Have you any idea? If i use the same control with the same data inside it but set mode to ListView al works without any problem (but I can't do this, due to a complex series of routine formatting details view elements according to the type and the structure of the data inside of it). The exception was thrown inside Telerik.WinControl.UI, on the event indicated. I cannot intercept any event before the crash, so the application quit unexpectedly.

 

Routing causing the exception is:

 

private void lvRecords_CurrentItemChanged(object sender, ListViewItemEventArgs e)
        {
            if (e.Item != null)            
                CaricaDettaglio(e.Item.DataBoundItem as BaseEntity<int>);
            else
            {
                spDetails.Collapsed = true;
                spGestioneCustom.Collapsed = true;
            }
        }

where, by the call CaricaDettaglio, I made some changes on the form, loading some data into other controls based on the e.Item.DataboundItem, an entity of my application. I've also noticed that if I double click on form bar to resize it, if the mouse passes through the control during the form resize, the same event was fired, with the same result, without any further click on it, and this is really unattended.

 

DLL version is 2016.2.608.40 but I don't want updgrade project to latest Telerik Library if not necessary.

 

Have you any idea or suggestion?

 

Thanks in advance.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2018
9 answers
568 views

I can change split panel collapse direction to left or right like this. But can I have both splitter buttons (left and right direction) on RadSplitContainer with only 2 SplitPanels?

I noticed that if the RadSplitContainer had more than 3 panels, the splitter button showed 2 buttons (left and right direction)

 

Hristo
Telerik team
 answered on 31 Jan 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?