Telerik Forums
UI for WPF Forum
0 answers
248 views

Hi, I have a RadTabControl with 5 tabs and one RadGridView on each tab.

When I switch the tab  it takes1-2 seconds to show the grid on first time. After that, the tab switch is fast and the grid is shown accordingly.

I configured row and column virtualization, set widh and height to all the elements and followed your Tip and Tricks guide.

I was wondering how can I speed up the render on first time or, force the rendering on application startup.

If the grid is draw on background, I suppose that the first time I will switch a tab, it will be faster.

Then I can move the code to an attached property called RenderOnStartup.

 

Thank you.

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 updated question on 10 Jan 2023
2 answers
172 views

I have a MapPinPoint, and I want to insert it inside an Ellipse dynamically

How can this be done?

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 08 Jan 2023
1 answer
124 views
I have found what I believe is a bug in the PDF Processing library in which the resulting PDF does not "match" the contents of the PDFs imported into it. I have created a very simple example in which I attempt to import a single PDF document into another PDF using the PdfStreamWriter class and associated classes. I also tried using the PdfFormatProvider and receive the same results.

A few things to note regarding the original PDF being used: it was generated from a Telerik Report using the ReportProcessor's RenderReport method. So, this PDF was created entirely through Telerik libraries and I would expect that it should be able to be imported into another PDF document unaltered using the Telerik PDF Processing library.

But, in the example provided, if you click the First button, the application will open the PDF being used so you can see what it should look like. Notice the table on the first page is completely filled in. Clicking the second button attempts to import the original source PDF into a temporary file and displays that result: notice in this case, the table on the first page is missing some of the data that appears in the original.

As I have tried both the PdfStreamWriter and PdfFormatProvider classes with the exact same results, I am at a loss as to what is wrong. I would expect that the results should be the exact same since everything was created using Telerik libraries...
Martin
Telerik team
 answered on 06 Jan 2023
1 answer
102 views

Hi, 

I can't find events such as cellClick cellDoubleClick in GridView for wpf, is there anyway subcribing them WinForm style? thanks

 

PS: I think its better if I discribe more details

1.I'm work on  a file managing system, these is a GridView displaying all the files

2.different context menu should appear depending on where right click happens,  so I have to know if the user right click on a row or on a empty space. But I can't find events like cellClick, there is a event named MouseDown in RadGridView but I don't know what's under the cursor.

Martin Ivanov
Telerik team
 answered on 05 Jan 2023
1 answer
142 views

Hi everybody,

I'd like to  to display the correlation between filters in FilterControl. I managed it by path and resources and customizing it although I can't make it more clear since some properties in FilterViewModel are internal and don't have access to children and parent in some scenarios.

The picture is attached

Is there any smooth solution to do that?

Thanks

Martin Ivanov
Telerik team
 answered on 04 Jan 2023
1 answer
102 views

I am developing HMI Tool using Layoutcontrol.

I added Control(Button) to LayoutControl using LayoutControlToolBoxView.

What should I do if I want to receive the button's Event?

Stenly
Telerik team
 answered on 30 Dec 2022
1 answer
196 views

Hello,

I am working on a project based application, like visual studio, that requires the pane to be completely removed from working memory to avoid "Out of Memory" errors. 

The problem is that the PaneViewModel stores the content (in my case a UserControl), as intended, but when that PaneViewModel instance is removed from the MainWindowViewModel.Panes Collection, the memory (in diagnostic tools) shows it is not being reclaimed.

My assumption is that GC is not collecting the removed PaneViewModel because some how the UserControl or Pane is still referenced somewhere by the DocumentHost or RadDocking.

I've attached a modified version of the VisualStudioDocking example project that recreates/demonstrates the behavior I've described above. During runtime, please add new documents and close them at least 10 times to notice how big the difference is in memory over time. 

 

Regards,

Patrick

Martin Ivanov
Telerik team
 answered on 28 Dec 2022
1 answer
115 views

Hello,

I followed setting up a RadGridView using a RadEntityFrameworkCoreDataSource using the MVVM approach outlined here.

This worked as expected for loading the data just fine. However, when I enabled the grid's CanUserInsertRow parameter, and try to add a row via the grid, I immediately get an exception from the AddingNewDataItem event stating that it cannot track the Entity of type <whatever> due to the primary key property being null. This would make sense to me if it were trying to commit the new row to the data source, but that would be after the user has a chance to enter the field information.

I understand there's an opportunity to set default values for these entities, however I wanted the user to input information themselves first, instead of setting up a valid row.

Previously, I have used DataTables/Views as a grid's item source with no problems, was able to capture exceptions thrown by the database in the UI itself and display them to the user.

Is this approach simply not suited for the Entity Framework data source? Or am I not familiar enough with this and MVVM, and should get myself caught up before continuing on?

Thanks for any help or suggestions,

Lee

 

Stenly
Telerik team
 answered on 27 Dec 2022
1 answer
153 views

I'm having a problem with the radschedulers resources.

 

they are displayed verticaly. which for me is the most unnatural default setting for a labeling of a row. not many people read from down to up.
most read from left to right. so i would strongly suggest to set this by default on hoizontaly.

anyhow. as you see in the image my resources are written verticaly and i simply want to switch them to horizontaly.

and i dont want to make a custom resource class or custom template for that. it have to be possible without that.

so pls do not just link me this: WPF ScheduleView - Templating the GroupHeaders - Telerik UI for WPF

i
've found Horizontal grouping names and max height in UI for Silverlight | Telerik Forums but its also based on custom template for group headers. i think it would be a total overkill just for the 90degree switch make a custom template.

 

thanks for the help

Stenly
Telerik team
 answered on 26 Dec 2022
2 answers
152 views

var frameworkElements = KmlReader.Read(memoryStream);

I have a list of the elements (which in the initial stage are not displayed on the map) and I want to have a BusyIndicator until loading.

That is, until I performed the KmlReader.Read(memoryStream), the list in the picture will be a square without data, so I want a BusyIndicator

But the KmlReader works on the UI thread, so this cannot be done.

Is there a way to overcome this?

Is there a way to make this line in the background thread?

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated answer on 26 Dec 2022
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?