Telerik Forums
UI for WPF Forum
1 answer
171 views



I have a RadComboBox  thats bind to an Enum list like so


<telerik:RadComboBox HorizontalAligment="Streatch"
                                        x:Nmae="RadComboBox"
                                         HorizontalAligmentContent="Left"
                                         Margin ="0 0 10 0"
                                         StayOpenOnEdit="True"
                                         AllowMultipleSelection= "True"
                                         ItemSource="{Binding SignalTypes}"
                                         behaviors:SelectedItemsBinding.SourceList = "{Binding SelectedSignalTypes}"
                                         BorderThickness ="1"
                                         VerticalContentAligment="Center"
                                         CanAutocompleteSelectItems="True"
                                         EmptyTexy =" Select Signal Type"
                                        TextSearchMode="Contains"
                                           >
    <telerik:RadComboBox.MultipleSelectionBoxTemplate>
         <DataTemplate>
             <TextBlock Text="{Binding ElementName=RadComboBox , Path=SelectionBoxItem, Converter={StaticResource EnumValueToDisplayTextConverter}"/>
         </DataTemplate>
     </telerik:RadComboBox.MultipleSelectionBoxTemplate>
</telerik:RadComboBox>

Where SourceList is MultiSelector and EnumValueToDisplayTextConverter is a IValueConverter which convert from Enum to its corresponding DescriptonAttribute
My Problem is that in the converter value I'm a getting a string list, separated by the separator (i.e item1, item2, etc.) 
and im excepting 1 item inside my convertor, therefore my converter failed and I don't see any items at all at SelectionBox
i tried to use ItemsControl inside the template but for some reason i was getting 1 letter(char) of the Enum each time

P.S
I know i can create a new convertor and solve the problem, but i prefer not to

P.S2
I cant change my convertor

Martin Ivanov
Telerik team
 answered on 20 Apr 2023
1 answer
131 views

Our QA Team identified a bug and we were able to replicated on Telerik Control Example Application. we have being trying to fixit but so far we have not found a solution to the problem.

Replication Steps(please see video and gif attached):

  1. Open a RadComboBox
    1. RadComboBox with many items (enough items to trigger the scrollbar or set a max width to trigger it)
    2. RadComboBox using Windows 11 Theme
  2. Place the mouse between two items
  3. Scroll without moving the mouse

Is there any way of fixing this from our end?

Kind regard

Julio

Stenly
Telerik team
 answered on 24 Mar 2023
2 answers
126 views

Hey, I have using your control RadMenuGroupItem with ItemsSource that is Observable Collection of string. I noticed that for name with underscore in them, the underscore is removed from the name. Here an example:

telerik_123 will turn to telerik123

I use the same ItemsSource in a RadComboBox and in there I don't have this issue.

What can I do to solve this?

Sincerely, Omer 

Ralitsa
Telerik team
 answered on 31 Jan 2023
1 answer
339 views
I have the following class

Class My Class
Class MyClass()
{
   public int Var1 {get; set; }
   public int Var2 {get; set; }
}
i want the selected item to show {var1}/{var2}
for now im doing (for now) is
DisplayMemberPath = "Var1"
but because its a String and a Dependency property i cannot attach a MultiBinding
and RadMultiColumnComboBox  does not have itemTemplate property
how can i achieve it

P.S 
I want the same behavior for the tooltip

p.s 2
i also want to center the selected text but it seems HorizontalContentAlignment  is not working


Thanks in advance

Martin Ivanov
Telerik team
 answered on 30 Jan 2023
