Hallo,
I use DragDropManager to drag & drop items between RadListBoxe A and RadListBox B. It works good. But it will cause the program crashed when I try following:
Because the RadListBox B is not allowed to have TWO items on the same time, so existing item must be "swap" by new one. I remove the existing item and replaced by new one via code. It works good only when it drops under existing item. And, when I drop the new item before the existing item, the program will be crashed by NullReferenceException, I found the exception caused by DragDropBehaviour<TSTate> class. See screenshots provided.
Please, solutions, urgent.
Tam
Hello Telerik Team,
How can I resize both thumbs in the slider?
I added a picture, where you an see it better.
I tried with changing width of ThumbStyle, which causes troubles. I cant move the bar completely to the left or right.
Thanks.
Hello,
Is there a way to remove only the 'AND' section in the grid view`s column filter?
Hi:
1. How can I create a TOC with links that can go to its source section when I use Ctrl+click?
2. How can I create a TOC that ignores the previous pages (for example : the first three pages)?
3. why I created a TOC ,when the document exported to a pdf file, something changed(see the attach files )
I am not sure this is the place, but it's driving me crazy.
In my xaml code, when I click the code for RadComboBox, I get a popup (see attached image).
If I click the popup I am sent to the design view (see attached). When I click the xaml tab I am redirected back to the design view after seeing the xaml code for a split second.
Does anyone know waht it might be that is causing this behavior?
Thanks in advance!
Hi,
we are following all the tips from https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks but we only get a poor performance when filling the grid.
Do you have any further tips for me? I can send a sample app to showcase our problem.
Greetings
Andre
I do not know if I have defined question correctly, sorry for my lack of experience. Application I work on have a TreeView that is connected to data source. Data is hierarchical. There are root element and every root element can have children. Any children can have multiple other children. I have figured out how to data bind and show hierarchical data. Problem is that I need to style treeview items. I have figured out how to set itemtemplate on root and children in xaml. But now I have two copies of item template. One in ItemTemplate and another in its's hierachical item template. But they are identical, as I understand MVVM this could be an issue when I try to implement something more complex. Is there some elegant way to have this defined in one place and then shared on item template root and then it's children?
Here is the code of my TreeView in XAML:
<
HierarchicalDataTemplate
x:Key
=
"HostsTemplatekey"
ItemsSource
=
"{Binding Children}"
>
<
StackPanel
Orientation
=
"Horizontal"
telerik:RadContextMenu.ContextMenu
=
"{StaticResource TreeViewContextMenu}"
>
<
iconPacks:PackIconFeatherIcons
Kind
=
"Trash2"
Width
=
"20"
Height
=
"20"
Visibility
=
"{Binding Converter={StaticResource FileTypeToIconPackVisibilityConverter}, ConverterParameter= 3}"
/>
<
TextBlock
Width
=
"10"
/>
<
Grid
>
<
TextBlock
Text
=
"{Binding cityname}"
VerticalAlignment
=
"Center"
FontSize
=
"{StaticResource BaseCaptionFontSize }"
/>
</
Grid
>
</
StackPanel
>
<
HierarchicalDataTemplate.ItemTemplate
>
<
HierarchicalDataTemplate
ItemsSource
=
"{Binding Children}"
>
<
StackPanel
Orientation
=
"Horizontal"
telerik:RadContextMenu.ContextMenu
=
"{StaticResource TreeViewContextMenu}"
>
<
iconPacks:PackIconFeatherIcons
Kind
=
"Trash2"
Width
=
"20"
Height
=
"20"
Visibility
=
"{Binding Converter={StaticResource FileTypeToIconPackVisibilityConverter}, ConverterParameter= 3}"
/>
<
TextBlock
Width
=
"10"
/>
<
Grid
>
<
TextBlock
Text
=
"{Binding cityname}"
VerticalAlignment
=
"Center"
FontSize
=
"{StaticResource BaseCaptionFontSize }"
/>
</
Grid
>
</
StackPanel
>
</
HierarchicalDataTemplate
>
</
HierarchicalDataTemplate.ItemTemplate
>
</
HierarchicalDataTemplate
>
<
telerik:RadTreeView
Name
=
"dgCities"
Margin
=
"10"
ItemsSource
=
"{Binding data.CitiesCollection}"
IsEditable
=
"True"
ItemTemplate
=
"{StaticResource HostsTemplatekey}"
SelectedItem
=
"{Binding data.SelectedCity, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
IsDragDropEnabled
=
"True"
/>
I have different shapes which I drag from toolbox to diagram.
For example:
-Shape.name1
-Shape.name2
-Shape.name3
What I want to do is on the diagram:
Move Shape1 to shape 2. So, Shape 1 bottom is connected to shape 2 top. (without connectors)
Shape 3 top should be only allowed to dock on shape 2 bottom.
All shapes have the same size.
Can anybody provide me some code examples for this?