Telerik Forums
UI for WinForms Forum
1 answer
103 views

Hi all

I'm working with Visual Studio 2017, .NET 4.6.1, Telerik UI for WinForms 2018.2.621

This is the code:

 

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace TelerikTest
{
    public partial class Form1 : Form
    {
        private List<string> list = new List<string>() { "one", "two", "three" };
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            radCheckedDropDownList1.Items.Clear();

            foreach (string item in list)
            {
                radCheckedDropDownList1.Items.Add(new RadCheckedListDataItem(item, false));
            }
        }
    }
}

If I fill the radCheckedDropDownList after having selected an item by click (SelectByClick.png) all is fine.

If I fill the radCheckedDropDownList after having selected an item using autocomplete (SelectByAutoComplete.png), I get a NullReferenceException (NullReferenceException.png).

 

Could someone please tell me, what I'm doing wrong?

 

Thanks in advance

Daniel

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2018
2 answers
67 views

Hi

 

I'm building a chart but I wont to specify the vertical and horizontal axis minimum and maximum value.

also I want the vertical axis ti be inverse and to cross with the horizontal axis at the bottom (vertical axis maximum value)... but the code I wrote is not doing anything of what I want. this is what I code:

            radChartKatzA.Series.Clear();
            LinearAxis katzA_hor_Axis = radChartKatzA.Axes.Get<LinearAxis>(0);
            LinearAxis katzA_ver_Axis = radChartKatzA.Axes.Get<LinearAxis>(1);
            katzA_hor_Axis.Minimum = 0;
            katzA_hor_Axis.Maximum = 800;
            katzA_hor_Axis.MajorStep = 100;
            katzA_ver_Axis.Minimum = 0;
            katzA_ver_Axis.Maximum = 1400;
            katzA_ver_Axis.MajorStep = 50;

            katzA_hor_Axis.IsInverse = true;

            katzA_hor_Axis.LineWidth = 6;
            katzA_hor_Axis.TickWidth = 8;

            ScatterLineSeries katzLinea1A = new ScatterLineSeries();

            katzLinea1A.DataPoints.Add(0, 700);
            katzLinea1A.DataPoints.Add(350, 700);

           radChartKatzB.Series.Add(katzLinea1A);

 

thank you for your help

Carlos

Hristo
Telerik team
 answered on 12 Sep 2018
2 answers
109 views

Might have missed this somewhere, but is there a way the user can same count the rows  or say summarize this column?

Kind of like they do for the filters but for counting and totals of a column?

 

Thanks

Deasun

Deasun
Top achievements
Rank 1
Iron
 answered on 11 Sep 2018
4 answers
301 views

Hello Telerik Team,

 I'm using RadDateTimePicker with TelerikMetroBlueTheme. And I showed timePickerElement.

In dropDown of dateTimePicker, I found that theme of timePicker showing default theme.

How to change theme of timePicker ?

 

 

     

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Sep 2018
1 answer
393 views

Suppose I add from code some text to a shown document, like this:

try
{
    radRichTextEditor1.Document.History.IsEnabled = false;
 
    var editor = new RadDocumentEditor(radRichTextEditor1.Document);
 
    editor.Document.CaretPosition.MoveToLastPositionInDocument();
    editor.InsertParagraph();
    editor.Insert("XYZ");
 
    editor.Document.CaretPosition.MoveToFirstPositionInDocument();
 
    editor.Insert("ABC");
    editor.InsertParagraph();
}
finally
{
    radRichTextEditor1.Document.History.IsEnabled = true;
}

 

This code will destroy document's CaretPosition, Selection, and also user's view to the document (vertical scroll bar location). Is there a way to restore them to previous values?

 

Boby
Telerik team
 answered on 10 Sep 2018
4 answers
207 views

We recently upgraded from VS 2010 to VS 2017 - no troubles there.

We also recently upgraded to the most recent version of the UI for Winforms libraries from Telerik.

When I create a Telerik Winform project - no problem but when I right-click on the Project under the Solution Explorer in the VS 2017 IDE I was expecting to see the newly added "Telerik UI for Winforms" menu item but it's not there...??

 

Was this removed?  Can it be restored? 

-C

Attached is a screen snippet from VS2010 and the new context menu from VS2017

 

Vesko
Telerik team
 answered on 10 Sep 2018
1 answer
442 views

Hello Telerik Team !

On a first hand, I have a form with postcode and city fields.

On a other hand, I have a database, with a table who carry an entire country of codepost/city accordingly.

I turn the postcode into a MultiColumn ComboBox, and the idea is when someone start filling at least 3 char of a post code, programmatically launch a request to the database to fill as both  post code and city like : 

SELECT postcode as [Post Code], city as [City] FROM cityautocomplete where postcode like '" + key + "%'

 

the among query fill a DataTable "postcodeToCity" and I programmatically add the data like this :

ComboPostCode.DataSource = new BindingSource(postcodeToCity, null);
ComboPostCode.DisplayMember = "Post Code";
ComboPostCode.ValueMember = "City";
ComboPostCode.AutoCompleteMode = AutoCompleteMode.Suggest;

 

My problem belongs in the right event to choose to launch the request, TextChanging do not exist, so I have been trying KeyDown, KeyPress & KeyUp without any success, indeed all char entered beyond the first char reset to the beginning. Even if I try to launch the request beyond a minimum length.

The postcode Multi Combo is in Suggest mode only.

So I am wandering if an Events could allow me to achieve this or if I simply try to achieve something impossible with this Control ?

Many thanks in advance if you have any idea or feedback for me !

 

Jeff

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Sep 2018
4 answers
222 views

Hello, 

RadDropdownlist element with same character length(55), element alignment is not uniform.

 

Thanks

Kunal

 

 

 

Dimitar
Telerik team
 answered on 10 Sep 2018
3 answers
172 views

In design time I have added one of these to my form.

And added items to it thru the UI.

Now I want to capture when the user clicks on one of them items.

How to I do that? Not seeing an event for it. Only for the button click which fires off even when you don't click on one of the items.

Sorry tis late and the office is hot, I am just not seeing it.

Thanks in advance.

Deasun.

 

Dimitar
Telerik team
 answered on 10 Sep 2018
10 answers
950 views
Just wondering, is it possible to implement some autocomplete functionality on gridviewtextboxcolumn.
This will be great advantage.

Regars,
Martin
Leandro
Top achievements
Rank 1
 answered on 08 Sep 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?