Telerik Forums
UI for WPF Forum
5 answers
217 views

I have a RadCartesianChart and want to register for ContextMenuOpening. When I do it in XAML my event handler gets called. If I do in code (e.g. MainWindow_Loaded: Chart.ContextMenuOpening += Chart_ContextMenuOpening) it is not called.


I got a small repro too.



Markus

Petar Marchev
Telerik team
 answered on 24 Dec 2013
1 answer
159 views
Here i have mentioned implementation of code. i created a custom control 'VSRadCartesianChart' and implemented some dependency control in  it and generate the X,Y axis and line series are dynamically.

i applied Zoom&Par bar visible to both axis and applied style that that it only visible when zoom & par when applied.(other wise in normal case, it does it show).

Also , I have implemented 'CartesianGrid' in it and applied Y axis line visibility.


problem which are facing:
1. setting which applied in cartesian grid is not shown. it doesn't apply any style in it. (see the attached image)
2. Y-axis zoombar is not shown. 
3. TargetType="chartView:PanZoomBar" style setting is not applied (controlling the visiblity of panzoombar based in property in viewmodel)


could you please give your feedback. it is urgent requirement.





<local:VSRadCartesianChart x:Name="Chart1"    Zoom="{Binding Zoom }" PanOffset="{Binding PanOffset}"  local:ChartViewDragDropBehaviour.IsEnabled="True" AllowDrop="True"   >
                               
 <local:VSRadCartesianChart.Resources>
                                    <Style TargetType="chartView:PanZoomBar">
                                        <Setter Property="Visibility" Value="{Binding Path=IsZoomBarVisible Converter={StaticResource BoolToCollapsedConverter} }" />
                                    </Style>

<Style x:Key="BorderStyle" TargetType="Border">
                                        <Setter Property="Background" Value="#1B9DDE" />
                                    </Style>
  </local:VSRadCartesianChart.Resources>
---
---
---
<local:VSRadCartesianChart.Grid >
                                    <telerik:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" >
                                        <telerik:CartesianChartGrid.YStripeBrushes>
                                        <SolidColorBrush Color="#FFD7D7D7"  Opacity="0.3" />
                                        <SolidColorBrush Color="Transparent" />
                                        </telerik:CartesianChartGrid.YStripeBrushes>
                                    </telerik:CartesianChartGrid>
                                </local:VSRadCartesianChart.Grid>

                                <local:VSRadCartesianChart.LinearSeriesSource>
                                        <Binding Path="ChartList" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"  />
                                </local:VSRadCartesianChart.LinearSeriesSource>
                                 <local:VSRadCartesianChart.Behaviors >
                                    <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both" >
                                    </telerik:ChartPanAndZoomBehavior>
                                </local:VSRadCartesianChart.Behaviors>
       </local:VSRadCartesianChart>
Peshito
Telerik team
 answered on 23 Dec 2013
4 answers
189 views
Hi,

i have a performance problem with "Special Slots" in "schedule view". In my case I have n Groups, created dynamically out of a database. To see a special slot on grouping, I have to create each special slot for each group! In my case I have 960 Slots. Now the performance is not good on changing to moth view and on loading the application.

Is it possible to load the Slot once and use it for each group?

Thanks
Best Regards
Rene
Tim
Top achievements
Rank 1
 answered on 23 Dec 2013
1 answer
138 views
Hi,

I need a "red line" that symbolise where my draged row will insert. The "Before / After" tooltip is hard to read in a grid with lots of rows/cells.

Any good C# examples for this?

/Ken
Kennet
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
84 views
Scenario:  I have a RadGridView with "Click here to add new item" enabled.

If I click on a row and then hit 'Enter', the selection navigates to the next row as expected.

If I click on "Click here to add new item" then a new row is created and focus is given to the first cell, as expected.  If I enter some data and press 'Enter' the data is committed but then it appears that the keyboard event is passed along to the parent control.  In my case, it dismisses the dialog.



Maya
Telerik team
 answered on 23 Dec 2013
1 answer
175 views
Hi, I'm using editable GridView cells. I see that when I multi select several GridView rows from the top to bottom direction, the CurrentItem foucs moves to the bottommost cell and when I directly start to type something, the bottommost cell is edited. What I want to do is when I select cells from the top to bottom direction and start editing, the topmost cell gets the CurrentItem focus and starts to be edited. I tried to solve this by setting the CurrentItem property, but it was readonly. Is there any way I can acheive this? (I have to multi select cells first for some reasons, not only just editing cells!)
Dimitrina
Telerik team
 answered on 23 Dec 2013
7 answers
124 views
We have a single Property grid with around 83 properties. When the item on the property grid changes, it takes almost 400 ms to just set the new item to the property grid. 

I tried a test application and saw that with the number of proeprties increasing, the performance of the property grid gradually deteriorates.
Attached is a screenshot of the performance profile taken. Please help analyze and suggest how this can be improved. 

Please note: IsVirtualizing and EnableEditorCaching are enabled.
Maya
Telerik team
 answered on 23 Dec 2013
1 answer
323 views

I'm hosting an EDrawSoft OfficeOCX in a WindowsFormsHost. (MVVM, C#, .Net 4.0) The control fills a tab in a tab control in a Telerik RadDocPanel.

Everything is working very well, until someone tries to open a damaged Office document which throws an error and seems to corrupt the OfficeOCX control.

I've found that re-initializeing the OfficeOCX control gets it working again, except that the WindowsFormsHost no longer fills the tab. Simply resizing the application fixes it up again.

I've tried calling Refresh on the OfficeOCX control which didn't work, but it's probably not the control that needs to be refreshed.

The control is being manipulated in a PropertyChangedCallback for a dependency property. MSDN suggests calling WindowsFormsHost.InvalidateVisual() but that didn't work either.

My next attempt will be to try to call a method on the Telerik RadDockPanel to force the repaint...however I can't figure out how.


I have a resize event in the usercontrol that does nothing but allows me to set a break in it. When I resize the app, which fixes the docking problem, this event gets fired and the call stack shows it being called (through some external code) from:

Telerik.Windows.Controls.dll!Telerik.Windows.Controls.RadDockPanel.ArrangeOverride(System.Windows.Size finalSize)

Is there a way I can force this to happen from code?

Thanks
Konstantina
Telerik team
 answered on 23 Dec 2013
1 answer
161 views
I was wondering if it is possible to do something the following with the GanttView:

We have task A, B, C & D. They are all linked to each other in chronological order (A->B->C->D). When I move task B, is it possible to let Task C & D move as well so the time between them remains the same? So when i have moved B 3 days in the future, C & D are also moved for 3 days.

Kind Regards
Thomas
Ventzi
Telerik team
 answered on 21 Dec 2013
1 answer
200 views
Hi, I'm using a RadRibbonWindow as my main applictiaon window, and several RadWindows for some dialogs.
When I run the application and open a modal or modeless RadWindow from the main window and move focus to other applications or the desktop and then come back to my application, the focus goes to the main window and not the modal or modeless dialog. The floating dialog always hides behind the main window. How can I fix this?
Thanks!
Konstantina
Telerik team
 answered on 21 Dec 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?