Telerik Forums
UI for WPF Forum
8 answers
1.1K+ views
Hello,

I am trying to implement multiple selection of a RadGridView in an MVVM context with data binding, based on this example.

I have achieved one way of interaction: when the selection state in the grid view is changed, the SelectedItems property of the view model is changed accordingly.

However, when I try to update the view from the viewmodels state, I run into a loop, where a change in the view changes the view model, which tries to update the view again etc. as a consequence, WPF throws an exception, that a change of a collection inside a CollectionChanged event is not possible (which makes sense).

Any ideas how this is solved properly ? Unfortunately, the above mentioned example does not present any further details for this issue.

Lars
Zahra
Top achievements
Rank 1
 answered on 20 May 2019
1 answer
69 views
I have a case where I want some tiles to span multiple columns and different rows, so I implemented the RestoredTilesToSpanMultipleRowsAndColumns example that is frequently posted here (https://github.com/telerik/xaml-sdk/tree/master/TileView/RestoredTilesToSpanMultipleRowsAndColumns). However, after implementing it I see that the maximize button no longer works - the example sets MaximizeMode to "Zero" because it doesn't do anything. How can I restore that functionality?
Dilyan Traykov
Telerik team
 answered on 20 May 2019
3 answers
115 views

 

I get a visual bug when I use 'HierarchyColumnIndex' to set the 3rd column as the one I want the Tree to appear on and also turn on 'TreeLinesVisibility'

I looks like the tree lines say on the the first column and don't move over to the 'HierarchyColumnIndex' column like the tree arrows do

Vladimir Stoyanov
Telerik team
 answered on 20 May 2019
8 answers
240 views

Hi

In the Rad Time Picker control, using the Windows 7 theme, the time entries in the picker popup is WHITE in color.
Can you please suggest as to how one can change the color to Black.

I tried using the foreground attribute, it didnot work.

 

<

telerik:RadTimePicker MinWidth="200" telerik:StyleManager.Theme="Windows7Theme" Foreground="Black" Tag="EndTime" Width="200" Grid.Row="4" Grid.Column="4" SelectedTime="{Binding Path=EndTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"/>

Can you please suggest how one can achieve this.

Thanks and Regards
Abhinav

 

Martin Ivanov
Telerik team
 answered on 20 May 2019
1 answer
316 views

Hello, Is there a way to change the table border color in a RichTextBox?

1. Default : When user creates table, it should have a pre-defined color (in our case, gray)

2. User runtime : User should have the ability to change the table border color if they want to.

Thank you,

Jan

 

Tanya
Telerik team
 answered on 20 May 2019
3 answers
176 views

Hi Team,

We are developed WPF application and used the telerik Rad PivotGrid to display and formats based on the needs. We have one issue upon groping the data on string columns. Our issue is if we group the data on string columns, it is considering the small letters and capital letters are treating it as different due to that values are totaling inaccurately. 

Following is the way we implemented to bind the data to grid.

1) We will prepare the query to fetch the data from DB based on the criteria selected by the user.

2) Data will be saved in VB.Net data table, from their we will bind it to pivot grid to do format the data as per customer needs.

3) In this case if we group the data on string columns, gird shows multiple rows based on data.

4) Suppose if we have column state, if it contains value as "CT" in one row and in another row if value is "ct", and if we group on state column. Grid shows two rows instead of one row.

5) We don't want to consider the casing(i.e case sensitive) of data in grid, please suggest us to implement the changes in application.

Thanks

Chakradhar

Martin Ivanov
Telerik team
 answered on 17 May 2019
1 answer
229 views
     I have a timeline showing events at a millisecond granularity.  I have min zoom set to 1 seconda and max set to 30 seconds. I am able to use the scroll wheel to zoom in on this graph, but the zoom is very very slow.  Is there a way to set the speed of the zoom?  For instance i would like to be able to get from the min zoom to the max zoom or vice versa in ~20 mouse wheel clicks (right now the zoom is so slow it would probably take 1000).
Martin Ivanov
Telerik team
 answered on 17 May 2019
3 answers
213 views
Does RadRichTextBox supports or provides print preview?
Tanya
Telerik team
 answered on 17 May 2019
1 answer
140 views

Hi,

I am using the Telerik KeyTipService for putting up AccessTexts on RadRibbonButtons. The Access Text positions are getting overlapped for some of the RabRibbonButtons.

Please have a look at the attachments.

In the attachment("AccessTextsOverlap.png"), The AccessText for "ZoomOut" is getting hidden under the Access Text for "Pan".

The code snippet is given in the attachment("Code.PNG").

Is there a way to control the position or placement of the access texts?  

Dinko | Tech Support Engineer
Telerik team
 answered on 16 May 2019
5 answers
694 views

I have  this user control view.

 

<UserControl x:Class="TelerikWpfApp1.Views.MainMenuUserControlPanelBarStyle"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:TelerikWpfApp1.Views"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="250">
    <UserControl.DataContext>
        <Binding Mode="OneWay" Path="MainMenuUserContentPanelBarStyle" Source="{StaticResource Locator}"/>
    </UserControl.DataContext>
    <UserControl.Resources>
        <HierarchicalDataTemplate x:Key="Entity" ItemsSource="{Binding Randuri}">
            <StackPanel Orientation="Horizontal">
                <Label x:Name="btn" Content="{Binding Titlu}" 
                           Margin="0,0,0,0"
                           />
            </StackPanel>
        </HierarchicalDataTemplate>
    </UserControl.Resources>

    
    <Grid>
                             <!--ItemDoubleClick  ="{Binding PanelBarItemDoubleClick}"-->

        <telerik:RadPanelBar x:Name="radPanelBar"
                             Margin="0,0" 
                             ExpandMode="Multiple" 
                             ItemsSource="{Binding UserMeniu}"
                             ItemTemplate="{StaticResource Entity}"  
                             SelectedItem="{Binding PanelBarSelectedItem, Mode=TwoWay}"
                             
                             >
        </telerik:RadPanelBar>

    </Grid>
    
</UserControl>

 

And the code for ItemDoubleClick ...:

        private void PanelBarItemDoubleClick(object sender,  Telerik.Windows.RadRoutedEventArgs e) {
            MessageBox.Show("It's working...");
        }

When I run the project I get the error message "Unable to cast object of type 'System.Reflection.RuntimeEventInfo' to type 'System.Reflection.MethodInfo'."

What can I do ?

Thanks.

 

Vladimir Stoyanov
Telerik team
 answered on 15 May 2019
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?