Telerik Forums
UI for WPF Forum
2 answers
290 views
Hello,

I have dock that starts out docked right.  When I undock it, and try to add it to the document host (center) on the right side, I get a null reference exception before I even realease the mouse.  The exception detail is listed below, as well as a shortened version of the docking I am using.  Any idea why this might happen?

EDIT: Using Q2, WPF, .Net 4.0

Thanks,
Eric

<telerik:RadDocking Grid.Row="1" x:Name="radDock"
                            telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True"
                            BorderThickness="0"  Padding="0" Visibility="Hidden">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadPaneGroup x:Name="MainGroup">
                    <telerik:RadPane x:Name="GanttPane" Header="Build Directories" ContextMenuTemplate="{x:Null}">
                        <Grid>
                       </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="300,800" x:Name="RightContainer" InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="RightGroup">
                    <telerik:RadPane x:Name="DirInfoPane" Header="Directory Information" IsHidden="True">
                        <ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                        </ListBox>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
</telerik:RadDocking>


System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Docking
  StackTrace:
       at Telerik.Windows.Controls.RadDocking.GetElementPositionAtScreenRoot(FrameworkElement element) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1473
       at Telerik.Windows.Controls.RadDocking.GetCuePosition(RadPaneGroup targetGroup, DockPosition position, Size draggedElementRelativeSize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1370
       at Telerik.Windows.Controls.RadDocking.AdjustCueSizeAndLocation(Size draggedElementRelativeSize, Size draggedElementInitialSize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1385
       at Telerik.Windows.Controls.RadDocking.OnDragContainer(RadSplitContainer container, Point globalMousePosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 389
       at Telerik.Windows.Controls.RadDocking.OnToolWindowDrag(ToolWindow window, Point globalMousePosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 276
       at Telerik.Windows.Controls.Docking.ToolWindow.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\ToolWindow.cs:line 522
       at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1267
       at Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowHostBase.cs:line 85
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.OnWindowPositionUpdating(Rect windowPosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 350
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleMoving(IntPtr hwnd, IntPtr wParam, IntPtr lParam, Boolean& handled) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 551
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 857
       at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  InnerException:
Eric
Top achievements
Rank 1
 answered on 12 Jul 2012
0 answers
151 views
Hi,

How to bind radGridview directly from a dataReader, without the need to fetch to an intermediate DataTable or object List.
I have an inmemory database (SQLLite) and need to bind directly to a table.

Thanks
imad
Top achievements
Rank 1
 asked on 12 Jul 2012
3 answers
226 views
I'm currently using the mvvm pattern along with the Timeline to display time based information.
I can't seem to find a good way of displaying the varying sets of data with a preset zoom level.

Sometimes, the dataset will contain values that are within seconds of one another. In this case, I would want to zoom level to show 6 gaps of 10 seconds. Other times, my dataset may have values that are minutes within one another or hours within one another. I would want the zoom level to be lower so that I can see all of the data at the first glance.

Using the mvvm pattern, I set RadTimeline.Intervals once in the XAML but they don't necessarily suit my needs for all the varying sets of data.

For example, say my Intervals are:
<telerik:MinuteInterval/>
<telerik:SecondInterval/>

I then set the Start and End periods to be that of the first and last data point.


Is it possible to change the Interval time depending on the data that is being displayed?
Robert
Top achievements
Rank 1
 answered on 12 Jul 2012
2 answers
110 views
Hi,

The CloseButton the RadWindow works fine!!!

But I'dlike to add a custom RadButton with "Close" that make exactly that....close the RadWindow in .NET

thats is possible?

Thanks all.....
Romell
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
182 views
Hello,

I would like to add a a button to each ganttview event style (because the events can get really tiny and I would like a fixed size button).  It seems as though changing EventContainer and SummaryContainer only effect what's in the event box.  This is not desireable because of the small size of the events.  Is there a way to add the item next to the event?

Thanks,
Eric
Masha
Telerik team
 answered on 12 Jul 2012
1 answer
162 views
Is there any way to mark a Gantt task as a certain percentage complete?

I would like to see a visual indication in the gantt chart for the percentage...perhaps some type of shading or options to fill the chart with color via brush, etc. to visually indicate a percentage complete.

Thanks, nelson
Masha
Telerik team
 answered on 12 Jul 2012
0 answers
142 views
hii,

I use telerik wpf tools 2012 Q1,

I am trying to do constant grouping by date like outlook (Today ,Lastday, Lastweek....),
how I can do it?
(for now what i did was createing a  Calculated property in the model thet get the string of Today ,Lastday, Lastweek )

next Question,
I want to order the date grouping not by alphabetical order,insted i want it to be ordered by the date it represents,
how can i achieve it?

last Question,
in the RadGridView.GroupDescriptors i am trying to add a descriptor with a converter that will convert the value of the binded member
so i could group by that value,
the problem is, the member property of GroupDescriptor can only be set to string (not bindable).
how can i workaround that problem?

thanks Guy.
Guy
Top achievements
Rank 1
 asked on 12 Jul 2012
1 answer
199 views
Hi, I would like to define a custom style for milestones. How to do that?
It looks like a TimelineItem is regarded to be a milestone if it's duration is zero - I guess this is the standard behavior of RadTimeline.

In the examples, the ItemTemplateSelector-property of RadTimeline is used, and DataTemplateSelectors in the ViewModel. Do I have to use these to define my own style for a milestone?

And another (maybe tricky) question: Is it possible to define a style for a milestone like in the attached image, so that each milestone has a dashed line going from the top of the control to the bottom?
As I understand it, the positions of the TimelineItems are calculated by RadTimeline, so if the custom style of the milestones would include such a dashed line (which would be an element with a very large height) that would be a problem, I guess?
Tsvetie
Telerik team
 answered on 12 Jul 2012
2 answers
102 views
GridView has few readonly columns. How to make readonly cells editable for new row?
I need to allow to enter some data on inserting and don't allow to edit on editing.
Anton
Top achievements
Rank 2
 answered on 12 Jul 2012
2 answers
175 views
Hello,

I'm currently getting myself introduced to ChartView and in my project I would like for the horizontal axis (DateTimeContinuousAxis) to dynamically select a LabelFormat depending on the time being presented. For full hours I'd like it to be "mm/ddd HH", otherwise just "HH:mm".

I'd prefer to do it in MVVM if possible but I'm not too religious about it. I have tried using a converter but I don't know how to obtain the actual value being affected by the format.

Can this be achieved?
Jesper
Top achievements
Rank 1
 answered on 12 Jul 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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?