Telerik Forums
UI for WPF Forum
6 answers
1.9K+ views

Hi 

I am binding RadCombobox ItemSource with  IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> type enum Values and SelectedItem with one of the viewModel property of type enum but it is not working.

 

How to bind Radcombobox with Enum Values and property of type Enum as selectedItem.

 

Regards,

Nagasree

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
7 answers
1.4K+ views

I have a problem with my RadGridView not updating when new items are added to the source collection. 

The ItemSource for my RadGridView is bound to a QueryableCollectionView which is created using a Caliburn.Micro BindableCollection e.g. new QueryableCollectionView(myBindableCollection).

I have several filters that I add as FilterDescriptors and CompositeFilterDescriptors to the QueryableCollectionView. And the filters works as they should.

The problem comes when I want to add a new item. The item is added to the BindableCollection and should show up in the RadGridView. However, this does only work when there is no FilterDescriptors on the QueryableCollectionView. 

What I have tried:

1. To NotifyOfPropertyChanged on the QueryableCollectionView 

2. To NotifyOfPropertyChanged on the BindableCollection

3 To run QueryableCollectionView.Refresh()

But none of the above has worked. 

What seems to work though is to remove all the FilterDescriptors and add them back again. Then the new item appears. But it doesn't seem like a good solution.

Is there anything else that I can try?

 

 

 

Martin Ivanov
Telerik team
 answered on 01 May 2020
8 answers
536 views

We have the Problem, that the Users can't Paste Plain Text from Clipboard (Cut out from our old Delphi Win32 Applikation) in the RichTextBox.

If it is RTF or HTML Text it Works, but not with Plain Text, what we are missing ?

As Workaround the User can Cut the Text out in the old Application, paste it e.g. in an new eMail (HTML) Body, Mark it again to put in Clipboard and then they can Paste it in the RichTextBox, but that can't be the way.

In the section 'Clipboard' in the RichText Documentation stands that first the insert try RTF second HTML and third Text, but this doesn't work.

Can you please help me ?

Greetings

T. Schmitz

Martin
Telerik team
 answered on 30 Apr 2020
2 answers
162 views
I have cell and row validation happening on my grid which works fine. But when I have a cell or row that has invalid data, it locks out all my buttons on the window and prohibits the user from clicking them. I suppose that is alright for my 'OK' and 'Apply' buttons because I don't want to submit bad data. But I also have a 'Cancel' button which just closes the form without saving anything. I want that button always enabled even if the GridView is not valid.
John
Top achievements
Rank 1
 answered on 30 Apr 2020
2 answers
211 views

My chart draws a CartesianCustomAnnotation showing an ellipse that is meant to skirt up the curve in my profile line  I bind the annotation's HorizontalValue and VerticalValue properties to the center point of the ellipse.   I've attached an image to show what it looks like.  

The problem is that if my profile curve is gradual, the ellipse gets so big that it the center point is actually outside of the chart axis Minimum/Maximum values.   As soon my annotation's HorizontalValue or VerticalValue is outside the boundaries, the chart stops drawing it at all.  Even if its radius means that it *would*, in fact show up in part on the display (which is what I want).

Is there a way to force the chart to draw my annotation regardless of where its origin lies?

Martin Ivanov
Telerik team
 answered on 29 Apr 2020
0 answers
107 views

Hi,

 

I am using RadScheduleView for WPF. While trying to schedule appointments in the appointment dialog, I would like to get the date displayed as  12 Apr 2020 in date picker . However after setting Display format as Long, it gets displayed as 12 April 2010. I require month to be displayed in 3 letter format and should work in every region. Please suggest. If I set custom format, will it work correct depending on the region.?

 

Thanks,

Divya

Divya
Top achievements
Rank 1
 asked on 29 Apr 2020
4 answers
985 views

Hi to all,

I configured a Listbox with single Group, but if I change a GroupStyle, Group item not longer appears.

