Telerik Forums
UI for WPF Forum
3 answers
378 views

We have VisualizationLayer which has ~2400 item that make moving around the map is very slow 
he is code example the resource is DrawingBrush with 2 GeometryDrawing one is arrow another is circle with stroke and fill in different colors. When the zoom level is low (you see more of the map) the map works very slowly. Can you tell me some solution for that?

 

01.<telerik:VisualizationLayer ItemsSource="{Binding items}">
02.                   <telerik:VisualizationLayer.ItemTemplate>
03.                       <DataTemplate>
04.                           <Rectangle Fill="{DynamicResource resource}"
05.                                      telerik:MapLayer.Location="{Binding Location}"
06.                                      telerik:MapLayer.ZoomRange="{Binding ZoomRange}"
07.                                      telerik:MapLayer.BaseZoomLevel="{Binding BaseZoomLevel}"                                        
08.                                      ToolTip="{Binding FormattedDate}" Width="16" Height="16" RenderTransformOrigin="0,0">
09.                               <Rectangle.RenderTransform>
10.                                   <TransformGroup>
11.                                       <TranslateTransform X="-8" Y="-8"/>
12.                                       <RotateTransform CenterX="0" CenterY="0" Angle="{Binding Heading}" />
13.                                   </TransformGroup>
14.                               </Rectangle.RenderTransform>
15.                           </Rectangle>
16.                       </DataTemplate>
17.                   </telerik:VisualizationLayer.ItemTemplate>
18.               </telerik:VisualizationLayer>
Petar Mladenov
Telerik team
 answered on 19 Mar 2019
4 answers
312 views
Hello,

i've got a problem with a self referencing hierarchy in a gridview.
I've got a List1 that i want to display in a gridview. List 1 has a Property List2 which contains elements of class2 --> (List<class2>).
For this case i used the HierarchyChildTemplate and it works fine.
my problem is that my List2 structure looks like this

id  parentId  name
1                   a
2       1          b
3       1          c
4       2          d
5       4          e

it is an n-level self referencing hierarchy. so i decided to do it similar to this example:
http://www.telerik.com/help/wpf/gridview-self-referencing-grid.html

myproblem is that the first 2 levels (handled by the HierarchyChildTemplate ) are working fine and the 3 to n level Elements (handled by the self referencing hierarchy example) are not displayed in the grid



Code:


<telerik:RadGridView x:Name="RadTreeListView1"
                AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding List1, Mode=TwoWay}"
                                 CanUserResizeColumns="True" CanUserFreezeColumns="False"
                                 RowLoaded="RadTreeListView1_RowLoaded">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                 <telerik:GridViewDataColumn
 
                        ...some Columndefinitions            />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView x:Name="StrukturListe" IsFilteringAllowed="False"
                                         CanUserSortColumns="False"
                                         CanUserFreezeColumns="False"
                                         AutoGenerateColumns="False" 
                                         ItemsSource="{Binding List2,Mode=TwoWay}">
                        <telerik:RadGridView.ChildTableDefinitions>
                            <telerik:GridViewTableDefinition>
                                <telerik:GridViewTableDefinition.Relation>
                                    <telerik:TableRelation IsSelfReference="True">
                                        <telerik:TableRelation.FieldNames>
                                            <telerik:FieldDescriptorNamePair
                                                ParentFieldDescriptorName="Id"
                                                ChildFieldDescriptorName="ParentId"/>
                                        </telerik:TableRelation.FieldNames>
                                    </telerik:TableRelation>
                                </telerik:GridViewTableDefinition.Relation>
                            </telerik:GridViewTableDefinition>
                        </telerik:RadGridView.ChildTableDefinitions>
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn
 
                        ...some Columndefinitions            />
 
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>


myClasshierarchy lools like this:

class1
    prop a
    prop b
    List<class2>    <-- 1 level deep

class2
    prop 1
    prop 2
    int ID
    int Parent

Dilyan Traykov
Telerik team
 answered on 19 Mar 2019
1 answer
124 views

Hello! I need to have a TabControl system where the tabs for the panes have 3 different states to them. 
- Inactive: Not selected or active

- Selected:  The tab is selected, but isn't the active pane

- Active: The tab is selected, but is also active

I want to be able to shift click multiple tabs to make them selected.  Then whatever pane has the focus, that would be the Active pane.  The reason for this is that I have a filter function that would filter that data this provided to the panes.  The user needs to be able to selected multiple tabs that would apply the filters to those selective and active panes. 

 

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Mar 2019
1 answer
891 views

Hi, 

I was wondering if there was any way to prevent double clicking on button? 

Currently, when my user double-click on any button in my RibbonView, it tries and starts the process twice, and depending of the process, crashes the app. Is there a way to disable the button until the action is done being executed? 

