Telerik Forums
UI for WPF Forum
1 answer
100 views
Hello!

We have a scripting solution, which generates content for diagrams. The generated diagram content is published to a view model, which is bound to a RadDiagram component that is opened inside a docked RadPane by the script. The purpose of the script is to generate a possibly large number of diagrams, and then export each diagram to a file. What happens upon script execution is that each generated diagram is correctly opened in a docked RadPane, but the ExportToFile -method only works for the diagram that is created as the last one, ie the one that exists on the last opened RadPane, ie the only one that is actually visible. All other diagrams are generated as empty files.

In the script, the export command is invoked immediately after the RadDiagram has been shown, and specifically (hopefully) before the next RadDiagram (that covers the previous one) is being generated, so the diagram to be exported should be visible when the export command is invoked.

I found other threads having to do with the diagram control not being part of the visual tree, and this may be a related issue.

Help appreciated,

Kim Johnsson
Petar Mladenov
Telerik team
 answered on 20 Mar 2015
9 answers
852 views
Hey there,

I'm replacing your old Chart component with the new ChartView components. One of them is a pie chart and when I started replacing it a question appeared: How can I format the Label (I know of LabelFormat, but what are my options?). I have also found this site here (http://www.telerik.com/help/wpf/radchartview-series-pieseries.html) but the mentioned LabelTemplate is no longer there. I just want to give the Chart a ItemsSource where each object contains a count and a label, so that I can bind the Chart to it. I do not want to specify each datapoint in code, as you did in all your examples. I'm looking for a way to do this via databinding. Could you please provide an example of this? Perhaps you could extend the WPF Demos or the documentation too.

Best Regards,
Peter
Martin Ivanov
Telerik team
 answered on 20 Mar 2015
5 answers
98 views
I am using UI for WPF 2014.1.0224.40.

I tried to install the extension on my VS 2013 Premium to enable coded ui support. But when I click Record button on Test Builder, it keeps popping up "The following package for Coded UI is in an inconsistent state: ..."
Geri
Telerik team
 answered on 20 Mar 2015
2 answers
165 views
Hello,

I am using a PropertyGrid control but I need it to be very small, I set its FontSize property to 9 and I tried to change the Height property of the PropertyGridField by using a style:

<Style TargetType="telerik:PropertyGridField">
    Setter Property="Height" Value="18" />
</Style>

When I do that, the controls within the PropertyGridField don't adjust and they look kind of odd. I am attaching an image showing the result.

Is there a way to accomplish what I am trying to do?

Thanks in advance,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 19 Mar 2015
3 answers
438 views
I am looking for new ways to improve the load performance of the RadGridView control.
I already had a look at the tips from your site, and have followed many of them while others do not apply as we have some special requirements which I could not achieve using your default styles.

I found that reducing the number of FrameworkElements in the Grid greatly improves the loading performance. Using Snoop, I found that we had nearly 20000(!) FrameworkElements on a full-page GridView (with row-virtualization enabled, as we found that column-virtualization severely reduced the horizontal scrolling performance). After doing some optimizations, I was able to reduce the number of elements to now 5200, reducing the loading time from more than 5 seconds to 1.5 seconds (on a fast development PC - it could still be much slower on a user PC).

One big impact factor is the GridViewCell template. If you have a look at the template (in our case the VisualStudio2013 version), it has 174 lines of code and ~12 FrameworkElements! By creating my own template (specifically for WPF, using triggers), I was able to reduce it to 32 lines of code and 2 FrameworkElements (1 border for cell separation + 1 ContentPresenter), maintaining the same look as before (maybe not every single behavior is reproduced, but the ones that we use). This single optimization leads to a reduction of loading time by ~1.4 seconds!

Now I would like to further reduce the number of elements. One Idea was to merge the GridViewCell with the border and the ContentPresenter - having 1 element instead of 3. The next step would be to implement some kind of "cell renderer" to draw simple cell templates (like the TextBlock) in the OnRender event, saving one (or more) further elements per cell. To achieve this, I have to derive from GridViewCell(Base).

However, there is one problem: While the CreateItem method in the RadGridView is protected (so I could create a derived GridViewRow), the CreateItem method in the GridViewRow is internal, effectively stopping me from creating my own implementation of GridViewCell. I am wondering why it was decided to do it this way? I see that you are accessing the method from outside the row, so protected would not be an option. But what about "protected internal"? Changing it to this should not break an usage - but allows to greatly improve usability of the class.

Alex
Ivan Ivanov
Telerik team
 answered on 19 Mar 2015
5 answers
171 views
Hi,

I work creating at runtime a big report (250/300 pages). Any page contains 2/3 charts.
All works good with good performances.

Now, if I save the report as PDF the application freezes for a lot of minutes waiting the end of process (and it consumes >3Gb memory).

Is possible to show a Progress Bar with saving info and progress (and reduce the memory consuption)?

Thanks,
marc.
Petya
Telerik team
 answered on 19 Mar 2015
3 answers
189 views
Hi,
How can i open the filtering control popup for a given column code behind?

For example,
private void ShowFilteringControl(GridViewDataColumn column)
{
    myFilteringControl = new ????;
    myFilteringControl.Show();
}

or, something like that?

Thanks.
Dimitrina
Telerik team
 answered on 19 Mar 2015
5 answers
192 views
Hi guys,
My requirements are to load an image as a provider but with JPW mapping details. 
For example:

0.0000478933
0
0
-0.0000313467
44.6320800
48.8499400


I thought about using LocationRect but it is unclear where the parameters in the FILE should be place in the method call. 
Can you please post an example of JPW with image as provider? 

Thanks,
Max.
 
Martin Ivanov
Telerik team
 answered on 19 Mar 2015
1 answer
223 views
I need to style a RadStacked100DataBar similar to the attached picture, or I need to use a different control.  Do you guys have an example of the templates used for the RadStacked100DataBar and how best to re-template them to put a label in the center of each "section". 

Thank You
Paul
Evgenia
Telerik team
 answered on 19 Mar 2015
2 answers
166 views
Hi, I have a problem with candlesticks in CandlestickSeries. They start overlapping over each other after zomming out.
What property is responsible for gaps between candles?

Changing the MinWidth like this doesn't help:
                  <telerik:CandlestickSeries.DefaultVisualStyle>
                        <Style TargetType="telerik:Candlestick">
                            <Setter Property="MinWidth"  Value="1"/>
                        </Style>
                    </telerik:CandlestickSeries.DefaultVisualStyle>

Thanks
Denis
Denis
Top achievements
Rank 1
 answered on 19 Mar 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
VirtualKeyboard
HighlightTextBlock
Security
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?