Telerik Forums
UI for WinForms Forum
1 answer
759 views

I want to add result of sql query to dropdownlist items

 

 have tried this :

 

RadListDataItem dataItem = new RadListDataItem();
                            dataItem.Text = (read1["size"].ToString());
                            this.radDropDownList2.Items.Add(dataItem);

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Mar 2018
1 answer
75 views

A simple example:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            radPropertyGrid1.SelectedObject = new MyClass();
        }

        [TypeConverter(typeof(ExpandableObjectConverter))]
        public class First
        {
            [DisplayName("Name"), Category("first")]
            public string Name { get; set; }

            [DisplayName("Color"), Category("first")]
            public Color MyColor { get; set; }

            public First()
            {
                Name = "Foo";
                MyColor = Color.Aqua;
            }
            public override string ToString()
            {
                return string.Empty;
            }
        }
        [TypeConverter(typeof(ExpandableObjectConverter))]
        public class Second
        {
            [DisplayName("SubName"), Category("Second")]
            public string SubName { get; set; }

            [DisplayName("SubColor"), Category("Second")]
            public Color MySubColor { get; set; }

            public Second()
            {
                SubName = "Any";
                MySubColor = Color.Red;
            }
            public override string ToString()
            {
                return string.Empty;
            }
        }

        public class MyClass
        {
            [DisplayName("First"), Category("Item0")]
            public First Item0 { get; set; }
            [DisplayName("Second"), Category("Item1")]
            public Second Item1 { get; set; }

            public MyClass()
            {
                Item0 = new First();
                Item1 = new Second();
            }
        }
    }

If I do a search, the RadPropertyGrid finds the name only in the second part of MyClass

 

Dimitar
Telerik team
 answered on 15 Mar 2018
2 answers
180 views

I'm trying to make a custom list as the one in the image below using radListView, so far I was already able to create the custom item as i want it to be by creating a custom item that inherits from IconListViewVisualItem  but I'm having trouble to access my custom item's properties, so I can hide and show controls as needed as well as the content on them. 

Thanks in advance. 

Fernando
Top achievements
Rank 1
 answered on 14 Mar 2018
2 answers
380 views

I'm trying to implement a grid showing fairly long processing jobs.  Each job is represented by a row with columns showing info about the job.  I'm trying to represent job progress visually somehow.  Dedicating a column for a progress bar in each row would use too much space.

Is it possible to have a progress bar that would display under each row, showing progress for that row?

Or alternatively, a progress bar that would show behind the row?

 

Richard
Top achievements
Rank 1
 answered on 14 Mar 2018
1 answer
76 views

Hi;

I found an error assigning the ContentImage. It's always null.

I have created two projects so you can see the case.

The proyect AlertOld contains the version 2018.1.116 and the proyect AlertNew contains the version 2018.1.220.

In the Proyect AlertOld works perfectly and in the other not work.

https://www.dropbox.com/s/qrre9bsdaz2z4iq/Alert.rar

Regards

Dimitar
Telerik team
 answered on 14 Mar 2018
3 answers
208 views
I want to limit the numbers of tokens the user can add to the box to 1 token item only after that he can't enter any more letters
Dimitar
Telerik team
 answered on 14 Mar 2018
0 answers
140 views
I have the data stored in the Bindingsource as I tie it to RadListViev?
Вадим
Top achievements
Rank 1
Iron
Iron
 asked on 13 Mar 2018
2 answers
149 views

Hello Developers.
I have a problem with the RadScheluder control, I tell you I had previously used a 2014 version or not remember, in that version there was the following event 

Telerik. WinControls. UI. SchedulerContextMenuShowingEventArgs

but in the new version when compiling it sends me the following error message telling me that the type "Telerik. WinControls. UI.SchedulerContextMenuShowingEventArgs" is not defined.
The second mistake is when I want to do the following

 

Dim dayView As SchedulerWeekView = Me. RadScheduler1. GetWeekView
dayView. RangeFactor = dtParams (0) Item (4). ToString ()
dayView. RulerTimeFormat = RulerTimeFormat. hours24

in this one makes an error because it doesn't recognize the RulerTimeFormat property someone knows how to fix it, I'm updating my application.

Greetings
 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 2018
1 answer
176 views

I tried searching,  bad search-fu,  no helpful tips.

In the radribbonbar control,   is it possible to add a background image with a logo? 
If you have three / four buttons,   then all the space to the right is empty,   which would be great to show of an logo. 

I tried

 

RadRibbonBar   = radMain.BackgroundImage ,   but that didn't work.

Or do I need to turn off Aero?  or?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 2018
6 answers
1.8K+ views
hi telerik, 
thanks for your help in advance.

the groupbox is bigger and bigger when i set autosize =true.

steps.
 1. drag a radgroupbox into form
 2. drag 3 radpanels into radgroupbox
 3. set the 3 radpanels' dock = dockstyle.top
 4. set radgroupbox. autosize = true
 5. drag a radbutton into form and out of radgroupbox
 6. add click eventhandler to radbotton with below code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    RadPanel2.Visible = Not RadPanel2.Visible
End Sub
 7.  run app,  click the button continuously,  you can find the width of groupbox is bigger and bigger.

what is wrong and how to avoid ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 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
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?