Telerik Forums
UI for WPF Forum
1 answer
651 views

Is there a way to get the selected item when performing a 'right click" in the Timeline? I have set up a context menu for the elements in my timeline, but

I have no way of getting to the object that was right-clicked. If you left click first and then right-click, I am able to get the selected item, but there appears

to be no method via "right click".

Paul

Vladimir Stoyanov
Telerik team
 answered on 26 Oct 2017
1 answer
338 views

 We are in the process of upgrading the version of Telerik we are using in our app.  We are currently using 2013.3.1316.  We have encapsulated RadMaskedTextBox in a control that allows us to create a masked field.  The creation is done in code, but a simple case example in xaml would look like
 
        <telerik:RadMaskedTextBox Mask="(000) 000-0000" MaskType="Standard" Placeholder=" " SelectionOnFocus="SelectAll" />

We are upgrading to 2017.3.1018.  Using the RadMaskedTextInput I've tried reproducing the above as follows:

        <telerik:RadMaskedTextInput Mask="(###) ###-####"  Placeholder=" " SelectionOnFocus="SelectAll" TextMode="MaskedText" SectionsNavigationMode="None" IsLastPositionEditable="False"  InputBehavior="Insert"  />

With the RadMaskedTextBox implementation, we were accustomed to seeing the following behaviors.
- Tab in to the empty field
- Type "1234567890"
- The value in the field appears as "(123) 456-7890"
- Tab out of the field and back into the field.
- Upon entering the field, the entire content of the field is selected
- Type "1"
- The value in the field appears as "(1  )    -    "
- Continute typing "234567890"
- The value in the field appears as "(123) 456-7890"

With the RadMaskedTextInput, we are seeing the following behaviors:

Issue 1:
- Tab in to the empty field
- Type "1234"
- We'd expect the value in the field to appear as "(123) 4  -    "
- Instead, the value in the field appears as "(123)    -    "
- Also, note, when you type the 3, the cursor is positioned to the right of the 3 and when you type 4, the cursor moves one position to the right.
- Type "567890"
- The value in the field appears as "(123) 567-890 "
--This is unexpected.  If the phone number the user is entering is "(123) 456-7890", the 4 is not showing up.
--Note:  If the placeholder is "_" instead of " ", this doesn't happen.

