Telerik Forums
UI for WPF Forum
1 answer
178 views
I've read the documentation on sampling but it's still not clear to me exactly what RadChart is doing. For example I have a Scatter chart with approximately 3000 data points. The data points are spread, fairly evenly, across approximately 6 hours of time along the X axis. In other words, data is not disproportionately bunched anywhere along the X axis. It's pretty evenly spread out. The Y axis values range from approximately 60 to 66, with no particular pattern. Can you tell me exactly how RadChart would sample this data, assuming I select a sampling value of say 300 (1/10 of the data). I have not specified the method of sampling (average, min, max etc.), because I don't really know which would be best in my case.

Thank you.
Yavor
Telerik team
 answered on 20 Jan 2012
1 answer
183 views
Hi telerik,

I wish to abuse the chart.
Since ChartLegend is a separate object referenced by the RadChart, I thought I could re-use the legend object to obtain a single legend for several RadCharts. This way I wanted to achieve the interactivity effects of hovering over graphs / legends and seeing the highlight in the other.

My starting point was four charts, where the first three were real plots (with hidden legend) where as the last was a RadChart with hidden ChartArea. That worked well, but with no interactivity.

If I create the ChartLegend object first and reference it from the remaining three RadCharts, I do get the legend headers in the ChartLegend, but still no interactivity.

Is this even possible? Or should I just 'accept' the separation and 'manually' handle the highlighting? Can you send me in a direction where I might get lucky?

Thanks,

Anders, Denmark
Petar Marchev
Telerik team
 answered on 20 Jan 2012
3 answers
204 views
Hi,

Just wondering, can I modify background color of a disable GridViewCell instead of grey can I change it to other color. I tried using data trigger and directly set background color to white however it's not working. Is there a way to achieve this?

Type Description
Air  Air
Fire  Fire
Land  
Water  Water
Land  

Regards,
Howell
Maya
Telerik team
 answered on 20 Jan 2012
0 answers
95 views


Hello,

I have difficulty in understanding and setting up my calendar appointments.
I am developing an application with a table below (in T_RendeVous SQLSERVER) to RDV and WPF.

1 / I can not load my items in the database for display in the calendar

2 / I can not find the form for adding / modifying / deleting appointment. and save them in my database.

I want to know, what paramete can i loading from schedule ?

Thank you for making me a return.
Adje
Top achievements
Rank 1
 asked on 19 Jan 2012
3 answers
191 views
Telerik RadControls for WPF Q1 2011 SP1

I have a grid hierarchy, I want to Export to Exel.
I used this code, but I don't have anything of the Grid Hierarchy in Excel

SaveFileDialog dialog = new SaveFileDialog();
           dialog.DefaultExt = extension;
           dialog.Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", "xls", "Excel");
           dialog.FilterIndex = 1;
           if (dialog.ShowDialog() == true)
           {
               using (Stream stream = dialog.OpenFile())
               {
                   GridViewExportOptions exportOptions = new GridViewExportOptions();
                   exportOptions.Format = format;
                   exportOptions.ShowColumnFooters = true;
                   exportOptions.ShowColumnHeaders = true;
                   exportOptions.ShowGroupFooters = true;
                   RadGridView1.Export(stream, exportOptions);
               }
           }

I read foros where the controls don't support this Export to Excel.
Please, really I need your help.


Dimitrina
Telerik team
 answered on 19 Jan 2012
2 answers
148 views
I have a radGridView, when the radGridView SelectionChanged event fires off, I need to set a combo to IsDropDownOpen = true;  

The issue is that the IsDropDownOpen property is being set but the combo will not remain dropped down when the grid selection is changed using a mouse click.

The combo will remain dropped down when the grid selection is changed using the keyboard.

Either selection method calls the same method to set the IsDropDownOpen property.

I am using the 2011 - Q3 version of the wpf controls.

Any Ideas?
flyingelvis
Top achievements
Rank 1
 answered on 19 Jan 2012
2 answers
125 views
My terminology is probably off here but what I need to do is to be able to make a pane that is currently minimized (not pinned and thus not visible except for the tab header) active (not pinned but it's contents now visible just as though I had moused over the tab). What I have is something kind of like the output tab of visual studio where I do a build and I want the output tab to be shown - currently I'm just calling PinAllPanes() in order to make sure the pane is shown but this isn't what I want (I don't want to pin the pane and I don't want to have to pin other panes in the group. I if the RadPane.IsActive setter were public I believe that would give me what I want, but, it's not.

Any help would be appreciated.
Gary
Top achievements
Rank 1
 answered on 19 Jan 2012
1 answer
102 views
In TeeListView if I set CanUserInsertRowS = true and ShowInsertRow = true when I actually insert a row the new item is always inserted at the top level.  Is there a way to insert it as a child of the selected node or at the same level as the selected node?
Nick
Telerik team
 answered on 19 Jan 2012
3 answers
84 views
I have to refresh the specific row. But I don't want to refresh the whole gridview.
Vishwajeet
Top achievements
Rank 1
 answered on 19 Jan 2012
1 answer
126 views
Hi,

I'm trying to use a RichTextBox in a RadTreeListView. Below is the xaml

<telerik:RadTreeListView Grid.Row="1"
                                 HorizontalAlignment="Stretch"
                                 VerticalAlignment="Stretch"
                                 x:Name="RTLView"
                                 AutoGenerateColumns="False"
                                 IsSynchronizedWithCurrentItem="True"
                                 IsReadOnly="True"
                                 ItemsSource="{Binding Items}"
                                 ItemContainerStyle="{StaticResource ItemContainerStyle}"
                                 IsFilteringAllowed="False">
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn Width="350">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <RichTextBox x:Name="ItemName"
                                         ux:RichTextBoxHelper.DocumentMarkup="{Binding Name, UpdateSourceTrigger=PropertyChanged}"
                                         Margin="{Binding Margin}"
                                         Padding="0,5,0,0"
                                         VerticalScrollBarVisibility="Auto"
                                         Cursor="Arrow"
                                         Focusable="False"
                                         MaxHeight="80" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
       </telerik:RadTreeListView.Columns>
 </telerik:RadTreeListView>


When i run the application, the content renders properly the first time but when i select any row, I'm getting the following exception.

System.InvalidCastException was unhandled by user code
  Message=Unable to cast object of type 'System.Windows.Documents.Paragraph' to type 'System.Windows.UIElement'.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.SelectableTextBoxDragHandler.OnMouseLeftButtonDown(Object sender, MouseButtonEventArgs args) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\TreeListView\SelectableTextBoxDragHandler.cs:line 28
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(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.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(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.Window.ShowHelper(Object booleanBox)
       at System.Windows.Window.ShowDialog()
  InnerException:


Earlier i used the same RichTextBox in a ListView, it worked fine. After changing to RadTreeListView I'm facing issues.

Please help!
Vlad
Telerik team
 answered on 19 Jan 2012
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?