Telerik Forums
UI for WPF Forum
2 answers
295 views
I'm using MVVM pattern and would like to create a custom format for DateTimePicker of yyyy-MM-dd, how can I accomplish this? 
rcmp-grc
Top achievements
Rank 1
 answered on 06 Jul 2018
1 answer
135 views

Hello,

I am using the RadTreeView control to give the user a way to arrange and sequence many items, and all of its features have been great for customizing the various ways to interact with the items.  The issue I am currently having is when many items are selected for a drag and drop operation, sometimes upwards of 400 at a time, the drag is very slow to initialize, the drop preview becomes sluggish, and the drop operation itself takes several seconds to complete.  When selecting just a few items (under 30 or so..) there are no noticeable delays.

For my application specifically I use MVVM, and I must use Windows.Forms.Integration.ElementHost since I am plugging into a framework/environment that is not in my control. Both of these factor into performance, but even using the RadTreeView in a standalone WPF application the slowdowns can be observed.

Here is my instance of the treeview to give some context with the settings I am using:

<telerik:RadTreeView
             SelectionMode="Extended"
             IsDragDropEnabled="True"
             IsDragPreviewEnabled="False"
             IsDragTooltipEnabled="True"
             IsDropPreviewLineEnabled="False"
             IsEditable="True"
             Grid.IsSharedSizeScope="True"
             telerik:ScrollingSettingsBehavior.ScrollStep="40"
             telerik:ScrollingSettingsBehavior.ScrollStepTime="00:00:00.01"
             telerik:ScrollingSettingsBehavior.ScrollAreaPadding="40"
             telerik:AnimationManager.IsAnimationEnabled="False"
             IsVirtualizing="False"
             IsExpandOnDblClickEnabled="True">
 
 </telerik:RadTreeView>

 

Do you have any recommendations for what I can change to improve the experience when drag and drop is performed on so many items?

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2018
14 answers
289 views

Dear Telerik-Team!

Basically I came to your site because I want to create an enhanced Class Diagram Designer for my application - and I was amazed by your Diagram editor's capabilities. I saw that you have a basic screenshot for designing entities at http://www.telerik.com/products/wpf/diagrams.aspx.

But unfortunately none of your forum posts, tutorials or examples mentioned that use case.

So I try to lay out what I would like to achive. I'm aiming to create a class designer similar to - but richer than - the Microsoft Visual Studio Class Designer.

The following constraints I have
- Layout/looks should be adaptable (this works with your control from what I have seen)
- workflow as described should be possible to achieve

The workflows are the following:

Scenario one

01CreateClass.png - I would like to create a class
02CreateProperty.png - Add a property to it. Notice that it should be grouped to a region called "Properties"
03NameProperty.png - Specify the name of the property
04NamePropertyEnd.png - Picture shows how it should look like in the end.

Scenario two

05PropertyForEnum.png - Let's add another property called "BookStat"
06EnumCreate.png - Now we create an Enum for that - this should have a different look/shape than a class shape
07AddEnumValue.png - Let's add a value to the Enum
08MakePropertyTypeEnum.png - Now drag a connector from the "BookStat" property to the enum to make it of that type
09PropertyTypeIsEnum.png - A connector should be close to the "BookStat" property connecting to the shape "BookStatus"

Scenario three

10PropertyNoBackReference.png - Create two entities
11PropertyNoBackReferenceAction.png - Drag a connection from the property "Library" of class "Book" to just the class Library.
12PropertyNoBackEnd.png - That means there is no back reference from Library to book. So the connection is put on the shape of "Library" itself

Scenario four

13ReferenceReaderBookStart.png - Create two entities
14ReferenceReaderBookAction.png - Draw the connection from property "Books" of entity "Reader" to property "Reader" of entitiy "Book"
15ReferenceReaderBookEnd.png - This time we have a back reference, so the two properties are converted to a relationship and moved to another region called "Relationships"

Sami
Top achievements
Rank 1
 answered on 05 Jul 2018
2 answers
141 views

Hi, 

I am using RadPropertyGrid in one of my projects. I have a set of dynamic values coming to the RadPropertyGrid. And I am using "PropertyGridDataTemplateSelector" to define datatemplate for each fields of the propertygrid based on the incoming data.

I am able to use Togglebutton and AutoBindBehavior.UpdateBindingOnElementLoaded="IsChecked" on the DataTemplate for boolean Types.

