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

I am using version 2010.3.1314.35.  I have a TreeView that binds to an ObservableCollection<>, and I am allowing dragging and dropping to move items around.  Everything works great and gets updated nicely (I am implementing INotifyPropertyChanged on my objects), except for the following:

When a user selects multiple items in the TreeView and attempts to drop them in between the same selected items.  The result is that the items completely disappear from view.  I have attached a screen capture to show what I am referring to.

I was hoping that there is an easy way to handle this, but maybe I have to add some custom logic to my RadDragAndDropManager.DropQueryEvent (or perhaps my PreviewDragEnded event) to prevent such an occurrence?  I'm trying to avoid having to check if the selected items are surrounding the target destination (which I assume is what is causing the disappearance).

Any help or direction on this would be greatly appreciated!

Cheers,
Mark
Mark
Top achievements
Rank 1
 answered on 19 Mar 2011
1 answer
132 views
Does RichTextBox support track changes feature same as Microsoft Word does?
I need to compare previously entered text with the newly entered data and show user what has been changed since last time.

I was wonder to see that it is available on RadTextEditor on web and not on WPF. I thoght it is more easy to implement it on WPF than on web.

Thanks,
Wajihuddin
Iva Toteva
Telerik team
 answered on 18 Mar 2011
2 answers
99 views
Hi,

When .NET 4 WPF going to be release?

Thanks

--Nodir
nodir
Top achievements
Rank 1
 answered on 18 Mar 2011
1 answer
137 views

Hi,
I'm very new on working with Telerik products.  The past few days i'm working with RadDataFilter and custom editors but I stuck with the following problem.

My custom editor is a usercontrol witch has a dependency property called SelectedDateRange of type DateRange. The DateRange is a class with two properties

 

Public Class DateRange

        Implements System.ComponentModel.INotifyPropertyChanged

 

#Region "INotifyPropertyChanged Implementation"

        Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged

        Protected Sub OnPropertyChanged(ByVal propertyname As String)

            RaiseEvent PropertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyname))

        End Sub

#End Region

        Private _beginDate As Date?

        <DataMember()>

        Public Property BeginDate() As Date?

            Get

                Return _beginDate

            End Get

            Set(ByVal value As Date?)

                _beginDate = value

                OnPropertyChanged("BeginDate")

            End Set

        End Property

 

 

        Private _endDate As Date?

        <DataMember()>

        Public Property EndDate() As Date?

            Get

                Return _endDate

            End Get

            Set(ByVal value As Date?)

                _endDate = value

                OnPropertyChanged("EndDate")

            End Set

        End Property

 

        Public Function HasRange() As Boolean

            Return BeginDate.HasValue Or EndDate.HasValue

        End Function

 

    End Class

 

Using your example i'm trying to bind the SelectedDateRange with the Value Property of the FilterDescriptor using the following statement

<DataTemplate x:Key="DateRangeBlockEditor">

            <AhsSysUIControls:DateRangeBlock SelectedDateRange="{Binding Value,Mode=TwoWay}" />

        </DataTemplate>

It seems that this doesn't work as i get always an unsetValue. The bottom line is that i want the FilterDescriptor to carry the DateRange because later i iterate all the FilterDescriptors to create an SQL where statement. Any ideas?

Thanks Sotiris

Rossen Hristov
Telerik team
 answered on 18 Mar 2011
1 answer
85 views
I seem to be getting an error when trying to filter on a Number column and first typing the period characater for a decimal point. I can recreate it in your Demo program by going to the GridView > Click Events Demo and typing a period(.) in the UnitPrice filter.

Any work arounds to fix this?

The call stack I got was:
at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.GetPointPosition()
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.Insert(Char insertion)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.Insert(String insertion)
   at Telerik.Windows.Controls.RadMaskedTextBox.TextBox_TextChanged()
   at Telerik.Windows.Controls.MaskedTextBox.ExtendedTextBox.ExtendedTextBox_TextChanged(Object sender, TextChangedEventArgs e)
   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.Controls.Primitives.TextBoxBase.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Controls.TextBox.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Documents.TextContainerChangedEventHandler.Invoke(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Documents.TextContainer.EndChange(Boolean skipEvents)
   at System.Windows.Documents.TextRangeBase.EndChange(ITextRange thisRange, Boolean disableScroll, Boolean skipEvents)
   at System.Windows.Documents.TextRange.ChangeBlock.System.IDisposable.Dispose()
   at System.Windows.Documents.TextEditorTyping.DoTextInput(TextEditor This, String textData, Boolean isInsertKeyToggled, Boolean acceptControlCharacters)
   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.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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)