Issue 2: 
- Tab in to the empty field
- Type "123 4567890"  (Notice the space to get past the issue described above"
- The value in the field appears as "(123) 456-7890"
- Tab out of the field and back into the field.
- Upon entering the field, the entire content of the field is selected
- Type "1"
-- I'm expecting the value of the field to be "(1  )    -    "
-- Instead the value is "(123) 456-7890", though the selection highlight has changed so that the "1" is no longer highlighted.
- Type "2"
- Now the field value is what I would expect - "(12 )    -    ", but it should have cleared out on the first keystroke.


Issue 3: 
- Tab in to the empty field
- Type "123 4567890"  (Notice the space to get past the issue described above"
- The value in the field appears as "(123) 456-7890"
- Tab out of the field and back into the field.
- Upon entering the field, the entire content of the field is selected
- Type "9"
-- I'm expecting the value of the field to be "(9  )    -    "
-- Instead the value is "(923) 456-7890", though the selection highlight has changed so that the "1" is no longer highlighted.
- Type "8"
- Unlike with Issue 2 above, the remaining text doesn't clear out.  Instead the following occurs:
- The value appears as "(982)3456-7890"
- The selection highlight is removed.
-At ths point, if I clear the field the value appears as "(   )3   -    "
-That "3" is stuck and there is no way to clear it.

Petar Mladenov
Telerik team
 answered on 26 Oct 2017
3 answers
579 views

Hello,

in our project, we have multiple RadPanes in a RadDocking control.
One of those RadPanes should not be draggable and the user is not allowed to drop other panes on this one.
Setting the IsDragDisabled property to true doesn't seem to change the behaviour, only in combination with PaneHeaderVisibility = Visibility.Collapsed.
But setting CanFloat to true results in the desired behaviour.

However, I cannot get the second part (about not allowing to drop other panes on this one) working.
I tried using the AllowDrop property, but setting it to true or false doesn't seem to make any difference.
Is there anything else to consider when using the AllowDrop property?

As a workaround, I tried using the PreviewDrop event of the docking control and the RadPaneGroup but neither seem to fire when a RadPane is dropped. I only get the PaneStateChanged event but as far as I know, this one does not contain any information on the drop target.

Any help would be appreciated.

Best regards.

Wetzorke
Top achievements
Rank 1
 answered on 25 Oct 2017
2 answers
286 views

Downloaded latest Telerik WPF release ZIP file with NuGet packages on host with no prior Telerik.

A minimal RadPdfViewer program with links to NuGet packages shows no image.

Another Win 10 host with Telerik installed from MSI package and Telerik RadPdfViewer dragged from Toolbox works OK.

What is the possible cause?

Is there a missing License file?

 

Ditlef
Top achievements
Rank 1
 answered on 25 Oct 2017
1 answer
967 views

My application has a RadRichTextBox to collect styled text from users, working great. The RadRichTextBox has an associated HtmlDataProvider and I'm storing the Html property as a string value on a Message view model. However, in another area of my application, I want to load and display the text entered in this RadRichTextBox as plain text, as a property on a different view model, unrelated to the original Message view model, without any styling added by the user. Is there a way to accomplish this without storing a second string property on the Message view model, i.e. is there a way to remove the html markup from the MessageText property?

The RadRichTextBox definition and associated HtmlDataProvider:

<telerik:HtmlDataProvider x:Name="HtmlProvider" RichTextBox="{Binding ElementName=htmlRichTextBox}" Html="{Binding MessageText, Mode=TwoWay}" />
<telerik:RadRichTextBox x:Name="htmlRichTextBox" IsSpellCheckingEnabled="False" Height="300"/>
Polya
Telerik team
 answered on 25 Oct 2017
7 answers
282 views
The UI for WPF Demo no longer works on my work workstation running Windows 10 Enterprise. The demo loads and you can get to the list of controls to explore, but on clicking any control I get the following error "Exception has been thrown by the target of an invocation." I have tried reboots and also rerunning the setup fresh from the Telerik website, but still get the same issue.

The demo worked yesterday (08/03/2017). No Windows updates, driver installs/updates, or any other changes have been made to the system between the time the demo application worked and stopped working.
Martin Ivanov
Telerik team
 answered on 25 Oct 2017
1 answer
107 views

I am tracking changes on a WPF RadRichtextBox so that I can see what changes a user has made, so that they can be approved by a supervisor later on. I don't want the first user to see the change tracking. 

Is there a way that I can remove the ability for that user to accept their own changes. Currently they can change the document, accept the change and there is no indication that they have changed anything.

I'm also looking to remove the visual indications of changes to the basic user. I have set Insert.Decoration = None and same for Delete.Decoration. But I am still getting tooltips with the revision details when the mouse is over the change.

Thanks

Tanya
Telerik team
 answered on 25 Oct 2017
1 answer
82 views

Hello,

I have an unexpected behavior with the TileView.

The behavior occurs when MinimizedItemsPosition is Top or Bottom. Maximizing the first item is all okay. If you maximize another item, one minimized item is no longer displayed. You can understand this in your WPF demos (TileView Examples, Docking) and the pictures.

Martin Ivanov
Telerik team
 answered on 24 Oct 2017
1 answer
158 views

Hi

I am using ChartView for visualizing some data.

The data is a list of doubles and strings. The string is a category and the double is a value.

The data is shown as points – and it works fine (see attached image)

Vertical axis is a LinearAxis.
Horizontal axis is a CategoricalAxis.
The series is a PointSeries.

I now want to use the trackball feature to highlight the point closest to the mouse. I have used this feature before on non-categorical axis and it worked fine. But in this case only one point for each category gets highlighted. The point highlightet is always the first point in the list in each category.

Do you have any idea what is wrong?

/Flemming Rosenbrandt


Martin Ivanov
Telerik team
 answered on 24 Oct 2017
0 answers
170 views
Not sure if this belong here or in the RadListBox-forum. But anyway...

I've got a RadListBox bound to an ObservableCollection with 2000 items. The items are displayed using a DataTemplate with an Image and a TextBlock. I've also implemented filtering of the items using a regular TextBox together with an IsVisible-property on the items. When entering text in the TextBox I hide all the items not matching the searchstring. Filtering works great, but I've noticed severe performance hits when running this on laptops with touch-screens (Windows 10). It works reasonably well when hiding items, but when clearing my filter (i.e. setting a lot of items to be visible again) it's really slow. I have set the TouchManager.IsTouchEnabled to false, and the AutomationManager.AutomationMode is disabled. It doesn't matter if i turn on or off the VirtualizingPanel.IsVirtualizing on the RadListBox. The only thing that I've found to work is by opening the device manager and disable the touchscreen-HID device, so I'm fairly certain that the performance hit is due to the touch-functionality.
Magnus
Top achievements
Rank 1
 asked on 24 Oct 2017
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?