Telerik Forums
UI for WPF Forum
1 answer
162 views

Hello,

is it possible to use a ListCollectionView for BindingToICustomTypeDescriptor in a RadGridView?

If yes how?

I attached the project from Telerik and tryed it out with an ListCollectionView but the data will not show properly.

Dilyan Traykov
Telerik team
 answered on 15 Sep 2022
0 answers
110 views

Hi,Telerik Team,

I‘m using RadGridView  and  “EventToCommandBehavior.EventBindings”  to   process  GridViewRow's MouseEnter event,

but “EventToCommandBehavior.EventBindings”  is  in RadGridView's  range,it couldn’t  connected  with  GridViewRow's  MouseEnter event exactly ,

which eventName should I use  when I need   GridViewRow's MouseEnter event.

this is  my code :


            <telerik:EventToCommandBehavior.EventBindings>
                        <telerik:EventBinding Command="{Binding RowMouseEnterCommand}"    EventName="MouseEnter" CommandParameter="{Binding ElementName=GridView, Path=SelectedItem}"/>
                    </telerik:EventToCommandBehavior.EventBindings>

Thanks!

Justin
Top achievements
Rank 1
 updated question on 13 Sep 2022
1 answer
129 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
302 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
96 views
No question
MJ
Top achievements
Rank 1
 updated question on 09 Sep 2022
0 answers
67 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
100 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
96 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
439 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
426 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?