Telerik Forums
UI for WPF Forum
1 answer
154 views
I worked through RadDocking documentation and also a lot of your (SDK) examples but I still did not find out how to set the DataTemplate of a RadPane.

In my project I use the same approach as in your SDK example "VisualStudioDocking_WPF" so RadDocking.PanesSourceis bound to an ObservableCollection<PaneViewModel>. With that I can dynamically add RadPanes on my RadDocking.DocumentHost in an MVVM friendly way. That's nice but sadly the example ends here - each RadPane is an empty Control just showing the TypeName of the ViewModel.

In my CustomDockingPanesFactory.CreatePaneForItem I set the following properties:
pane.DataContext = paneViewModel;
pane.Header = paneViewModel.UserControlViewModel.Header;
pane.Content = paneViewModel.UserControlViewModel;

What I need is an example of how to set the DataTemplates for my RadPanes. Is there a clean way to set the DataTemplates and the DataTemplateSelector on XAML?

George
Telerik team
 answered on 25 Jul 2014
1 answer
850 views
Hi.

I was wondering if it's possible with a RadGridView to have the double click event not enable edits on the cell ?
Single click edits work fine, but double clicks activate another view, and I do not want the cell being in an editable state at this point.

Is there a solution to this ?

Thanks.
Boris
Telerik team
 answered on 25 Jul 2014
4 answers
79 views
In my project it seems that I cannot open custom appointments that have a recurrency set. How can I debug this since no exception is thrown?
Should I try to investigate the Telerik source codes? If so, where to begin?

I tried with a simpler project and then it works. However after hours of investigating I don't know where to look at.

Some details about the project:
- Telerik.Windows.Controls.ScheduleView version: 2014.2.617.45
- CustomAppointment
- Custom Resource
- Custom EditAppointmentTemplate and a Custom ViewModel behind it

Thanks,

Jim
Jim
Top achievements
Rank 1
 answered on 25 Jul 2014
1 answer
184 views
Hello everyone, 

I'm using RadTileView and I've decided to use Grid inside tileview for items positioning. But it causes top bar with maximize/minimize button. Here is my code and the result is displayed in picture(TileWithGrid.png). 

<telerik:RadTileView   x:Name="tileView" >
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="2.5*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <telerik:RadTileViewItem Background="Red"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                         Grid.Row="0" Grid.Column="0"
                                         DataContext="{StaticResource NewTile}"/>
 
 
                <telerik:RadTileViewItem Background="Blue"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                         Grid.Row="1" Grid.Column="0"
                                         DataContext="{StaticResource RecentTile}"/>
<Grid>
            <telerik:RadTileViewItem Background="Orange"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                     Grid.Row="0" Grid.Column="1"  Grid.RowSpan="2"
                                     DataContext="{StaticResource ErrorsTile}"/>
 
                 
            </Grid>
        </telerik:RadTileView>
</Grid>

But when I remove Grid inside TileView top bar disappears. Here is code without Grid and the result is displayed in TileWithoutGrid.png

<Grid>
 
        <telerik:RadTileView x:Name="tileView" >
            
                <telerik:RadTileViewItem Background="Red"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                          
                                         DataContext="{StaticResource NewTile}"/>
 
 
                <telerik:RadTileViewItem Background="Blue"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                         
                                         DataContext="{StaticResource RecentTile}"/>
 
                <telerik:RadTileViewItem Background="Orange"
                                     Header="Item 0"
                                     Style="{DynamicResource RadTileViewItemStyle}"
                                      
                                     DataContext="{StaticResource ErrorsTile}"/>
             
        </telerik:RadTileView>
    </Grid>

So how can I mix TileView with Grid without top bar displayed?

Pavel R. Pavlov
Telerik team
 answered on 25 Jul 2014
3 answers
213 views
Hello, our QA are asking me to solve some strange problem with cursor behavior. If i have some text in radrichtextbox and i'm holding Left or Right arrow button, cursor moves. And it continues flashing while moving. 

This behavior look pretty strange for our users and testing engineers.  For example microsoft office and WPF native RichTextEditor cursors flash only in stationary mode. And they are solid while moving.

Is there any way to change cursor behavior in this case?
Grigory
Top achievements
Rank 1
 answered on 25 Jul 2014
7 answers
148 views
Hi, 

