Telerik Forums
UI for WPF Forum
1 answer
89 views
If you have the MouseDragBehavior set to Select, is there anyway to cancel this, for example with the Escape key once you have started?

Thanks
Simon
Andrey
Telerik team
 answered on 10 Mar 2011
11 answers
431 views

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

Milan
Telerik team
 answered on 10 Mar 2011
1 answer
122 views

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"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <RichTextBox  telerik:StyleManager.Theme="Office_Silver"
                     Height="140"
                     VerticalScrollBarVisibility="Auto" 
                     HorizontalAlignment="Stretch" 
                     VerticalAlignment="Stretch"  />
    </Grid>
</Window>

Iva Toteva
Telerik team
 answered on 10 Mar 2011
1 answer
86 views
Good morning,

I'm currently looking quite closely at the WPF RichTextBox in regards of using it in a project for a customer, but I know some of its users are actively using images in their documents and placing them 'freely' in the document (as in not only aligned left/center/right) etc, but using Word's textflow, margins etc options to keep images inline with the text.

Is anything like that planned for the RadRichTextbox?

All the best,
-Jörg
Iva Toteva
Telerik team
 answered on 10 Mar 2011
3 answers
344 views

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:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             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>

Vlad
Telerik team
 answered on 10 Mar 2011
2 answers
100 views
I can occasionally have SeriesMappings that I want to use a separate object to provide my data source.

My app is fairly heavy on charts and data and has pretty decent viewmodels for the charts. We bind directly to different objects for our current charting engines DataSeries.  Since the datasources can be swapped several objects below (but all INotify) we avoid alot of wiring.
Joel
Top achievements
Rank 1
 answered on 10 Mar 2011
1 answer
151 views
Hi,

I would like to implemement a command (a button) to scroll automatically to a timeslot.

Here is my scenario : I
enter a timeslot (for exemple 9:00 PM) from the GUI, I click on the button and the scheduleview automatically scrolls to the timeslot.

Are there mechanisms that allow to scroll to a timeslot?

Regards.
C.Léoni.
Valeri Hristov
Telerik team
 answered on 09 Mar 2011
3 answers
168 views
I´m using RadDocking. In one RadPane is GridView, in second ScheduleView. I use dragging items from GridView for reordering rows in GridView according to demo "GridView - Reorder rows". I´m using version 2010.3.1314.35
When I drag GridViewRow over ScheduleView, NullReferrence exeption appears. I think, it´s a bug. See attached printscreens for more information.

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:
Valeri Hristov
Telerik team
 answered on 09 Mar 2011
1 answer
117 views

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

Ivan Ivanov
Telerik team
 answered on 09 Mar 2011
5 answers
189 views
Ordinarily, if I hide/show an element containing a RadGridView, when I show it the first time, it takes around a half second to initialize, but when I show it a second time it appears almost instantaneously.

Unless I put it in a Popup, as I discovered when trying to implement a ComboBox-like UserControl.  Then it initializes every time the Popup is displayed.  The RadGridView in this example is bound to a collection containing three strings, and it takes about a half second to display every time I click on the ToggleButton:

        <DockPanel>
            <ToggleButton DockPanel.Dock="Top"
                            x:Name="Toggle">Show/Hide</ToggleButton>
                
            <Popup IsOpen="{Binding ElementName=Toggle, Path=IsChecked}"
                    Placement="Bottom">
                <Controls:RadGridView ItemsSource="{Binding Strings}"
                                        ShowGroupPanel="False"
                                        AutoGenerateColumns="False">
                    <Controls:RadGridView.Columns>
                        <Controls:GridViewDataColumn IsFilterable="False"
                                                        IsGroupable="False"
                                                        IsReadOnly="True"
                                                        SortingState="Ascending"
                                                        Header="String"
                                                        DataMemberBinding="{Binding}" />
                    </Controls:RadGridView.Columns>
                </Controls:RadGridView>
            </Popup>
        </DockPanel>

Is there something I can do to get around this?  I'd really like to avoid having to go back to using a ListView in my control.

Thanks,

Robert
Kais
Top achievements
Rank 1
 answered on 09 Mar 2011
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?