We are populating Carousel control with multiple Radchart at runtime.
In XAML code one single RadChart is defined in the DataTemplate and that DataTemplate is the ItemTemplate of the RadCarousel
In the code behind we are binding the RadCarousel with Collection of data. Each item in the collection corresponds to one RadChart data.
radCarousel.ItemsSource = CountyComparisonList();
Each CountyComparison class has a DataSeries property and we are populating DataSeries with multiple data point as bar series and adding in the Collection.
Say first object in the collection gets populated with 6 data point and second object has two data point and third has one data point. So we need to change the width of each Radchart because they dont have equal number of bars.
In each rad chart we are displaying multiple bar series.
Problem is we are not able to adjust width and height of each individual RadChart populated in the RadCarousel.
How do we do that?
Thanks in advance for any Help
Manidipa
I´m trying to set styling on RichTextBox, but no styling is applied. Telerik styling is not supported for RichTextBox?
My code example:
<Window x:Class="Richtextboxstyling.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525"> <Grid> <RichTextBox telerik:StyleManager.Theme="Office_Silver" Height="140" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </Grid> </Window>I have a Prism app which uses the BackGroundWorker for loading data into a DataTable and then binding the DataTable.DefaultView to the ItemSource of a RadGridView. Often when I start the application, I get blank rows added into the grid. Any idea why I get blank rows when I run the application sometimes but see actual data other times? See XAML below:
<UserControl x:Class="OrganizationalUnitModule.Views.OUList" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:my="clr-namespace:OrganizationalUnitModule.Presenter" xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <UserControl.DataContext> <my:OUListBWPresenter/> </UserControl.DataContext> <Grid> <Grid.RowDefinitions> <RowDefinition Height="80"/> <RowDefinition Height="40"/> <RowDefinition Height="600"/> </Grid.RowDefinitions> <Border Grid.Row="0" Margin="0,0,0,0" VerticalAlignment="Top" Height="80" Width="Auto"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0"> <GradientStop Color="#FFEEF3EB" Offset="1"/> <GradientStop Color="#FF0B72B4"/> <GradientStop Color="#FF549BC5" Offset="0.323"/> <GradientStop Color="#FFA4C9D8" Offset="0.677"/> </LinearGradientBrush> </Border.Background> </Border> <Border Grid.Row="1" Margin="0,0,0,0" VerticalAlignment="Top" Height="40" Width="Auto"> <StackPanel Orientation="Horizontal"> <telerikControls:RadButton Content="Mode" Height="30" Width="80" Margin="15,5,0,5"/> <telerikControls:RadButton Content="Load" Height="30" Width="80" Margin="15,5,0,5" Command="{Binding LoadCommand}" /> <telerikControls:RadButton Content="Cancel" Height="30" Width="80" Margin="15,5,0,5" Command="{Binding CancelCommand}" /> </StackPanel> </Border> <Border Grid.Row="2" Margin="12,12,10,12"> <telerik:RadGridView x:Name="OUGridView" AutoGenerateColumns="True" ItemsSource="{Binding Path=OrganizationalUnitsDT.DefaultView}" IsBusy="false" Grid.Row="2" SelectionMode="Multiple" Margin="0,0,0,0" Height="Auto" Width="Auto" > </telerik:RadGridView> </Border> </Grid> </UserControl> 
System.NullReferenceException was unhandled Message=Object reference not set to an instance of an object. Source=Telerik.Windows.Controls.ScheduleView StackTrace: at Telerik.Windows.Controls.DefaultDragDropBehavior.GetDragDropState(Object payload, IDataObject dragDataObject, IEnumerable destinationAppointmentsSource, IServiceProvider serviceProvider) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\DefaultDragDropBehavior.cs:line 43 at Telerik.Windows.Controls.DragDropHelper.GetStateForDragDrop(Object payload, DataObject dropDataObject, Point relativeDragPoint) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\Helpers\DragDropHelper.cs:line 660 at Telerik.Windows.Controls.DragDropHelper.OnDropQuery(Object sender, DragDropQueryEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\Helpers\DragDropHelper.cs:line 402 at Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragDropQueryEventArgs.cs:line 50 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DropQuery(Object sender, DragDropEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 314 at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDropQuery() in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\DragDropProviderBase.cs:line 182 at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnRealDrag(IMouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 469 at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 361 at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\WPFSimulatedDragDropProvider.cs:line 380 at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 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.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.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() 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() at Administration2010.App.Main() in D:\ZSVNN\Administration2010\Administration2010\obj\x86\Debug\App.g.cs:line 50 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: Hi,
When I am trying to add WPF controls to my tool box the whole visual studio is close..
How can we resolve this problem?
Thanks in advance