Telerik Forums
UI for WPF Forum
2 answers
164 views
I use a RadNavigationView for my whole application.  I whipped up a context menu for it that I set on it.  But I want my context menu to only appear when the user right-clicks on the "Pane" part of the RadNavigationView -- the part on the left, not for the content part on the right.  How may I do this? 

I tried looking at the visual structure of the control template to see if there is some sort of distinct control representing just the pane whose "ContextMenu" property I could set but I could not spot anything.

I really do not want to redefine the whole ControlTemplate.

Any ideas?
Martin Ivanov
Telerik team
 answered on 12 Apr 2021
2 answers
139 views

when use the LineSeries, the scale position on the X-Axis is different from that scare position when use the BarSeries.

How to customize the position of the x axis scale?

Please help me

ALi
Top achievements
Rank 1
 answered on 12 Apr 2021
2 answers
209 views

I tried this "How to" here: https://docs.telerik.com/devtools/wpf/controls/radnavigationview/how-to/customize-open-close-animations

and it works. However, the animation is applied only to the bit when the nav. view is in compact mode. I need it to go all the way to completely hidden or collapsed.

I opened the xaml theme file 

Telerik.Windows.Controls.Navigation.xaml

from here

C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Themes.Implicit\WPF40\Office2016\Themes

The file is 9000 lines.

On what element instead of "PART_PaneRoot" should I apply the animation so that the complete nav. view is hidden:

<Setter Property="animation:AnimationManager.AnimationSelector">
                        <Setter.Value>
                            <animation:AnimationSelector>
                                <animation:ResizeAnimation AnimationName="ResizePaneAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:3" ResizeMode="Horizontal">
                                    <animation:ResizeAnimation.Easing>
                                        <ExponentialEase EasingMode="EaseOut" />
                                    </animation:ResizeAnimation.Easing>
                                </animation:ResizeAnimation>
                                <animation:SlideAnimation AnimationName="MinimalPaneOpenAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:0.2" PixelsToAnimate="250" Orientation="Horizontal" Direction="In" />
                                <animation:SlideAnimation AnimationName="MinimalPaneCloseAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:0.2" PixelsToAnimate="250" Orientation="Horizontal" Direction="Out"/>
                                
                            </animation:AnimationSelector>
                        </Setter.Value>
                    </Setter>

Vladimir
Top achievements
Rank 1
Veteran
 answered on 09 Apr 2021
10 answers
2.7K+ views

Hello

How can I bind the selected Items from the Combobox when using "AllowMultipleSelection"?

ItemTemplate: <CheckBox Content="{Binding Name}" IsChecked="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadComboBoxItem}, Path=IsSelected}" />

Sincerly

A.Kasar

 

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Apr 2021
1 answer
128 views

    Hi,

 

i need to add some sorting and filtering methods, we were testing to create a grid and put in on the back of the listview so we can use the headers as sort&filter buttons (attached an image to show how we use it).

 

 

the thing is, that we are having like a ton of information, and the grid/listview just hangs when we set the property of the datasource of both lists.

 

how would be the best way to get the filtering and sorting for a listbox?

is there a way to replicate the buttons functionality of the grid on plain buttons? maybe a toolbar?

 

 

thanks for any advice...

 

 

Martin Ivanov
Telerik team
 answered on 09 Apr 2021
6 answers
216 views

 

I am working with the RadRichTextBox Document History, and I noticed that whenever I change the Depth of the Undo stack, or change IsEnabled, the Redo stack is cleared, but the Undo stack is preserved.  Is there any way to preserve the Redo stack during these changes?

For example:

myRadRichTextBox.Document.History.Depth = newDepthLimit;

and

myRadRichTextBox.Document.History.IsEnabled = false;

 

will both clear the Redo stack.  I am trying to prevent a callback command that manipulates a bookmark from adding an element to the history, but if I use either of these methods, I lose the Redo stack.

 

Thanks,

Bob

 

Tanya
Telerik team
 answered on 09 Apr 2021
4 answers
449 views

We have a custom Find/Replace dialog for our RadRichTextBox.  As part of the replacement of text, we have this code:

var startPos = Document.Selection.Ranges.First.StartPosition;
var endPos = Document.Selection.Ranges.First.EndPosition;
 
this.CurrRichTextBox.Document.CaretPosition.MoveToPosition(endPos);
 
this.CurrRichTextBox.Document.Selection.SetSelectionStart(startPos);
this.CurrRichTextBox.Document.Selection.AddSelectionEnd(endPos);
 
StyleDefinition style = new StyleDefinition();
style.CopyPropertiesFrom(this.CurrRichTextBox.CurrentEditingStyle);
 
this.CurrRichTextBox.Delete(false);
this.CurrRichTextBox.Document.Insert(s, style);

 

However, this code uses the deprecated Insert method, and this also causes the history to be cleared.  What is the now correct method for replacing text and maintaining the styling of the text?  Can you please provide a code example?  I have tried to search through documentation, but I could not find any examples.

Thanks, Bob

 

 

 

 

Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 07 Apr 2021
1 answer
107 views

Hello,

I want to drag multiple items in RadTreeView and drop to Grid (NOT GridView).

Is there any previous threads about it or code samples?

 

Martin Ivanov
Telerik team
 answered on 07 Apr 2021
5 answers
366 views

Hello.

 

First of all, please check the image.

My question is this.

1. The textbox in the splitbutton has no function. Can the ColorPicker be displayed in the same way as the arrow function?

    Arrow button down when clicking text box.

 

 

2. Can I change the location of Themes colors and Standard Colors?

     MainPalette and StandardPalette properties exist, but cannot be reversed.

 

 

 

Is there a solution?

Thanks.

Dilyan Traykov
Telerik team
 answered on 07 Apr 2021
7 answers
537 views

Hello

I created the Editor after watching the demo.

When an error occurs, clicking the button first opens the Editor window, but an error occurs.

-------This Error-------------

System.Windows.Markup.XamlParseException: ''Cannot set unknown member 'System.Windows.Controls.TextBox.IsReadOnly'.'

Line number '1301' and line position '21'.'

------------------------

There is no content of Editor Xaml. 

There is no error when creating an instance. Error appears when using ShowDialog!

 

 

var window = new EditorView(); // Pass

window.showdialog(); // <<  Error

 

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/KickOff;component/Resources/NoXaml/NoXamlTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
 
    <Grid>
        <telerik:RadColorEditor x:Name="radColorEditor" />
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right"
                    Height="32" Margin="0 0 11 11">
            <Button Content="OK" Width="60" Margin="0 0 10 0"
                    Click="OnClickOkCommand"  => Using DialogResult = true, Close()
                    />
            <Button Content="Cancel"  Width="60"
                    Click="OnClickCancelCommand"  => Using DialogResult = false, Close()
                    />
        </StackPanel>
    </Grid>

 

I used telerik noxaml version 2021_1_308, office 2019 themes.

refer : telerik controls, controls.input 

themes.implicit wpf40 office2019 : system.windows.xaml, telerik.controls.xaml, telerik.controls.input.xaml

 

Thanks.

Vicky
Telerik team
 answered on 07 Apr 2021
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
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?