Telerik Forums
UI for WPF Forum
11 answers
360 views

Hello,

Can you point me to an example of a custom RadDiagramShape with connectors.  I've seen this example but I don't see the connectors.

http://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape

 

Thanks,

Dinko | Tech Support Engineer
Telerik team
 answered on 31 Oct 2017
3 answers
222 views

Hi,

How can I populate my RichTextBox like the Preview shown in the attachment (codeblock.jpg)?

 

I tried something like this:

previewTextBox.InsertCodeBlock(codeTextBox.Text, settings);

but the result is not the same (mypreview.jpg)

 

thank you

Polya
Telerik team
 answered on 31 Oct 2017
7 answers
215 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
112 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
133 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
902 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
598 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
283 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
486 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
228 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?