Telerik Forums
UI for WPF Forum
7 answers
219 views
When using the keyboard to traverse a GUI's components, a RadMenu gets highlighted the first time it receives keyboard focus but never loses the highlight when the focus goes to the next item.

Example:
- Add the following to a simple GUI:
  1. two buttons
  2. one RadMenu

- Run the application
- Tab around the controls
- Notice how the buttons change visual status when they receive and lose keyboard focus.
- Notice how the menu turns orange the first time it receives keyboard focus and then never changes visual state again as it receives/loses focus.
 
  I have tried resetting background color in the LostKeyboardFocus Event on the RadMenu and its topmost RadMenuItem but that doesn't work.

  How can I get a RadMenu to correctly display visual feedback as it receives/loses keyboard focus?


Nayana
Top achievements
Rank 1
 answered on 31 Oct 2017
2 answers
120 views

Hello!

I'm using "UI for WPF R2 2017".

If, in the RadMaskedTextInput, I hit the "Return" button the control expands onto a second line, and of course I want to prohibit this.

Please see the Before and After jpegs.

Thanks,
Mark

 

Clemens
Top achievements
Rank 1
 answered on 30 Oct 2017
2 answers
138 views

I've seen this post: http://www.telerik.com/forums/hotspot-for-pushpin-image-w-info-bubble but it doesn't quite meet my needs. The example uses InformationLayer but I want to use Visualization Layers - do hotspots work the same in both layer types? 

I'm trying display a collection of images on a map (on a VisualizationLayer). I also want to display a "label" for each image, and the label has various properties I can set (font size, color, offset, offset, enclosed by border, with line from border to image). The attached image gives an idea of what I'm trying to do.

I've tried binding the hotspot offsets to values in my viewmodel, but it seems like they get ignored, but it works if I put constant values for the hotspot in the xaml

e.g. this works:

<telerik:MapLayer.HotSpot>
    <telerik:HotSpot x:Name="hotSpot"
                     XUnits="Pixels"
                     YUnits="Pixels"
                     X="200"
                     Y="200"
                     ElementName="LabelText" />
</telerik:MapLayer.HotSpot>

but this doesn't:

<telerik:MapLayer.HotSpot>
    <telerik:HotSpot x:Name="hotSpot"
                     XUnits="Pixels"
                     YUnits="Pixels"
                     X="{Binding LabelOffsetX}"
                     Y="{Binding LabelOffsetY}"
                     ElementName="LabelText" />
</telerik:MapLayer.HotSpot>

 

I need a way to dynamically change the offsets for individual items. What am I doing something wrong? I've attached a sample app to show this problem.

Thanks,

Pete

 

 

Peter
Top achievements
Rank 1
Veteran
 answered on 30 Oct 2017
9 answers
909 views
when i add or deleted data from the grid the grid not refresh
until i go to other place like tab or page
can somebody no this problem ?.
best regard
Stefan
Telerik team
 answered on 30 Oct 2017
1 answer
609 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
301 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
513 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
235 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
918 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
233 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
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
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?