Telerik Forums
UI for WPF Forum
3 answers
158 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
112 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
179 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
2 answers
169 views
Hello there,

another feature item I just came across is 'custom styles', as predefined styles (known from Word (font/size/color, indentation, bullet list (if applicable), margins etc), defined & stored/loaded in/from the doc upon saving/loading) which doesn't seem to be supported at the moment.

Is this feature planned?

All the best,
-Jörg B.
Iva Toteva
Telerik team
 answered on 09 Mar 2011
1 answer
152 views
So i have points Data that have two members YValue and Axis Label.
i have multiple series. for each series i set the mapping as such

seriesmapping.SeriesDefinition = GetSeriesType(series.SeriesType);// right now all are line charts
            seriesmapping.CollectionIndex =index;
    ItemMapping itemMapping = new ItemMapping();
            itemMapping.DataPointMember = DataPointMember.YValue;
            itemMapping.FieldName = "YValue";
            return itemMapping;
    seriesmapping.ItemMappings.Add(ItemMapping);

Now for the labels i am taking the following approach. i tried keeping this binding for only the first series. then bind to every series
//ItemMapping itemMapping = new ItemMapping();
                //itemMapping.DataPointMember = DataPointMember.Label;// i tried both this and X category
                //itemMapping.FieldName = "AxisLabel";
                //seriesmapping.ItemMappings.Add(itemMapping);

with one series the labels work (i have other issues but they are mentioned in my last question). but adding multiple series and trying to bind the labels it does not work . what am i doing wrong.

Also. i dont want display certain points. these points i have as NAN. but you guys graph that and makes my graph look awful. is there anyway i can not display NAN.
Missing User
 answered on 09 Mar 2011
3 answers
100 views
I am use the RadChart in a CustomControl which used to work in the 2009 version of the control. Now that I have upgraded the controls to the 2010 Q3 SP1 version the control no longer works.

The problem is that - looking in snoop - the control has no visual tree. I have reduced the generic style to the following;

<Style TargetType="{x:Type asc:CustomControl1}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type asc:CustomControl1}">
                    <Grid>
                        
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"  >
                                <GradientStop Color="#FFDCE7FD" Offset="1"/>
                                <GradientStop Color="#FF898AAC" Offset="0"/>
                            </LinearGradientBrush>
                        </Grid.Background>
                        
                        <telerik:RadChart x:Name="PART_AscChart" />

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>

The piece which I believe causes the problem is that the assemblies are loaded through a custom assembly loader at runtime, so I suspect that the generic style for RadChart is not being located.

Any ideas would be appreciated.

Thanks
Kendrew
Yavor
Telerik team
 answered on 09 Mar 2011
1 answer
71 views
Hi Geeks :)

I faced with the same issue, but my scenario is little bit different from the author of this post.

Steps to reproduce:

1. Click "add new item" in the grid.
2. Press "Escape" button (Once), to still have the item in the grid.
3. Click on the header of the column, the "add new item" control will appears.
4. Click on it ("add new item")

Result: The crash will appears.

In attachment you will find all the mentioned steps in graphical example.

Thx,
Julian Ust.
Yordanka
Telerik team
 answered on 09 Mar 2011
1 answer
105 views
Hi,

Is it possible to have a grid that allows users to add new items (through programatically calling BeginInsert) whilst preventing the user from editing existing items?

Thanks

Mat
Maya
Telerik team
 answered on 09 Mar 2011
1 answer
101 views
I'm using the Docking example you provided with RadControls_for_WPF40_2010_3_1314.

If I want to dock a panel in the SolutionExplorer pane the corresponding compass is shown outside of the main window and disappears if I move the mouse cursor toward it. See attached screen shot.

I think this is a bug. When will it be fixed?
George
Telerik team
 answered on 08 Mar 2011
3 answers
808 views
I'm trying to get validation working with the RadMaskedTextBox, I have found a few posts and an old example in your online help http://www.telerik.com/help/wpf/radmaskedinput-features-validation.html

The current help for the RadMaskedTextBox doesn't even talk about validation.

What I would like to do is have the outline around the RadMaskedTextBox turn red when something is wrong the data entered into the textbox.

Could you please send me a small example of this ?
Petar Mladenov
Telerik team
 answered on 08 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
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?