0 answers
125 views
When Program start, RadComboBox is Collapsed. 'cbType' RadComboBox item select, not visible. Why RadComboBox not visible?
<Control.Template>
	<ControlTemplate TargetType="{x:Type Mods_UiMod_FrameControls:UiFrameContent}">
		<StackPanel x:Name="Part_MainStack" DataContext="{Binding}">
			<telerik:RadComboBox Grid.Row="3"
								 Grid.Column="1"
								 Height="20"
								 Margin="5 0 5 0"
								 DisplayMemberPath="CODE_NAME"
								 FontSize="11"
								 ItemsSource="{Binding Source=
								 {x:Static Public_Code:CommonCodes.FormTypes}}"
								 SelectedIndex="{Binding SelectedIndexForm,
								 UpdateSourceTrigger=PropertyChanged}"
								 SelectedValuePath="CODE_ID"
								 SelectionBoxTemplate="{StaticResource CodeCBTemplate}"  
								 x:Name="cbType"/>
			<Label Grid.Row="4"
				   Grid.Column="0"
				   Content="Create Month"
				   FontSize="11"
				   Foreground="White" Name="lbCreateMonth">
				   <Label.Style>
					   <Style TargetType="Label">
						   <Setter Property="Visibility" Value="Collapsed"/>
						   <Style.Triggers>
								<DataTrigger Binding="{Binding ElementName=cbType, Path=SelectedIndex}" Value="0">
									<Setter Property="Visibility" Value="Visible"/>
								</DataTrigger>
						   </Style.Triggers>
					   </Style>
				   </Label.Style>
			</Label>
			<telerik:RadComboBox Grid.Row="4"
								 Grid.Column="1"
								 Height="20"
								 Margin="5 0 5 0"
								 DisplayMemberPath="CODE_NAME"
								 FontSize="11"
								 ItemsSource="{Binding Source={x:Static Public_Code:CommonCodes.TimeMonthCodes}}"
								 SelectedIndex="{Binding SelectedIndexCreateMonth,
														 UpdateSourceTrigger=PropertyChanged}"
								 SelectedValuePath="CODE_ID"
								 SelectionBoxTemplate="{StaticResource CodeCBTemplate}" Name="cbCreateMonth">
				<telerik:RadComboBox.Style>
					<Style TargetType="{x:Type telerik:RadComboBox}">
						<Setter Property="Visibility" Value="Collapsed"/>
						<Style.Triggers>
							<DataTrigger Binding="{Binding ElementName=cbType, Path=SelectedIndex}" Value="0">
								<Setter Property="Visibility" Value="Visible"/>
							</DataTrigger>
						</Style.Triggers>
					</Style>
				</telerik:RadComboBox.Style>
			</telerik:RadComboBox>
		<StackPanel x:Name="Part_MainStack" DataContext="{Binding}">
	</ControlTemplate>
</Control.Template>

Jae Myoung
Top achievements
Rank 1
 updated question on 22 Dec 2022
1 answer
248 views

Hi

I'm getting error in the VS2022 designer when I click on a RadComboBox.
It shows a busy cursor and then a dialog with the message "XAML designer is busy"

When I cancel the dialog it shows a message that an unhandled exception has occurred with the option to reload the designer.
The only way to make the RadComboBox clickable is to switch on "only display platform controls"
Then it shows a generic looking control in the place of the RadComboBox

This is happening on version 2022.3.1109 but was also happening on 2022.2.621

Is this something you can fix? or is the problem something that you have to wait on Microsoft for

Thanks
Paul Mc

 

Dilyan Traykov
Telerik team
 answered on 16 Nov 2022
1 answer
241 views

I'm trying to make my gridview box column show the dropdown tick without having to click

 


<telerik:GridViewComboBoxColumn Header="Active" DataMemberBinding="{Binding EnableCase}" UniqueName="Active" ItemsSource="{Binding Activeops}" DisplayMemberPath="Describe" SelectedValueMemberPath="ID" />

 

The Dropdown only shows up when i click on the header

 

 

Stenly
Telerik team
 answered on 08 Nov 2022
1 answer
227 views

Is it possible to reduce the Telerik RadComboBox in RadGridView (GridViewComboBoxColumn) Height?

We have an issue in our project, we cannot reduce the RadGridView RowHeight. 

For your reference, in the below screenshot, Column3 is Telerik RadComboBox in RadGridView (GridViewComboBoxColumn).

After adding the Column3 (Telerik RadComboBox in RadGridView (GridViewComboBoxColumn)), RowHeight becomes larger.

> Can you please suggest how to reduce RadComboBox height in RadGridView (GridViewComboBoxColumn)?

Thanks in advance.

 

Barani
Top achievements
Rank 1
Iron
Iron
 updated question on 31 Oct 2022
0 answers
157 views

Hi,

I'm using a customized style for RadCombobox.

The problem is, I found it impossible to reverse the dropdown button(arrow) when it is clicked.

I want the arrow to go up when the combobox expands and go down when the combobox collapses.

 

Can Anyone give me an example code of this?

Jinny
Top achievements
Rank 1
 asked on 27 Oct 2022
2 answers
110 views

We have a RadGridView which contains a combobox, bound to a collection of custom objects. 

At the moment the full text search does not take the combobox items into consideration when searching.

 

How can i tell the fulltextsearch to search in the title of the, in the combobox chosen, object?

Fabian
Top achievements
Rank 1
Iron
 updated answer on 19 Oct 2022
Narrow your results
Selected tags
Tags
+112 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?