Telerik Forums
UI for WPF Forum
5 answers
384 views
Hi guys,

I have a user control which contains a RadPanelBar with 5 RadPanelBarItems and within each item is a grid (total 5 grids). The issue I am having is that that the grids take around 3-4 seconds to render. Each grid consists of about 10 rows, 16-17 columns, 1-2 groupings. The RadPanelItems are set to expanded by default. Each grid has a row loaded event handler attached and data is bound in XAML via CollectionViewSource objects. I've checked out the degraded performance section in the help file so I tried setting the Grid's Rows, RadPanelBar, RadPanelBarItems and GridView to fixed sizes. I'm binding to an ObservableCollection of BindingLists so not sure if this affects performance. Not using converters, cell templates or alternate row style.

I've used JetBrains dotTrace performance to determine which functions are taking the longest to load. I've managed to narrow it down to the MeasureOverride function from the GridViewCellsPanel class, specifically it goes down to the GenerateAndMeasureChildrenForRealizedColumns() -> GenerateChildren() functions. My question is that is there anyway I can do to reduce the load times of these grids? This app supercedes our old app which was written in C# WinForms, however loads instantaneously. I've attached a screenshot of my grids setup (the rest of the grids require me to scroll down the view).

Cheers,

Tim.
Dimitrina
Telerik team
 answered on 31 Jul 2015
1 answer
242 views

Hi,

 Hi i am trying to receive the MouseDown event from the local:Marker which I have created using a user control. The MouseDown event will be used to determine when to drag the marker, log other information as well as performing image change.
I have tested the local:Marker user control without using any telerik codes purely to find out if the MouseDown event works and the result was fine, the user control is able to bubble up the event.

However when i integrate the user control into the DataTemplate, I was not able to receive any form of MouseDown event. Any explaination or ways to over come this?

 

<telerik:RadMap x:Name="OsmMap"
Center="30.335,143.183"
GeoBoundsNW="85,-180"
GeoBoundsSE="-85,180"
ZoomLevel="10"
TouchDown="OnMap_TouchDown"
MouseDown="OnMap_OnMouseDown"
ZoomingFinished="OnMap_ZoomingFinished"
PanningFinished="OnMap_PanningFinished"
ZoomChanging="OnMap_ZoomChanging"
CenterChanging="OnMap_CenterChanging"
NavigationVisibility="Hidden"
CommandBarVisibility="Hidden"
ZoomBarPresetsVisibility="Hidden"
ZoomBarVisibility="Hidden"
MiniMapExpanderVisibility="Hidden"
MouseLocationIndicatorVisibility="Hidden" IsTextSearchCaseSensitive="True">
<telerik:VisualizationLayer x:Name="MarkerLoaded">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate>
<local:Marker telerik:MapLayer.Location="{Binding Location}"
Latitude="{Binding Latitude, Mode=OneWay}"
Longitude="{Binding Longitude, Mode=OneWay}"
CurrentState = "{Binding State, Mode=OneWay}"
MouseLeftButtonDown="MapWp_MouseDown"
MouseDown="MapWp_MouseDown"
PreviewMouseDown="MapWp_MouseDown"
TouchDown="MapWp_TouchDown">
<local:Marker/>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>
</telerik:RadMap>

 

Todor
Telerik team
 answered on 31 Jul 2015
1 answer
108 views

Is there the capability to generate and display slots when an appointment is started to be dragged?

I.e.  I have an appointment and I want to restrict that it can only be moved within a 2 day window either direction.  I can do the CanDrop/Drop in a CustomDragDropBehavior to do the actual restriction, however I'd like to visually show the user that they cannot move it 3 days.

Nasko
Telerik team
 answered on 31 Jul 2015
4 answers
521 views
I'm getting "Handler type not valid" when I set the Selected event in the RowStyle.
My XAML is:
<telerik:RadGridView.RowStyle>
  <Style TargetType="telerik:GridViewRow" >
     <EventSetter Event="Selected" Handler="pHandleItemSelected" />
  </Style>
</telerik:RadGridView.RowStyle>
And my event handler is:
Private Sub pHandleItemSelected(sender As System.Object, e As RoutedEventArgs)
End 

The documentation says that this is the type of handler. So what is the problem?





Dimitrina
Telerik team
 answered on 31 Jul 2015
4 answers
266 views

Hello,

I want to align some custom shapes vertically from my diagram.  I make a method called AlignShapes inside a class inheried from SerializableGraphSourceBase<Shape_VM, Link_VM>, and this method is invoked always when InternalItems Changed.

I have create my custom shape class, inherited from NodeViewModelBase and I give it 2 properties, Height and Width (double), that I binded these properties in XAML. Depend of the custom shape, height value is NaN for auto-size, then, when I get the value from custom shape, it return NaN, but the shape in the diagram has a specific height value that I do not know to get.

 How can I get Shape ActualHeight?

 

Thank you!

 

Mikel
Top achievements
Rank 1
 answered on 31 Jul 2015
1 answer
270 views

Hello,

in the download page, the offline CHM documentation is marked as Telerik_UI_for_WPF_ApiReference_2015_2_728.chm.

When the file is downloaded and opened, it says that the documentation is for the previous version: Assembly: Telerik.Windows.Controls.Input (in Telerik.Windows.Controls.Input.dll) Version: 2015.2.623.40 (2015.2.623.40)

Naturally, the new members are missing from the documentation...​

Dimitrina
Telerik team
 answered on 30 Jul 2015
2 answers
89 views

Hi,

How can I prevent selected items on treelistview child nodes?

 

Thank you

Mattia
Top achievements
Rank 2
 answered on 30 Jul 2015
1 answer
86 views
I'm using a GridView wich RowDetailsTemplate is another GridView, i need to iterate inner GridView rows... i'm iterating parent GridView rows this way

IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();

but how can i get the GridView inside the row details template 
Stefan
Telerik team
 answered on 30 Jul 2015
1 answer
507 views

Hi, 

How to get the number of pages of the PdfViewer document?
I am pasting (in case) a part of the code where I am importing the pdf document.

 

public void ShowPdfFile(RadPdfViewer rad, string documentPath)
{
    _radPdfViewer = rad;
    _documentPath = documentPath;
 
    try
    {
        var readAllBytes = File.ReadAllBytes(documentPath);
        var memoryStream = new MemoryStream(readAllBytes);
        rad.DocumentSource = new PdfDocumentSource(memoryStream);
    }
    catch (Exception e)
    {
    }
}

Is it possible to get also the number of pages of the RadRichTextBox document?​

BR,

Marta

Tanya
Telerik team
 answered on 30 Jul 2015
13 answers
1.1K+ views
Do you guys have a sample solution that does the filter on the Tree Generically. I have searched and all the examples are hard coded to filter couple of levels but they don't work if the tree has multiple levels.

Could you please help me with a solution for this? I have tried using CollectionViewSource, but not able to filter below the Root level I am able to filter only at the top level. 

Lets for example I have this Tree - got this from one of your examples. 

Animal
  Dog
  Cat
Fish
   Fresh Water
       Roach
       Bream
    Salt Water
        Skate
              SkateChild
        Soul


In this example, If I type  "d" , I should get the following result.
Animal
    Dog
Fish
    Salt Water 
         Skate
              SkateChild

Please let me know if you can help me with a solution that would work for n level of nodes. 

This is highly critical for us and any help on this is really appreciated. 



   



Petar Mladenov
Telerik team
 answered on 30 Jul 2015
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?