Telerik Forums
UI for WPF Forum
1 answer
186 views

Hello guys,

The multisorting in RadGridView on desktop works very well with the help of "Shift" key.

But I want to implement it for the tablet computer. I want to be able to do a multisorting on my RadGridView by tapping and holding (https://docs.telerik.com/devtools/wpf/common-information/touch-support)  a column instead of the "Shift" key.

How can I do this?

Thanks in advance for your help.

Dilyan Traykov
Telerik team
 answered on 13 Sep 2022
1 answer
404 views

Hi,

I saw in other question that someday you will turn the UniqueName property into obsolete.

I need to save some configuration about the GridViewColumns to a file. I saw that when I use DataMemberBinding, the UniqueName name holds the Binding property name, but if I define a cell template without data member binding, the UniqueName property is null. How can I guarante the uniquenes of a column identifier? even if I put DataMemberBinding in all columns, theoretically I can have the same UniqueName name twice (binding two same property twice and showing different path in the cell template of the column).

 

It is not logical to call a property UniqueName without being unique. Can you help me please ??

How do you guarantee the uniqueness in your PersistenceManager implementation??

 

Martin Ivanov
Telerik team
 answered on 12 Sep 2022
0 answers
131 views
No question
MJ
Top achievements
Rank 1
 updated question on 09 Sep 2022
0 answers
87 views

I am using Windows 8 theme with RadTreeListView version 2020.1.218.  I'm trying to get it to preview what is being dragged while dragging but that doesn't seem to be available.  My main code is more complicated but I also reproduced this with some really basic code:

        <telerik:RadTreeListView ItemsSource="{Binding Samples}" IsDragDropEnabled="True" IsDragPreviewEnabled="True">
            <telerik:RadTreeListView.DragCueItemTemplate>
                <DataTemplate>
                    <TextBlock Text="test"></TextBlock>
                </DataTemplate>
            </telerik:RadTreeListView.DragCueItemTemplate>
        </telerik:RadTreeListView>

The classes referenced are just simple example classes; the 'Samples' property is on the view model and is a collection of classes that have a single property.  I am referencing the NoXaml packages as well as the Windows8 theme package.  When I start this application it shows the grid correctly and lets me start a drag and drop, but there is no preview.  I have also tried this without the drag cue item template set with the same result.  

Am I missing something?  Is there not a way to do this with Windows 8 theme?

Stephen
Top achievements
Rank 1
 asked on 07 Sep 2022
1 answer
145 views

Hi

Is it possible to stop tab item from being selected when dragging? We have a quite complex UI which takes long time to render (this is an ongoing issues and we are working on it) and when user tries to drag a tab item within RadDocking it takes a long time. We already use Deffered mode for dragging, but if an item is not selected/rendered it will take a while to render and then drag. I hope this makes sense.

Here is how we have our Docking set up:


<telerik:RadDocking DragDropMode="Deferred" AllowDragReorder="True">
	<telerik:RadDocking.DocumentHost>
		<telerik:RadSplitContainer>
			<telerik:RadPaneGroup telerik:RadDocking.SerializationTag="DocHost">
			</telerik:RadPaneGroup>
		</telerik:RadSplitContainer>
	</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

RadPanes are added from code as they are deserialised per user. I will skip that code for this question but can add it if needs be. 

We also have a style that is assigned to the dragged visual, like so:


<Style TargetType="telerik:DraggedElementVisualCue">
	<Setter Property="Template">
		<Setter.Value>
			<ControlTemplate TargetType="telerik:DraggedElementVisualCue">
				<Grid>
					<Rectangle Fill="WhiteSmoke"/>
					<TextBlock Text="{Binding Title}"/>
				</Grid>
			</ControlTemplate>
		</Setter.Value>
	</Setter>
</Style>

I am not sure if this has any effect on this but wanted to include it just in case.

 

TIA

Dilyan Traykov
Telerik team
 answered on 06 Sep 2022
1 answer
148 views

Hello!

I am a new user of Telerik UI for wpf.
I have encountered a problem in a project in which I am working on.

The problem consist in the unability to identify the RadTreeViewItem on which a MouseRightButtonUp event is executed.

The setting is as follows, 

I have a RadTreeView that I fill dynamically through a databind of its ItemSource property.
And the event mentioned above (MouseRightButtonUp) is bound to the RadTreeView xaml tag,
since I do not have the RadTreeViewItem /s as a tag in my xaml.


How can I recover the child in which the event MouseRightButtonDown/MouseRightButtonUp, was triggered?
Thanks in advance for any help / clarification


Kind regards

Marko
Top achievements
Rank 2
Iron
 updated answer on 05 Sep 2022
1 answer
510 views

Can i achieve this type of WPF navigation view in Telerik
With items having GroupBox above them with seperator.

Stenly
Telerik team
 answered on 05 Sep 2022
1 answer
526 views

Hi,

I`m looking for a way to disable the behavior when double-click on the separator between header cells of GridView sets column to adjust its width according to the widths of all currently visible items inside. For example WinForms DataGridView element has ColumnDividerDoubleClick event which allows me to override this behavior. I`m supposing that there should be something similar for GridView

Can you offer any advice?

Eduard

Stenly
Telerik team
 answered on 02 Sep 2022
5 answers
1.4K+ views

Hi,

I am trying to set a method to be called when the selected value of a GridViewComboBoxColumn is changed.

I have read about it on http://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/selectionchanged-comboboxcolumn and tried to implement it.

Here is my code:

mainGridView.AddHandler(RadComboBox.SelectionChangedEvent, new System.Windows.Controls.SelectionChangedEventHandler(OnSelectionChanged));
 
private void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
       {
           RadComboBox combo = (RadComboBox)sender;
         
              //  method to call
       }

 

However, I am getting an error:

"Expected a method with 'void OnSelectionChanged(object, SelectionChangedEventArgs signature".

If I get rid of my OnSelectionChanged() method and use the suggestions given, it gives me:

 

public System.Windows.Controls.SelectionChangedEventHandler OnSelectionChanged { get; set; }

 

Can someone please explain why this is not working for me?

Thank you

 

Mario
Top achievements
Rank 1
Iron
Iron
 answered on 01 Sep 2022
1 answer
357 views

Hi

I'm trying to implement RadDocking using DockingPanesFactory as per your examples (like this one).

I have set the PaneSource to a collection of viewmodels e.g. MyViewModel which has a property "Name".

I would like to bind the RadPane header to the "Name" property on the viewmodel. Ideally I would like to have a custom DataTemplate as well but I will settle for just getting the value to update with the ViewModel.

The CreatePaneFromItem method states that "...set any of the DataContext, Header, Title or Content based on the item as well as Style with bindings in the style setters to bind properties of the item to properties of the RadPane" however nothing I've tried seems to work.

I've tried setting a style with the setter properties like this:

var pane = new RadPane();
pane.DataContext = (MyViewModel)item;

Style style = new Style();
style.TargetType = typeof(RadPane);
Setter setter = new Setter();
setter.Property = RadPane.HeaderProperty;
setter.Value = new Binding("Name")
pane.Style = style;

Ideally I'd like to define a DataTemplate in a ResourceDictionary and retrieve and set that to the pane header but I'm not sure how to get that resource in the DockingPanesFactory

Can you offer any advice?

Jason

Stenly
Telerik team
 answered on 01 Sep 2022
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?