Telerik Forums
UI for WPF Forum
1 answer
133 views

[ Originally posted on the "Chart" forum but actually this issue happens with ChartView ] 

I am still in the process of evaluating the Telerik WPF package. Everything was OK with the Chart component until I found this problem.
 When loaded with plenty of data, the chart crashes with the following exception :
Decimal too big or too small
   at System.Decimal..ctor(Double value)
   at System.Decimal.op_Explicit(Double value)
   at Telerik.Charting.LinearAxisModel.<GenerateTicks>d__0.MoveNext()
   at Telerik.Charting.AxisModel.<Delay>d__1e`1.MoveNext()
   at Telerik.Charting.AxisModel.TryBuildNonOverlappingTicksAndLabels(Boolean buildLabels, ValueRange`1 zoomRange, Boolean allowOverlappingLabels)
   at Telerik.Charting.NumericalAxisModel.ChooseActualRange()
   at Telerik.Charting.NumericalAxisModel.BeginMeasureCore(RadSize availableSize)
   at Telerik.Charting.AxisModel.MeasureCore(RadSize availableSize)
   at Telerik.Charting.AxisModel.Measure(RadSize availableSize)
   at Telerik.Charting.NumericalAxisModel.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.AxisStack.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.PrepareAxesStacks(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.ArrangeAxes(RadRect availableRect)
   at Telerik.Charting.ChartAreaModelWithAxes.UpdateAndArrangeAxes(SeriesByAxesTuple seriesByAxes, RadRect availableRect, RadRect& seriesRect)
   at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect)
   at Telerik.Charting.ChartNode.Arrange(RadRect rect, Boolean shouldRoundLayout)
   at Telerik.Charting.ChartAreaModel.Arrange()
   at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateChartArea()
   at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI()
   at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
Known problem? Any workaround?

Petar Marchev
Telerik team
 answered on 05 Oct 2015
1 answer
103 views

Hi,

How can I add additional controls for certain fields in a PropertyGrid? Similar to Visual Studio. See attached image. 

 â€‹

Yoan
Telerik team
 answered on 05 Oct 2015
1 answer
1.1K+ views

I am using Telerik WPF Controls 2014.2.729.40.

 

I have enabled the multi-rows selection in the radgridview by setting SelectionMode="Extended". 

<tk:RadGridView ... SelectionMode="Extended">

The user can select all or select multiple rows in the grid. However, if the user clicks out of the radgridview. The selected rows appear as unselected until the radgridview regains the focus back.

 

Step 1: The user selected multiple rows in radgridview.The rows looked SELECTED.

Step 2: The user clicked outside of radgridview. The rows looked UN-SELECTED.

Step 3: The user clicked back in radgridview. The rows selected before appeared as ​SELECTED.

 

I want the selected rows stay SELECTED visually all the time no matter Telerik RadGridView losts focus or not.

Please let me know if there is any ways to achieve my goal. Any help is appreciated.​

Thanks!

Yoan
Telerik team
 answered on 05 Oct 2015
3 answers
120 views
I am using a DataSource and a DataForm with a DataTemplate in WPF. In principle it works.
DataSource:
<telerik:RadEntityFrameworkDataSource Name="AcademicTitleDataSource" QueryName="CatalogEntries">
  <telerik:RadEntityFrameworkDataSource.DbContext>
    <local:MyEntities x:Name="AcademicTitleContext" />
  </telerik:RadEntityFrameworkDataSource.DbContext>
</telerik:RadEntityFrameworkDataSource>
DataFormComboBoxField:
<telerik:DataFormComboBoxField x:Name="AcademicTitleComboBox" Grid.Column="0" Grid.Row="7" Label="Titel:"                             
                                ItemsSource="{Binding DataView, ElementName=AcademicTitleDataSource}"
                                DataMemberBinding="{Binding AcademicTitle}"
                                SelectedValuePath="ID"
                                DisplayMemberPath="EntryName" />
Now i want to display only certain items from the CatalogEntries wherw the CatalogID = 5. How can i filtering the Data?
Harald
Top achievements
Rank 2
 answered on 03 Oct 2015
4 answers
334 views

