Telerik Forums
UI for WinForms Forum
1 answer
225 views

hello i want example code to select camera with combobox 

i use RadWebCam winforms 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jun 2022
0 answers
135 views
When no data is entered into combobox, Width of the combobox is covering all the remaining Options (overlapping)
Naresh
Top achievements
Rank 1
Iron
 asked on 29 Mar 2022
1 answer
145 views

hi

my code is


void BindGridDeviceName() { string select = "SELECT * from Device;"; using (IDbConnection connection = new SqlConnection(DataLayer.ConnectionClass.ConnectionDaynamic.GetConnectionString)) { var list = connection.ExecuteReader(select); DataTable dt = new DataTable(); dt.Load(list); ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DataSource = dt; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DisplayMember= "DeviceName"; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).ValueMember = "Id"; } }

 

 

------------------------------------

I want when my form is loaded
  The first item or ID from the combo box for each row is in select(show)

I do not want to be displayed by clicking on cells

like combobox.SelectedIndex

2-how to get value cValueMember = "Id" to insert database

thank


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
1 answer
72 views

Hello All,

I  have converted my Winforms C# Application to Telerik using the Telerik conversion extension tool in VS 2017 . It is converted but I see the events are not associated with the control even though the code exists in the code behind file.

Is this a known issue?  Any suggestion or help is really appreciated.

Example: A Raddropdown list selected index change event is not tied to the Raddropdown. I see the event in the code behind.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Aug 2021
4 answers
385 views
use ComboBoxStyle.DropDown
After select one item on combobox, then input through keyboard,  the cursor auto move the the begin of text. how to move the cursor to the end of the text? thanks
Nin
Top achievements
Rank 1
 answered on 13 Dec 2017
7 answers
796 views
Hello,

I'm looking to programmatically change the alignment of the dropdown box for my RadComboBox. I'd like the vertical scrollbar to align with the dropdown arrow, and the text to expand further left. Essentially have a top-right alignment instead of a top-left one.

Thanks!
Jeremy
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jun 2017
4 answers
420 views
And probably with RadListBox also.

The problem is as follows: I have a RadComboBox, with DataSource, DisplayMember and ValueMember defined. It get's populated just fine:
cmbNewTipoUtente.ValueMember = "ID_TipoUtente";  
cmbNewTipoUtente.DisplayMember = "Designacao";  
cmbNewTipoUtente.DataSource = dt; //<- DataTable 

The same RadComboBox has a DataBinding on SelectedValue to a property on a POCO object. Something like this:
cmbNewTipoUtente.DataBindings.Add("SelectedValue", mNewTipoUtente, "ID_TipoUtente"true, DataSourceUpdateMode.OnPropertyChanged, null); 

Also have the SelectedIndexChanged event subscribed where I check for some conditions. In the event, I'm checking the value on the ID_TipoUtente property so I can pass it to a method on my business layer. This is where the problem lays (and I think it is a bug), whenever I selecte an item on the RadComboBox, the value of my property do not get updated.

I tryed to open a Bug Report, but it seems there's also a bug on My Account section of the site, since there is only one product available to me, where should be almost all of them. lol

This is a big issue since many of my features are broken because of this and can cause me some pain with my clients.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
3 answers
28 views
how can i bind 2fields of sql in combobox with id?
i want "name" and "family"  bind in comobox and id as value member
can i do this?
George
Telerik team
 answered on 20 Oct 2014
6 answers
355 views
Hi, at last I am delving into the Winforms controls for the first time, but I am coming up against some strange behaviour when manually binding a RadComboBox to a datasource.

Here is the code called from form_load:

protected void PopulateDropDown()  
{  
DataTable topics = osa.GetAllTopicsForExistingAssessmentsDT();  
radComboBox1.DataSource = topics;  
radComboBox1.DisplayMember = topics.Columns["topictext"].ColumnName;  
radComboBox1.ValueMember = topics.Columns["topicID"].ColumnName;  

The datasource is simply a DataTable returned from a webservice.

The issue I have is the when DisplayMember is set, the radComboBox1_SelectedIndexChanged event fires twice and then once again when ValueMember is set. Why is this?

Regards,
Jonathan

Regards,
Jonathan
Dimitar
Telerik team
 answered on 09 Jun 2014
17 answers
2.7K+ views
How to restrict user from entering text which is not in a display member of combobox items.

scenario:

i have set the following properties:

AutoCompleteMode = SuggestAppend
DropdownStyle = DropDown

now combobox is editable, when i enter text it's suggesting few items which starts with the text which i have entered.
but i don't want to let my user to enter text other than the text that control suggests.

how can i restrict? Is there any direct property or have to write any code?

Thanks,
Rajesh
George
Telerik team
 answered on 04 Apr 2014
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
Buttons, RadioButton, CheckBox, etc
DropDownList
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
RichTextEditor
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Barcode
Styling
ColorBox
PictureBox
Callout
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?