Telerik Forums
UI for WinForms Forum
1 answer
18 views

I have a list of people in a datatable that I bind to a RadCheckedDropDown list via a bindingsource. This control is sited on the first page of a tab control. It's a list that provides the app user with a definable selection of staff members for a report.
On initialization of the form, only one item is selected, but as a test I check all items in the dropdown then move to the 2nd page of the tab control. If I then return to the first tab, the checkeddropdown list has returned to displaying only the initial single checked item .

I placed a breakpoint in my code and the dataset hasn't changed, ie the "Include" field still remains set to false for all rows except that initial row. ie checking items in the list aren't being reflected in the dataset. See untitled2.png

Have I failed to do something ?


      // 
      // CmbStaffFilter
      // 
      this.CmbStaffFilter.CheckedMember = "Include";
      this.CmbStaffFilter.DataSource = this.bsStaffFilter;
      this.CmbStaffFilter.DisplayMember = "Fullname";
      this.CmbStaffFilter.ItemHeight = 32;
      this.CmbStaffFilter.Location = new System.Drawing.Point(29, 35);
      this.CmbStaffFilter.Name = "CmbStaffFilter";
      this.CmbStaffFilter.ShowCheckAllItems = true;
      this.CmbStaffFilter.Size = new System.Drawing.Size(444, 20);
      this.CmbStaffFilter.TabIndex = 121;
      this.CmbStaffFilter.ValueMember = "RecId";

      // 
      // bsStaffFilter
      // 
      this.bsStaffFilter.DataSource = typeof(pulse.move.datasources.dsFilterStaff.dtFilterStaffDataTable);

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Mar 2024
1 answer
43 views

When I click on a RadCheckedDropDownList, type something, and then click on another RadCheckedDropDownList control, it types into the first control I typed into (not the one I clicked on). I already have Focus() in all the click events and it's not working.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2023
1 answer
57 views
In the 'RadCheckedDropDownList' control, when the AutoCompleteMode is set as SuggestAppend, it opens a dropdown with suggestions based on what was typed. Is there a way for me to make this suggestion dropdown not open and have the text appear in the normal dropdown instead? I don't find it very appealing to open two dropdowns when I could just use one. I didn't find any option to remove this suggestion dropdown.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2023
1 answer
81 views

Are there coding samples somewhere to give me an idea of how to write selections made in a RadCheckedDropDownList, which is inside a RadGridView, back to a database?

Thank you.

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 15 Jun 2023
1 answer
50 views

I'm using Winforms and need a raddatagrid to show a person's name and what accounts they can view.

Name is from one datasource and Accounts will be from another.  The Accounts will be in the RadCheckedDropDownList.

Following this example, I was able to add just the Accounts to the grid.  I cannot figure out how to add the Name column.

Any help would be appreciated.

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jun 2023
3 answers
120 views

I have a WinForm with multiple controls that are bound to an management object. Once of the controls is a RadCheckedDropDownList that is bound to a single object property containing a bitwise value, something like this:

2, 'None'
4, 'Mornings'
8, 'Afternoon'
16, 'Evenings'
32, 'Anytime'

Using bitwise values I plan to store, say, 24 in the field if the user chooses Afternoons and Evenings. What I cannot figure out is how to bind this to the object property. if there a direct way to do this or will it need to be handled in the UI. Can I bind it as directly as I can, say, a string or in value that goes to a single property? Do you have sample code for such an approach?

Thanks

Carl

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 09 May 2023
1 answer
69 views

Is there a Winforms example of a RadCheckedDropDownList as an Editor for a PropertyGrid?

There is a sample for WPF, https://docs.telerik.com/devtools/wpf/controls/radpropertygrid/features/radenumeditor

There is sample for Winforms Gridview, https://docs.telerik.com/devtools/winforms/controls/dropdown-listcontrol-and-checkeddropdownlist/checkeddropdownlist/how-to/use-as-radgridview-editor

but nothing for Winforms PropertyGrid.

How would I get the following to appear as a checked drop down editor inside a property grid in winforms?


using CommunityToolkit.Mvvm.ComponentModel;

namespace ProjectXYZ.Model.Enums;

public enum BroadcastPlanEnum
{
    Plan1, Plan2, Plan3, Plan4, Plan5, Plan6
}

public sealed partial class BroadcastPlanActive : ObservableObject
{
    [ObservableProperty]
    private BroadcastPlanEnum broadcastPlan;

    [ObservableProperty]
    private bool selected;
}

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Oct 2022
1 answer
59 views
The Enter event of the RadCheckedDropDownList is not firing. I have MessageBox.Show("Hello"); in the body of the event and not shows up.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Apr 2022
1 answer
137 views

I have a list of items for a checkeddropdownlist, I don't want the user to be able to type in the dropdown.  I'd like for them to ONLY be able to uncheck/check items I've predefined.  

Essentially, I want what you do with the dropDownStyle property set to DropDownList for normal dropdownlist controls.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jan 2022
1 answer
92 views

I want to implement my own version of load on demand feature for RadCheckedDropDownList (if there's already one that meets my requirements then sorry for posting).

When the RadCheckedDropDownList's  OnKeyUp event happens for alphanumeric char I want to send async request to my ASP.NET Web Service - when webservice's request is completed I want to either (both options are viable for me):

a) add new items (that are not already existing) to the DataSource,

b) save somewhere items that are already checked and load items to the DataSource,

and show Popup scrolled to the item that is matching the text that already user inserted into RadCheckedDropDownList's RadCheckedDropDownListEditableAreaElement.

My code so far:


private void LoadOnDemandCompleted( object sender, GetDropDownMenuItemsPagedCompletedEventArgs e )
{
	//RadCheckedDropDownListOnDemand - my class that inherits RadCheckedDropDownList
	if ( e.Error != null || e.Result == null || (int)e.UserState != this.RadCheckedDropDownListOnDemand.RequestId )
	{
		//WS call errored out, nothing was returned, or the request number is not matching
		return;
	}

	if ( !( this.RadCheckedDropDownListOnDemand.DataSource is List<RadCheckedListDataItem> mainDataSource ) )
		return;

	//Properties explanation:
	//Value == string to display
	//Id == id in database
	//ChoiceOrder - order in which the RadCheckedListDataItem should appear -> lower ChoiceOrder means it is higher on the list

	var itemsFiltered = e.Result.Select( re => new RadCheckedListDataItem( re.Value )
	{
		Value = re.Id,
		Tag = re.ChoiceOrder,
	} )
	.Where( item => !mainDataSource.Any( mainDataSourceItem => (int)item.Value == (int)mainDataSourceItem.Value ) )
	.ToList();

	//don not want to add items that are already existing in 
	if ( itemsFiltered.Count > 0 )
	{					
		mainDataSource.AddRange( itemsFiltered );

		//want to refresh item list for CheckedDropDownListElement
		if ( !( this.RadCheckedDropDownListOnDemand.CheckedDropDownListElement.DataSource is List<RadCheckedListDataItem> listElementDataSource ) )
			return;

		listElementDataSource.AddRange( itemsFiltered );

		//this does not show the newly added items
		this.RadCheckedDropDownListOnDemand.CheckedDropDownListElement.ShowPopup();				
	}
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Oct 2021
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
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
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
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
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
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
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?