my XAML/C# code is this, and I attached a screenshots (where I put a red rectangle, it not shows my value), where I wrong?

01.FastSearchItems = new ObservableCollection<FastSearchItem>();
02.var view = new CollectionViewSource();
03.view.GroupDescriptions.Add(new PropertyGroupDescription(propertyName: "Tipo"));
04.view.Source = FastSearchItems;
05.FastSearchItemsFound = view;
06. 
07.//Add several items
08.FastSearchItems.Add(new FastSearchItem(/*parameter values*/));
09.//[..]
01.<telerik:RadListBox x:Name="FastSearchRadListBox" ItemsSource="{Binding FastSearchItemsFound.View}"
02.                    Grid.Row="2" Width="300" Grid.Column="2"
03.                    MouseDoubleClick="FastSearchRadListBox_MouseDoubleClick"
04.                    VerticalAlignment="Top"
05.                    Height="400" Visibility="{Binding FastSearchIsDropDownOpen,Converter={StaticResource VisibilityConverter}}"
06.                    ScrollViewer.VerticalScrollBarVisibility="Auto"
07.                    ScrollViewer.HorizontalScrollBarVisibility="Disabled">
08.    <telerik:RadListBox.ItemsPanel>
09.        <ItemsPanelTemplate>
10.            <StackPanel Orientation="Vertical" />
11.        </ItemsPanelTemplate>
12.    </telerik:RadListBox.ItemsPanel>
13.    <telerik:RadListBox.ItemTemplate>
14.        <DataTemplate>
15.            <StackPanel>
16.                <TextBlock Text="{Binding Caption}" />
17.            </StackPanel>
18.        </DataTemplate>
19.    </telerik:RadListBox.ItemTemplate>
20.    <telerik:RadListBox.GroupStyle>
21.        <GroupStyle>
22.            <GroupStyle.HeaderTemplate>
23.                <DataTemplate>
24.                    <StackPanel Orientation="Vertical" Background="#FAFAFA">
25.                        <TextBlock Text="{Binding Caption}" FontWeight="Bold"/>
26.                    </StackPanel>
27.                </DataTemplate>
28.            </GroupStyle.HeaderTemplate>
29.        </GroupStyle>
30.    </telerik:RadListBox.GroupStyle>
31.</telerik:RadListBox>
Nicholas
Top achievements
Rank 1
 answered on 29 Apr 2020
1 answer
280 views

Hi, good morning

I'm trying to change the theme to a RadOpenFileDialog, but I can't do it,

I've used these directions:

 Telerik.WinControls.UI.RadOpenFileDialog opfDialog = new Telerik.WinControls.UI.RadOpenFileDialog();
 opfDialog.OpenFileDialogForm.StartPosition = FormStartPosition.CenterScreen;
 opfDialog.OpenFileDialogForm.ThemeName = "Fluent";

StartPosition if it works, but ThemeName doesn't.

Could you help me?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Apr 2020
7 answers
582 views

Hi

currently i'm trying to integrate Intellisense support to rad richtextbox. i was able to display word list when press Ctrl+Space. but could not replace the word. is there any one who try such a thing. i have attached a screen shot which was develop using visual studio richtextbox. can not use that code for RadRichTextBox.

Dimitar
Telerik team
 answered on 29 Apr 2020
9 answers
419 views

Hi I need to scale an image so that it fills all the empty space in a page. For this I am trying to find the remaining height of the page after some elements are inserted in it. I am using the following code:

var position = new DocumentPosition(section.GetRootDocument());
position.MoveToDocumentEnd();
var pageContentHeight = section.PageSize.Height - position.Location.Y - section.PageMargin.Vertical;

 

The problem is that position.Location.Y does't return a value in pixels. For example when my page is filed with text it returns 173.8107 but the height of the page is 1056. 

How to get position of last element in RadDocument in pixels?

Remus
Top achievements
Rank 1
Veteran
 answered on 29 Apr 2020
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?