Is it possible to create a hierarchical tree list view from a flat list, much in the way you can with a TreeList ( http://docs.telerik.com/devtools/wpf/controls/radtreeview/how-to/bind-to-self-referencing-data.html ) ?

We have a data structure where the objects have the ids of their parents, and we would much rather bind to a flat list, than rebuild the hierarchy.

I had a look at the hierarchical grid view (http://docs.telerik.com/devtools/wpf/controls/radgridview/hierarchical-gridview/self-referencing-grid.html ), but that still seems to put children at the top level (as well as the child level).

 

Stefan
Telerik team
 answered on 02 Oct 2015
1 answer
371 views

I'm trying to disable property changed aggregation on all grids (the timer within it causes issues with Word when I host it in an add-in pane).

I've added a style as so:

<Style TargetType="telerik:RadGridView">
    <Setter Property="IsPropertyChangedAggregationEnabled" Value="False" />
</Style>

And I get this error:

The property "IsPropertyChangedAggregationEnabled" is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property "IsPropertyChangedAggregationEnabled".

I think I can see why.  The registration of this dependency property seems to be wrong. It includes a trailing space:

public static readonly DependencyProperty IsPropertyChangedAggregationEnabledProperty = DependencyProperty.Register("IsPropertyChangedAggregationEnabled ", typeof (bool), typeof (GridViewDataControl), new PropertyMetadata((object) true));

​Can someone verify this?  If it is the cause, it should be fixed!

 


​

Stefan
Telerik team
 answered on 02 Oct 2015
2 answers
221 views

Hello!

I have a problem with Layout in RadDiagram. While using this example after applying Layout() method to my diagram (Sample.jpg), arrangement of layers and connections between them became very strange. Examples of applying Tree-down and Tree-up layouts are in the files TreeDown.jpg and TreeUp.jpg respectively.

Is it possible to place layers applying Layout() method, according to their connection?  

Thank You!

Alex
Top achievements
Rank 1
 answered on 02 Oct 2015
1 answer
150 views

Hi, II have a RadListBox with an attached DragDropBehavior and a custom itemTemplate:

<telerik:RadListBox.ItemTemplate>
    <DataTemplate>
        <Grid>
            <TextBox Text="{Binding Name}" />
        </Grid>
    </DataTemplate>
</telerik:RadListBox.ItemTemplate>

Technically everything works as expected, apart of the fact that reordering elements via drag&drop is nearly impossible.

Replacing the TextBox with a TextBlock fixes the issue but, of course, is not a viable option: the "Name" property should be editable...

Any advice on this?

Nasko
Telerik team
 answered on 02 Oct 2015
3 answers
340 views
I want to use ContextMenu on the dates in RadCalendar so i can pick the dates and show ContextMenu using right-click, there is an issue that makes me able to right-click on header and somewhere else(but still in Calendar) and the ContextMenu also showed up. this is the code
<telerik:RadCalendar x:Name="calendar">
        <telerik:RadContextMenu.ContextMenu>
            <telerik:RadContextMenu Opened="RadContextMenu_Opened">
                <telerik:RadMenuItem Header="Copy" />
                <telerik:RadMenuItem Header="Paste" />
                <telerik:RadMenuItem Header="Cut" />
            </telerik:RadContextMenu>
        </telerik:RadContextMenu.ContextMenu>
    </telerik:RadCalendar>

 

private void RadContextMenu_Opened(object sender, RoutedEventArgs e)
    {
        var calendarButton = (sender as RadContextMenu).GetClickedElement<CalendarButton>();
        if (calendarButton != null)
        {
            var calendarButtonContent = calendarButton.Content as CalendarButtonContent;
            if (calendarButtonContent != null)
            {
                var clickedDate = calendarButtonContent.Date;
 
            }
        }
    }

i also want to do that on RadScheduleView so i can only use the ContextMenu on the empty slots or appointment.

Aldy
Top achievements
Rank 1
 answered on 02 Oct 2015
1 answer
184 views

Hi ,

I have a RadGridView, and add three GridViewCheckBoxColumn in it, I want every GridViewCheckBoxColumn have different GridViewCheckBox style(not in EditorStyle )  in â€‹view mode. But i don't know how to set it. I only know how to set a common style for all three  of GridViewCheckBoxColumn .

 

so ...can you tell me how to do it? thanks so much!

 

Petya
Telerik team
 answered on 02 Oct 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?