Similarly I want to use a customized usercontrol for a user-defined datatype. So I created a dependency property in the usercontrol and tried to do AutoBindBehavior.UpdateBindingOnElementLoaded="<dependencyProperty>". But it is not working. 

The Datatemplate is working but AutoBindBehavior.UpdateBindingOnElementLoaded="<dependencyProperty>" is not setting anything to the dependencyProperty of the usercontrol.

 

Thanks in advance.

Stefan
Telerik team
 answered on 04 Jul 2018
1 answer
211 views

Hello!

I have a grid, one column is for edit different data:

 <telerik:GridViewDataColumn
                                                Width="*"
                                                CellTemplateSelector="{StaticResource TypeCellTemplateSelector}"
                                                DataMemberBinding="{Binding Value}"
                                                Header="Value" />

TypeCellTemplateSelector chooses DataTemplate:

 <templateSelect:SettingCellTemplateSelector.ComboBoxTemplate>
                    <DataTemplate>
                        <telerik:RadComboBox
                            DisplayMemberPath="Description"
                            ItemsSource="{Binding Value.EnumValue, Converter={StaticResource ValueToEnumConverter}}"
                            SelectedItem="{Binding Value.Value, Mode=TwoWay}"
                            SelectedValuePath="Value" />
                    </DataTemplate>
                </templateSelect:SettingCellTemplateSelector.ComboBoxTemplate>

ValueToEnumConverter reterns collection, 

BUT when it shows RadComboBox is empty

please can You help me?

Vladimir Stoyanov
Telerik team
 answered on 04 Jul 2018
7 answers
479 views
Hi ...
Am Totally new to this RadControls.......
I created a simple project noting is there in it ,i just added a RadRibbonBar Control to it and Build it then these errors camed
i cant understanding wat to do??
i followed this blog actually..
http://blogs.telerik.com/evanhutnick/posts/10-05-03/using_radribbonwindow_with_radribbonbar_for_wpf.aspx

Error   1   The tag 'RadRibbonWindow' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar'. Line 3 Position 5.

Error   2   The type 'telerikRibbon:RadRibbonWindow' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. 

Error   3   The type or namespace name 'RadRibbonWindow' does not exist in the namespace 'Telerik.Windows.Controls' (are you missing an assembly reference?)  

  Plz help me wat to do ???

Thanks in Advance..
Martin Ivanov
Telerik team
 answered on 04 Jul 2018
8 answers
156 views

In the program code, I create a Radpane and add it to a RadPaneGroup. The user can close the RadPane and open it in the RadRibbon Menu.

How can I realize that a RadPane is only opened once?


Harald
Top achievements
Rank 2
 answered on 03 Jul 2018
5 answers
213 views

Assuming the following view model. How do I bind the VisibleItems collection to the RadGridView? One-Way binding would be sufficient, as I would deactivate any filtering from the UI side. Performance is important.

public class ViewModel
{
    public ObservableCollection<Item> AllItems { get; set; }
    public ObservableCollection<Item> VisibleItems { get; set; }  
}
  
public class Item
{
    public string Name { get; set; }
}

​Cheers,

Jan

 

Ivan
Top achievements
Rank 1
 answered on 03 Jul 2018
5 answers
1.0K+ views
Hi,

I am usin RadNumericUpDown for editing of year, but i have problem with thousands separator. my problem is, that year is displayed as 2 014 (with whitespace), but I need 2014. Is there any way how to achieve that?

Thank you.
Martin Ivanov
Telerik team
 answered on 03 Jul 2018
1 answer
105 views

Hello,

I've written a custom selection behavior in order to support un-selecting points when clicking on an empty (non-Data Point) area of the chart. This behavior works pretty nicely. However, as soon as the chart is zoomed or panned in any direction, the click ends up selecting a point to the upper-left of where I actually clicked. The main algorithm of the click selection is below. Is there a specific pan/zoom offset that I'm supposed to take into account?

var rect = new Rect((myMouseButtonEventArgs.GetPosition(this.Chart as IInputElement), new Size(myHitTestMargin));
if(this.Chart is RadCartesianChart)
{
    var chart = this.Chart as RadCartesianChart;
    var points = chart.Series.SelectMany(s => s.HitTestDataPoints(rect)); //-- this returns the wrong set of points when zoomed or panned
    //-- Create a new arguments object with these points and invoke a custom event with those args
}

Seth
Top achievements
Rank 1
 answered on 02 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?