Telerik Forums
UI for WPF Forum
9 answers
916 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
117 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
189 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
490 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
197 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
221 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
236 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
258 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
195 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
3 answers
142 views
Hi,

After updating the version mentioned on the title, the project started to throw the following exception:

System.NullReferenceException was unhandled
  _HResult=-2147467261
  _message=Object reference not set to an instance of an object.
  HResult=-2147467261
  IsTransient=false
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Navigation
  StackTrace:
       at Telerik.Windows.Automation.Peers.RadRadialMenuItemAutomationPeer.GetChildrenCore()
       at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
       at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
       at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
       at System.Windows.ContextLayoutManager.fireAutomationEvents()
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.UIElement.UpdateLayout()
       at System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  InnerException: 

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