<telerik:RadRibbonButton Command="{Binding AddTravelClaimCommand}" Text="{DynamicResource TravelClaim.NewButton}" LargeImage="{StaticResource icon_addEvent}" Visibility="{Binding CanAddTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" ClickMode="Press" />
                    <telerik:RadRibbonButton Command="{Binding ViewTravelClaimCommand}" Content="{DynamicResource TravelClaim.ViewButton}" LargeImage="{StaticResource icon_preview}" Visibility="{Binding CanViewTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding EditTravelClaimCommand}" Text="{DynamicResource TravelClaim.EditButton}" LargeImage="{StaticResource icon_edit}" Visibility="{Binding CanEditTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding ViewTravelClaimHistoryCommand}" Content="{DynamicResource TravelClaim.ViewHistoryButton}" LargeImage="{StaticResource icon_history}" Visibility="{Binding CanViewTravelClaimHistory, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding WithdrawTravelClaimCommand}" Content="{DynamicResource TravelClaim.WithdrawButton}" LargeImage="{StaticResource icon_withdraw}"  Visibility="{Binding CanWithdrawTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                    <telerik:RadRibbonButton Command="{Binding DeleteTravelClaimCommand}" Content="{DynamicResource TravelClaim.DeleteButton}" LargeImage="{StaticResource icon_delete}" Visibility="{Binding CanDeleteTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding CancelTravelClaimCommand}" Content="{DynamicResource TravelClaim.CancelButton}" LargeImage="{StaticResource icon_cancel}" Visibility="{Binding CanCancelTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />

 

Thank you so much, 

Vladimir Stoyanov
Telerik team
 answered on 19 Mar 2019
2 answers
246 views

Hi guys,

I am having some issues with binding the DataFormComboBoxField.  I am setting the item source of the comboboxfield to a collection that is not stored in the CurrentItem of the RadDataForm.  I wish to update the EditableModel with the JobID from the selected drop down value.  Also the Combobox should have the item selected base on the item set in the EditableModel on load.  Any help would be appreciated.  

 

VIEW MODEL

    public class EditableViewModel : ReactiveObject
    {
        public EditableModel SelectedEntity { get; set; }
        public List<JobModel> Collection { get; set; }
    }

 

Models

    public class EditableModel
    {

        public string Name { get; set; }
        public int JobId { get; set; }
    }

    public class JobModel
    {
        public string Name { get; set; }
        public int Id { get; set; }
    }

VIEW

<reactiveui:ReactiveWindow 
    x:Class="TestWpfApplication.MainWindow"
    x:TypeArguments="test:EditableViewModel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:test="clr-namespace:TestWpfApplication.ViewModels"
    xmlns:reactiveui="http://reactiveui.net"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Title="NuGet Browser" Height="450" Width="800"
    mc:Ignorable="d">
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="MyTemplate">
                <StackPanel>
                    <telerik:DataFormDataField  Label="First Name" DataMemberBinding="{Binding Path=Name, Mode=TwoWay}"  />
                    <telerik:DataFormComboBoxField  Label="Job" SelectedValuePath="Id" DisplayMemberPath="Name" DataMemberBinding="{Binding JobId, Mode=TwoWay}" ItemsSource="{Binding Jobs, Mode=TwoWay}"/>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <telerik:RadDataForm AutoGenerateFields="False" x:Name="RadDataForm" EditTemplate="{StaticResource MyTemplate}"/>
    </Grid>
</reactiveui:ReactiveWindow>

 

Vladimir Stoyanov
Telerik team
 answered on 19 Mar 2019
9 answers
638 views

Hi,

 

Trying to see what can I change to improve performance for RadDiagram.

 

1- The goal is to show 2000+ hexagon.

2- Every hexagon has the same size, but it's color content might change. Every hexagon has a binding to a Viewmodel item.

3- Hexagons are grouped inside containers. The containers are pretty much transparent, except for its header.

4- There are no connectors and for now at least, users can't drag/delete/add items.

5- The diagram is contained inside a RadDocking and the docking is inside a regular WPF Tab.

When testing with 300 items there is a 4 second wait after the UI is loaded until the UI can be interacted with.

 

I am wondering, giving my scenario, what can I do to improve performance, giving that after loading the nodes don't change position/size.

 

 

 

Tulio
Top achievements
Rank 1
 answered on 19 Mar 2019
1 answer
154 views

hello i have large List of Points with WKT Geometry.How can i load fast,display and selected items?

I tried AsyncSqlGeospatialDataReader, but it is very slow.I cant move map until loads all points....

I display point by itemtemplate <ellipse ...

How can i load faster, and can selectionItems?

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Mar 2019
5 answers
199 views

Hi!

 

I have a diagram defined inside a docking window that can be hidden.

The NavigationPane works fine updating when there are changes to my diagram. However when I hide the Docking panel that contains the diagram (hiding the diagram), the navigation pane doesn't get updated anymore.

 

Is there a way to workaround that?

 

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Mar 2019
3 answers
303 views

Hi,

I've assigned a command to a RadHyperlinkButton. The CanExecute handler is being invoked as expected, but clicking on the RadHyperlinkButton does not invoke the Executed handler. Is this by design? And if so, is it possible to force the execution upon click?

Best regards

Michael

Vladimir Stoyanov
Telerik team
 answered on 18 Mar 2019
1 answer
103 views

Is there any possibility of aligning the zeros of the axes, in a graph that contains more than one axis?

In the iamgen you can observe a graph with two axes where the zero of the axes is at different heights. The idea would be to adjust them to the same height. Thank you.

Martin Ivanov
Telerik team
 answered on 18 Mar 2019
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?