I have a very big problem: when I add many shapes (>100), the paint is very slowly. First, I calculate the position in background (for put the shapes one next to each other) and I paint (diagram.AddShape()) after.

Can somebody help me?

Thanks. 
Zarko
Telerik team
 answered on 24 Jul 2014
1 answer
676 views
I implemented a GridView user control (actually a TreeListView control) where I use a custom RowStyleSelector to color specific rows differently based on some GridView cell value. This works just fine.
The problem is that if I hover over a row or select an entire row, the custom color of my RowStyleSelector will be covered. My idea now is to have just a thin border around the entire row as hover or selected row indication instead of a full gradient fill color. That way my specific row color will still be visible.

I found this thread:
http://www.telerik.com/forums/changing-the-highlight-selection-color-for-an-entire-row

Wow, this is quite involved. Isn't there an easier way to achieve what I intend to do?

Any help is very much appreciated.

Thanks,
Markus
Yoan
Telerik team
 answered on 24 Jul 2014
5 answers
1.0K+ views
Hi,

using an attached behavior I tried to set the focus on a RadMaskedTextInput.
It didn't work as expected and so I tried to set it manually.

Doing this I found that IsFocused is not accessible as Dependency Property.
The question now - how to handle focusing in MVVM with RadMaksedTextInput.

My normal code looks something like this:
<TextBox Text="{Binding FirstName}" myExt:FocusExtension.IsFocused="{Binding IsFirstNameFocused}"...

Thanks
Manfred
Petar Mladenov
Telerik team
 answered on 24 Jul 2014
4 answers
184 views
We are running into several issues with the RTB regarding IMEs. Is there anyone out there that is using the RTB in an IME environment? Telerik claims to support the Microsoft IME (which is terribly shortsighted because it is for the most part terrible) but even that crashes. Looking for anybody who has found workarounds, we have a global application and are at the brink of moving to a different solution if we can't solve the IME problems. I have put the suggestions into Telerik's system to support other IME's.

Here are our issues (both replicated in the WPF demos with the Microsoft IME):
1. Application crashes if the first character entered uses the shift modifier.
2. If the last character is a double quote it will delete the previous character.

Other random crashes:
Parameter name: insertIMETextCommandContext ---> System.ArgumentNullException: Value cannot be null.
Parameter name: insertIMETextCommandContext
at Telerik.Windows.Documents.UI.CaretTextInputHandler.HandleTextInsertedWithIme(RadDocument document, String text, TextInsertedEventArgs e)
at Telerik.Windows.Documents.UI.Caret.OnTextInput(TextCompositionEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
at System.Windows.Documents.ImmComposition.RaiseTextInputEvent(FrameworkTextComposition composition, String compositionString)
at System.Windows.Documents.ImmComposition.OnWmImeChar(IntPtr wParam, Boolean& handled)
at System.Windows.Documents.ImmComposition.ImmCompositionFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

----

This is one that our Russian users get a lot:

Parameter name: collection ---> System.ArgumentNullException: Value cannot be null.
Parameter name: collection
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Telerik.Windows.Automation.Peers.GridViewRowAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Todor
Telerik team
 answered on 24 Jul 2014
4 answers
294 views
Hi,
I hope that You can help me with one really annoying error. If I replace:
<dHTML:HtmlDataProvider x:Name="HtmlDataProvider1"  RichTextBox="{Binding ElementName=richTextBox1}" Html="{Binding HeaderText, Mode=TwoWay}"  />
with:
<dXAML:XamlDataProvider x:Name="XamlDataProvider1" RichTextBox="{Binding ElementName=richTextBox1}" Xaml="{Binding HeaderText, Mode=TwoWay}"  />

i get, when app starts, error:

XamlParseErrorOccurred:

Data at the root level is invalid. Line 1, position 1.
in usercontrol header i have:
xmlns:dHTML="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
xmlns:dXAML="clr-namespace:Telerik.Windows.Documents.FormatProviders.Xaml;assembly=Telerik.Windows.Documents.FormatProviders.Xaml"

This is happening every time I start app, but if I undo changes, everything is again OK. This was working without problems few days ago. But, on the other side, same syntax working in other usercontrol.
Can You help?
Best Regards
Nebojsa Danilovic
Petya
Telerik team
 answered on 24 Jul 2014
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?