Telerik Forums
UI for WPF Forum
1 answer
89 views

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

 

Martin Ivanov
Telerik team
 answered on 22 May 2020
1 answer
148 views

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.

Vicky
Telerik team
 answered on 22 May 2020
1 answer
95 views

Hello,

Is there a way to remove only the 'AND' section in the grid view`s column filter?

Vladimir Stoyanov
Telerik team
 answered on 22 May 2020
5 answers
151 views

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 )

Martin
Telerik team
 answered on 21 May 2020
4 answers
98 views

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!

Fredrik
Top achievements
Rank 1
Veteran
Iron
 answered on 21 May 2020
6 answers
106 views

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

Dinko | Tech Support Engineer
Telerik team
 answered on 20 May 2020
1 answer
181 views

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"
                            />

 

 

 

Vladimir Stoyanov
Telerik team
 answered on 20 May 2020
1 answer
142 views
In the native Microsoft.Win32.OpenFileDialog, there is a property called CheckFileExists, which can be set to false to allow you to choose a file that doesn't exist from the open dialog for being able to make new files. But RadOpenFileDialog seems to require a file to exist and I'm not seeing an equivalent for this in RadOpenFileDialog. Is there an equivalent or some way to get this behavior?
Dinko | Tech Support Engineer
Telerik team
 answered on 20 May 2020
1 answer
135 views

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?

fewfew
Top achievements
Rank 1
 answered on 20 May 2020
32 answers
1.0K+ views
Hello,

How can I get hold of a reference to the Filter popup and the Filter button? The reason I need this is that I want to respond to the click event of the button by closing the Filter popup.

I do not want to use the Filtered event on the RadGridView as that one is raised even when clicking on the check boxes.

I suppose using FindName on the Template would get the job done, but what is the template name for Filter popup?

Thank you.
Dinko | Tech Support Engineer
Telerik team
 answered on 20 May 2020
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?