Tina Stancheva
Telerik team
 answered on 18 Mar 2011
1 answer
431 views
I want to create an application that contains one or more sidebars that are "pinnable". I don't need any groups or sections, just a container that can be docked on any edge and and pinned open or float.

Is there a Telerik control that does this?
George
Telerik team
 answered on 18 Mar 2011
7 answers
66 views
Hi

If I undock a RadPaneGroup, the Pane always jumps to the rightmost Pane in the group. Can I stop this behaviour?

Thanks
Tom Davies
George
Telerik team
 answered on 18 Mar 2011
3 answers
176 views
Hi Support,

We have a requirement like select multiple items from combobox and bind it to collection.what ever items selected from combobox should be displayed in chart.Please provide some solution for this.Thanks in Advance.

BHASKAR
Konstantina
Telerik team
 answered on 18 Mar 2011
6 answers
1.0K+ views
How do i use the SelectionChanged in RadTabControl when using MVVM?
When I select a TabItem in a RadTabControl, I want to select a specific RadRibbonTab in my RadRibbonBar.
Tina Stancheva
Telerik team
 answered on 18 Mar 2011
1 answer
239 views
Hi!

I am using RadTransitionControl to perform transitions between heterogeneous views that generally contain pure WPF controls, but that sometimes also use interop-based controls.

I detected recently an unmanaged memory leak in my application when using RadTransition with a WPFChromium-based control (http://wpfchromium.codeplex.com). The application is stable when performing transitions between pure WPF controls. It is still stable when performing transitions between views that contain DirectShow-based controls. However, whenever I use WPFChromium in my transitions, there is a significant, constant unmanaged memory leak (about 20MB/hour with transitions occuring every 30 seconds).

If I take RadTransitionControl off my application, it becomes stable, even when using WPFChromium.

The interesting part is that it does not seem a transition-related problem, because if I keep setting the Content property always to the same view (i.e., the transition does not occur), the unmanaged leak persists. It seems that just using the RadTransitionControl as a container of WPFChromium triggers the leak.


I collected heap data with WinDgb, and there are two kinds of memory blocks leaking:

a) 48 bytes long blocks leaking about 100.000 units every hour. This is the code stack leaking those blocks:
        7744dd6c ntdll!RtlAllocateHeap+0x00000274
        6ebe13ff wpfgfx_v0300+0x000013ff
        6ebe7e69 wpfgfx_v0300!MilChannel_CommitChannel+0x0000008b
        6ebe8940 wpfgfx_v0300!MilChannel_CommitChannel+0x00000b62
        6ebe89bf wpfgfx_v0300!MilChannel_CommitChannel+0x00000be1
        6ebe891b wpfgfx_v0300!MilChannel_CommitChannel+0x00000b3d
        6ebe88ec wpfgfx_v0300!MilChannel_CommitChannel+0x00000b0e
        6ebedede wpfgfx_v0300!MilChannel_AppendCommandData+0x00000961
        6ebec992 wpfgfx_v0300!MilComposition_PeekNextMessage+0x00000078
        6ebec9b3 wpfgfx_v0300!MilComposition_PeekNextMessage+0x00000099
        6ebe73c8 wpfgfx_v0300!MilResource_SendCommand+0x000024d4
        6ebe7437 wpfgfx_v0300!MilResource_SendCommand+0x00002543
        6ebe74b6 wpfgfx_v0300!MilResource_SendCommand+0x000025c2

b) 3686384 bytes long blocks leaking about 2/3 units every hour. This is the code stack leaking those blocks:

        7744dd6c ntdll!RtlAllocateHeap+0x00000274
        73c62423 WindowsCodecs!WPF::ProcessHeapImpl::Alloc+0x00000016
        73c63491 WindowsCodecs!WPF::HrMalloc+0x0000004b
        73c663ba WindowsCodecs!CSystemMemoryBitmap::HrInit+0x0000006c
        73d0d5b9 WindowsCodecs!CLateBitmap::FinalizeBitmap+0x0000002e
        73d0d6b9 WindowsCodecs!CLateBitmap::CopyPixels+0x0000004a
        73d00f7b WindowsCodecs!IWICBitmapSource_CopyPixels_Proxy+0x00000023



Are you aware situations leading to unmanaged memory leaks with WPFChromium or any other C++ wrapper-based control? Do you suggest any work-around or further debugging?


Thanks!

Helder Pinto
Helder Pinto
Top achievements
Rank 1
 answered on 18 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?