Telerik Forums
UI for WPF Forum
1 answer
197 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
0 answers
289 views
We are using Rad Grid View to show timely data for test runs. but sometimes rad grid view is showing space between column headers and first row of data which is making view look different for end users
Vineela
Top achievements
Rank 1
 asked on 20 Apr 2023
8 answers
1.1K+ views
Hi,

I am trying to save and serialize settings for my RadGridView, without much luck. I want to preserve sorting, grouping, filtering, and row selection. I have tried versions 2011.2.712.35 (what we used previously) and 2012.2.725.35 (the latest), and haven't had much luck generally. 

What's the best way to do this? Can you supply an example?
Patrick
Top achievements
Rank 1
Iron
 updated answer on 19 Apr 2023
1 answer
116 views
I am attempting to get a reference to the RadCarouselPanel in my RadCarousel.  I need to know when it is animating.  But unless I wait for some sort of manual event (like a keyboard press)  the panel is null.

First I tried adding a handler for the Carousel's Loaded event 


<tk:RadCarousel x:Name="OtherScanGallery"

    ItemsSource="{Binding OtherScansView}"
    VerticalContentAlignment="Top"
    IsSynchronizedWithCurrentItem="True"
    IsVisibleChanged="OtherScanGallery_OnIsVisibleChanged"
    SelectionChanged="OtherScanGallery_OnSelectionChanged"
    Loaded="OtherScanGallery_OnLoaded"
    SelectedItem="{Binding ElementName=Root, Path=DataContext.SelectedOtherScan, Mode=TwoWay}"
    >

private void OtherScanGallery_OnLoaded(object sender, RoutedEventArgs e) {

RadCarouselPanel? panel = null;

if (sender is not RadCarousel car) Log.Debug($"Gallery loaded but no carousel"); elseif (null == (panel = car.FindCarouselPanel())) Log.Debug($"Gallery loaded but no panel"); else Log.Debug($"Gallery fully loaded"); }


Unfortunately the second check fails here.  FindCarouselPanel returns null.    I guess this makes some sense since the carousel is initially not visible when my page is loaded.    So I figured, maybe the carousel waits until it becomes visible to create it's panel

So then I tried to put in a handler for the carousel's IsVisibleChanged event.  I figure the carousel will have to have created the panel by then, right? 

private void OtherScanGallery_OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
{
    var panel = OtherScanGallery.FindCarouselPanel();
    if (null == panel )
        Log.Error("No panel after visible changed.");
}


But no, wrong.  The Panel returned here is still null

However If i then set up an event handler for... say... a keyboard event later on, at that point FindCarouselPanel returns a valid panel.

So what are the rules here?  How do I determine definitively when the Carousel creates its panel?


Note:  I am using The Windows8Touch theme in the binaries with XAML and the StyleManager.  I have not created an sort of ControlTemplate for the carousel or its items.  I am using the theme-provided ones



Martin Ivanov
Telerik team
 answered on 19 Apr 2023
1 answer
143 views

Hi 

Current scenario I am trying to fix is we are wanting to make use of the minimization feature, but disable the double click toggling the minimization. Limiting the minimization toggle to only the Minimize button (or a custom context menu). 

I have tried using the PreviewMouseDoubleClick event which works at a first glance, however it ends up being that a triple click will now minimize. 
Other less successful attempts are disabling minimization and only enable it before the ribbon would be minimized or un minimized. This would mean more control over when the ribbon is minimized but would require more effort in getting all aspects of the minimization working. 

Any assistance would be appreciated. It doesnt feel like too complicated of a problem but struggling with it none the less 

Martin Ivanov
Telerik team
 answered on 18 Apr 2023
1 answer
123 views

Hi,
I would like to use windows11 theme in my application, but when apply the theme every buttons in the toolbars are loaded of large padding and large margin.
Since I don't like this layout I can change it setting properties inside every button, but if I try to setting a style it is ignored.
I think that toolbar apply a style and overwrite my one.

Can I modify the layout without change every button in my application?

Thank you

Luigi

Stenly
Telerik team
 answered on 17 Apr 2023
1 answer
140 views

HI Team,

I wanted to override the theme of RadDocking Control.

I'm using DocumentHost and RadDocumentPane with properties IsDockable="False" CanFloat="False"  CanUserClose="False" CanUserPin="False" but after that in the application Border is coming with thickness "2" .

I used snoop tool where if I set this thickness to 0 then border goes away but when I make changes in RadDockingDocument Style BorderLayer3 control to 0 it doesn't work .

Please help me to remove the border in case we use DocumentHost.

 <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer Margin="0,0,0,0" BorderThickness="0" Padding="0">
                    <telerik:RadPaneGroup BorderThickness="0" >
                        <telerik:RadDocumentPane Style="{StaticResource LayoutRadDocument}" PaneHeaderVisibility="Collapsed"  telerik:RadDocking.SerializationTag="AnotherDocPane" Background="Transparent" Margin="0,0,0,0" BorderThickness="0" Padding="0" Header="DocPane" Visibility="Collapsed" IsDockable="False" CanFloat="False"  ContextMenuTemplate="{x:Null}"  CanUserClose="False" CanUserPin="False">
                            <Grid x:Name="RighHandColumn">

Please look into the SS.

 

Stenly
Telerik team
 answered on 17 Apr 2023
0 answers
73 views
Hello!
I am using Telerik GridView control in WPF application.
I wanted to use the SelectedItems Binding for GridView according article "SelectedItemsBehavior fixes for crashes, changing DataContext" at https://www.telerik.com/forums/selecteditemsbehavior-fixes-for-crashes-changing-datacontext.
I downloaded the example from the link from github, but I had a problem: the downloaded example does not work...
After starting the programm, when trying to select a row, the application throws the error "cannot change ObservableCollection during a CollectionChanged event".
In the comments, one of the users wrote about this error, to which the author replied that he had updated the code on the github and now this error has been fixed. But I still get an error. How do I fix the "MySelectedItemsBindingBehavior" class to make it work?
Vlad
Top achievements
Rank 1
 asked on 14 Apr 2023
1 answer
174 views
Is there a way to use Telerik Document Processing Libraries in a .NET 6 WPF project?
Yoan
Telerik team
 answered on 10 Apr 2023
1 answer
125 views

Hi Team,

We are using RadPdfViewer in .net 6 WPF application. It is failing to load 3D PDF content. We found the very old thread about this feature from around 2013 and it says this feature is not supported. Is there any option to show the 3D content in latest PDF control or any plans to release this functionality in near future ?

 

Thanks in Advance.

Peshito
Telerik team
 answered on 10 Apr 2023
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?