Telerik Forums
UI for WinForms Forum
3 answers
235 views

Hi Guys,

I'm hoping that someone can help me with this.

I have a Main business Object that i display on the property grid and that works fine. However I would like to add a business object collection and have it display as a property on the Mani Business Object, so that when the Main business Object is loaded on to the property grid the collection displays as a child.


This works fine when i use a standard windows property grid. So i was wondering if i missed something?

Your help in this will be greatly appreciated.

regards

Bongani

Ivan Petrov
Telerik team
 answered on 21 Sep 2011
3 answers
243 views
Hello,
     I want to dynamically change the type of cell in the current row from TextBox to RadDropDownList.  I need the DropDownList to already be populated so I created one in the designer view and just made it not visible.  How do I populate it though?  I can't seem to access it in code.
Thanks!
Jason
Alexander
Telerik team
 answered on 20 Sep 2011
5 answers
187 views
I have implemented my custom column, inheriting from GridViewDecimalColumn. The code looks like this:

public class DynamicDecimalColumn : GridViewDecimalColumn, IDynamicColumn
    {
        public DynamicDecimalColumn(string fieldName, string attributeName)
            : base(fieldName)
        {
            AttributeName = attributeName;
            DataType = typeof(decimal);
        }
  
        protected override void Initialize()
        {
            base.Initialize();
        }
  
        public string AttributeName { get; set; }
  
  
        public override Type GetCellType(GridViewRowInfo row)
        {
            if (row is GridViewDataRowInfo)
            {
                return typeof(DynamicPropertyCellElement);
            }
            return base.GetCellType(row);
        }
    }

 I am adding a DynamicDecimalColumn by using code like
DynamicDecimalColumn column = new DynamicDecimalColumn("OwnerCode" );
column.DecimalPlaces = 0
column.Name = "OwnerCode";
column.HeaderText = "OwnerCode";
_gridViewNetSegments.MasterTemplate.Columns.Add(column);

The column is defined as filterable. When I start filtering by typing a filter text, the system is using a "contains" filter (LIKE) by default, and so I get an error. When I open the context menu to change the filter, the "Contains" filter ist not available, as expected. How can I change the initial filter by code, as I would like the "Equals" filter as the initial filter ? 

Nicole 
Alexander
Telerik team
 answered on 20 Sep 2011
2 answers
96 views
Dear Telerik Team,
I got gold historical data like this:

"2011-07-07 15:08:39" - "Valid"
"2011-07-07 15:09:20" - "Valid"
"2011-07-07 15:10:39" - "Invalid"
"2011-07-07 15:11:26" - "Valid"

and so on.
How can i build like a graph like
http://h4.abload.de/img/unbenanntcpzc.png


I also got this data only in memory as an List<object>.

Many thanks
Yavor
Telerik team
 answered on 20 Sep 2011
3 answers
76 views
When I import an html document that contains <Hn> tags they get converted to <p> tags with css styles to manage the formatting when they are subsequently exported/saved as html. Is this the planned behavior? I looked at the equivalent behavor for <li> tags and their identity is retained.

I would certainly vote for the retention of <Hn> tag identity!

If I can combine two questions into a single post - any guidance you can provide on how to set a heading using the RichTextBox would be appreciated. I'm looking for the equivalent functionality to the drop down list that permits you set the style of the paragraph to the associated stylesheet classes or to defined tags, i.e., <Hn>

Thanks for the prompt respones to forum posts!
Svett
Telerik team
 answered on 20 Sep 2011
1 answer
81 views
I really want to use the RichTextBox in an application I'm finalizing but I have been stymied by the issues I've enumerated below. Firts of all let me provide some background on my particular use so that you can determine if the scenario applies broadly.

Scenario: RichTextBox is used to create Html fragments that are integrated into a finished document where formatting (headings and indents) are adjusted by where the fragment appears in the documents outline hierarchy. Fragments are created as if they are at level 1 (one) and the indent level is programmatically adjusted by where in the outline the fragment appears.

To the best of my knowledge...
  1. HtmlFormatter translates Hn tags to <p> tags presents a challengs.
  2. Import process defines classes using some sort of internal naming approach. (I'd like associated classes and their name to be retained.)
  3. Providing an embedded stylesheet within an imported html document is not used.
  4. StyleDefinition(s) do not provide an ability to "name" the definition so that they can be programmatically assigned to a paragraph or span. (There may be a StyleProperty that supports this but I could not determine it.)
  5. I was pursueing the approach of wrapping the existing HtmlFormatter object and extending its utilty but many of the underlying classes are exposed at the Friend level versus Public level which prevents this approach

My application is very concerned with **structure** while the RichTextBox is very concerned with retaining **style**. Whle addressing my point 1 above solves all my concerns points 2 - 5 I believe would be of value to other implementers.

I'm going to have to fall back to using the web based Editor (which presents its own set of restrictions) but I will anxiously be watching developments in the RichTextBox as I believe that once finalized it will be an excellent product.

Svett
Telerik team
 answered on 20 Sep 2011
11 answers
209 views
Hi,

   I'm creating a window with a GridView 01 where I need open other window with a GridView 02 for select some values and set in GridView 01 the selected values. I'd like know how to do set the selected values of GridView 02 to GridView 01?
Image with a sample attached.

Thankful for attention!
  
Flávio
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
139 views
Hi 

I have an application that has been written over the past 4 years. My company has now purchased RadControls for WinForms and so I am going to slowly convert it screen by screen.

In the meantime though I have a function that is called by all current screens.

SetupScreen(byval frm as form)

I want to do different actions if the form is a Telerik RadForm. How do I know if the frm passed to my function is the standard form or a telerik form? Hopefully without changing the signature of my function "SetupScreen"

Cheers

Nikolay
Telerik team
 answered on 19 Sep 2011
1 answer
314 views
We Have thread deadlock problem since we upgraded to Telerik 2010.3.
In our application we have a form which is initialized in the background. in some cases, which we can't exactly define the back thread and the main thread lock one each other and the application gets stuck.
The call stack shows that the thread is stuck at Telerik function

We'll appriciate your help as quick as possible.
naama
---
Here is the call stack:

Background Thread
  [In a sleep, wait, or join] 
  Telerik.WinControls.dll!Telerik.WinControls.PropertySettingCollection.AddInheritedPropertySetting(Telerik.WinControls.IPropertySetting setting, string settingType) + 0x51 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.PropertySettingGroup.InheritRepositoryItem(Telerik.WinControls.Styles.XmlRepositoryItem newItem) + 0x104 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.StyleSheet.ProcessGroupsInheritance(Telerik.WinControls.Styles.XmlStyleRepository repository) + 0xdb bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleMap.ProcessStyle() + 0x52 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleMap.SetStyleSheet(Telerik.WinControls.StyleSheet styleSheet) + 0x42 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.ElementStyleChanged(Telerik.WinControls.RadElement element, Telerik.WinControls.RadPropertyChangedEventArgs changeArgs) + 0x147 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentThemableElementTree.NotifyElementPropertyChanged(Telerik.WinControls.RadElement element, Telerik.WinControls.RadPropertyChangedEventArgs args) + 0xd6 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x5b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadComponentElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadItem.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.LightVisualElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x2ce bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.RaisePropertyNotifications(Telerik.WinControls.RadPropertyValue propVal, object oldValue, object newValue, Telerik.WinControls.ValueSource oldSource) + 0x142 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.SetValueCore(Telerik.WinControls.RadPropertyValue propVal, object propModifier, object newValue, Telerik.WinControls.ValueSource source) + 0x259 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.StyleBuilderBase.BuildStyle(Telerik.WinControls.RadElement element) + 0x4c bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleMap.BuildStyle() + 0x73 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.MapStylesToElementsRecursive(Telerik.WinControls.RadElement element) + 0x1cc bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.MapStylesToElementsRecursive(Telerik.WinControls.RadElement element) + 0x1b4 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.MapStylesToElementsRecursive(Telerik.WinControls.RadElement element) + 0x1b4 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.MapStylesToElementsRecursive(Telerik.WinControls.RadElement element) + 0x1b4 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.AttachStylesToElementTree() + 0xa6 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RootRadElement.ControlThemeChanged() + 0x56 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentThemableElementTree.CallControlThemeChanged() + 0xd0 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentThemableElementTree.EnsureThemeAppliedInitially(bool checkInitializing) + 0x3a bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadControl.OnLoad(System.Drawing.Size desiredSize) + 0xa3 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) + 0x1b2 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) + 0x168 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) + 0x168 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl() + 0x24 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.OnVisibleChanged(System.EventArgs e) + 0x13a bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.SetVisibleCore(bool value = true) + 0x34f bytes 
  System.Windows.Forms.dll!System.Windows.Forms.TabControl.UpdateTabSelection(bool updateFocus) + 0x11f bytes 
  System.Windows.Forms.dll!System.Windows.Forms.TabControl.OnHandleCreated(System.EventArgs e) + 0x438 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WmCreate(ref System.Windows.Forms.Message m) + 0x4d bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x4a6 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.TabControl.WndProc(ref System.Windows.Forms.Message m) + 0x3b7 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x46 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 1, System.IntPtr wparam, System.IntPtr lparam) + 0xad bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) + 0x3e7 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() + 0x24a bytes 
  System.Windows.Forms.dll!System.Windows.Forms.TabControl.CreateHandle() + 0x6d bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.Handle.get() + 0x65 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ShowKeyboardCues.get() + 0xd9 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.ControlPaint.CreateTextFormatFlags(System.Windows.Forms.Control ctl, System.Drawing.ContentAlignment textAlign, bool showEllipsis, bool useMnemonic) + 0x6d bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.CreateTextFormatFlags(System.Drawing.Size constrainingSize) + 0x55 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.GetPreferredSizeCore(System.Drawing.Size proposedConstraints) + 0x139 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size proposedSize) + 0xed bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.GetPreferredSize(System.Drawing.Size proposedSize) + 0x2d bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.PreferredSize.get() + 0x33 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.AdjustSize() + 0xbd bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.OnTextChanged(System.EventArgs e) + 0xbd bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.Text.set(string value) + 0x87 bytes 
> Arachim.Infrastructure.dll!Arachim.Infrastructure.UI.CCtrl_DividingLine.Text.set(string value = "קשרי דואר") Line 40 + 0x38 bytes C#
  Arachim.exe!Arachim.Individuals.UI.Uctrl_Individual.InitializeComponent() Line 531 + 0x55 bytes C#
  Arachim.exe!Arachim.Individuals.UI.Uctrl_Individual.Uctrl_Individual() Line 88 + 0xd bytes C#
  Arachim.exe!Arachim.Individuals.UI.Frm_FamilyCard.InitializeComponent() Line 129 + 0x34 bytes C#
  Arachim.exe!Arachim.Individuals.UI.Frm_FamilyCard.Frm_FamilyCard() Line 127 + 0xd bytes C#
  Arachim.exe!Arachim.Individuals.UI.BackgroundForms.BackgroundFamilyCard.startInit() Line 113 + 0x2b bytes C#
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x9b bytes 
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x4d bytes 

Main Thread
  [In a sleep, wait, or join] 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) + 0x1ce bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle() + 0x12b bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(int interval) + 0x37 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.Enabled.set(bool value) + 0xeb bytes 
  Arachim.exe!Arachim.Individuals.UI.Frm_CachePhoneBook.Grid_CacheDataRetrieved(object sender = {Arachim.Infrastructure.UI.CCtrl_DataGrid}, System.EventArgs e = {System.EventArgs}) Line 150 + 0x26 bytes C#
  Arachim.Infrastructure.dll!Arachim.Infrastructure.UI.CCtrl_DataGrid.updateDataForPaging(int pageIndex = 0) Line 3363 + 0x68 bytes C#
> Arachim.Infrastructure.dll!Arachim.Infrastructure.UI.CCtrl_DataGrid.RefreshCacheGrid() Line 3298 + 0x3f bytes C#
  Arachim.exe!Arachim.Individuals.UI.Frm_CachePhoneBook.RefreshData() Line 138 + 0x23 bytes C#
  Arachim.exe!Arachim.Individuals.UI.Frm_CachePhoneBook.tmr_refresh_Tick(object sender = {Interval = 600000}, System.EventArgs e = {System.EventArgs}) Line 143 + 0x18 bytes C#
  System.Windows.Forms.dll!System.Windows.Forms.Timer.OnTick(System.EventArgs e) + 0x1a bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.TimerNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x5e bytes 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 275, System.IntPtr wparam, System.IntPtr lparam) + 0xad bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  System.Windows.Forms.dll!System.Windows.Forms.Form.DefWndProc(ref System.Windows.Forms.Message m) + 0x112 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x148 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x46 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 787, System.IntPtr wparam, System.IntPtr lparam) + 0xad bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) + 0x1ce bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle() + 0x12b bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(int interval) + 0x37 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Timer.Enabled.set(bool value) + 0xeb bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadControlAnimationTimer.EnsureTimer() + 0xab bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadControlAnimationTimer.Start() + 0x40 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorNotRunningState.PerformActionOverride(Telerik.WinControls.AnimationState newState) + 0x80 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorState.PerformAction(Telerik.WinControls.AnimationState newState) + 0x16 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ElementValuesAnimator.ChangedCurrentAction(Telerik.WinControls.AnimationState newState) + 0x27 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.AnimatedPropertySetting.ApplyValueInternal(Telerik.WinControls.RadElement element) + 0x14a bytes 
  Telerik.WinControls.dll!Telerik.WinControls.AnimatedPropertySetting.ApplyValue(Telerik.WinControls.RadElement element) + 0x12b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTreeNode.ApplyGroupSettingsOnElement(Telerik.WinControls.PropertySettingGroup group, Telerik.WinControls.RadElement element) + 0x7e bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTreeNode.ApplyPropertySettingsOnAttachedElement(Telerik.WinControls.RadElement element = {Telerik.WinControls.Primitives.FillPrimitive}, bool onPropertyChanged) + 0x1a7 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTreeNode.AttachElement(Telerik.WinControls.RadElement element) + 0x2f bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(Telerik.WinControls.Styles.StylesheetTreeNode node, Telerik.WinControls.RadElement element, Telerik.WinControls.Styles.StylesheetTree.MapElementContext context = {Telerik.WinControls.Styles.StylesheetTree.MapElementContext}) + 0x1b3 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(Telerik.WinControls.Styles.StylesheetTreeNode node = {Telerik.WinControls.Styles.StylesheetTreeNode}, Telerik.WinControls.RadElement element = {Telerik.WinControls.UI.RadScrollBarElement}, Telerik.WinControls.Styles.StylesheetTree.MapElementContext context = {Telerik.WinControls.Styles.StylesheetTree.MapElementContext}) + 0x106 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElement(Telerik.WinControls.RadElement element, Telerik.WinControls.Styles.StylesheetTree.MapElementContext context) + 0xa6 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElementHierarchy(Telerik.WinControls.Styles.StylesheetTree.MapElementContext context) + 0xac bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.AttachElement(Telerik.WinControls.RadElement addedElement = {Telerik.WinControls.UI.RadScrollBarElement}) + 0x6b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StylesheetTree.OnElementSelectorKeyChanged(Telerik.WinControls.RadElement element, Telerik.WinControls.RadPropertyChangedEventArgs changeArgs) + 0x1ce bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.StyleManager.ElementStyleSelectorKeyPropertyChanged(Telerik.WinControls.RadElement element, Telerik.WinControls.RadPropertyChangedEventArgs changeArgs) + 0x96 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentThemableElementTree.NotifyElementPropertyChanged(Telerik.WinControls.RadElement element, Telerik.WinControls.RadPropertyChangedEventArgs args) + 0xd6 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x5b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadComponentElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadItem.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.RadScrollBarElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x18 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.RaisePropertyNotifications(Telerik.WinControls.RadPropertyValue propVal, object oldValue, object newValue, Telerik.WinControls.ValueSource oldSource) + 0x142 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.SetValueCore(Telerik.WinControls.RadPropertyValue propVal, object propModifier, object newValue, Telerik.WinControls.ValueSource source) + 0x259 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.ItemStateManagerBase.SetItemState(Telerik.WinControls.RadItem item, string[] stateNames) + 0xe7 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.Styles.ItemStateManager.StateInvalidated(Telerik.WinControls.RadItem item, Telerik.WinControls.Styles.StateNodeBase elementStateBase) + 0x1bb bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x5d bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x1b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadComponentElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadItem.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x17 bytes 
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.RadScrollBarElement.OnPropertyChanged(Telerik.WinControls.RadPropertyChangedEventArgs e) + 0x18 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.RaisePropertyNotifications(Telerik.WinControls.RadPropertyValue propVal, object oldValue, object newValue, Telerik.WinControls.ValueSource oldSource) + 0x142 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadObject.SetValueCore(Telerik.WinControls.RadPropertyValue propVal, object propModifier, object newValue, Telerik.WinControls.ValueSource source) + 0x259 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentInputBehavior.HandleHoveredElementsChanged(System.Collections.Generic.List<Telerik.WinControls.RadElement> newHoveredElements = Count = Cannot evaluate expression because the current thread is in a sleep, wait, or join) + 0x3e8 bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentInputBehavior.SelectElementOnMouseOver(System.Windows.Forms.MouseEventArgs e) + 0x8f bytes 
  Telerik.WinControls.dll!Telerik.WinControls.ComponentInputBehavior.OnMouseMove(System.Windows.Forms.MouseEventArgs e) + 0x4b bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadControl.OnMouseMove(System.Windows.Forms.MouseEventArgs e) + 0x23 bytes 
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadGridView.OnMouseMove(System.Windows.Forms.MouseEventArgs e) + 0x81 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseMove(ref System.Windows.Forms.Message m) + 0x95 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x5ed bytes 
  Telerik.WinControls.dll!Telerik.WinControls.RadControl.WndProc(ref System.Windows.Forms.Message m) + 0x97 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x46 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 512, System.IntPtr wparam, System.IntPtr lparam) + 0xad bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int dwComponentID, int reason, int pvLoopData) + 0x5c3 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {System.Windows.Forms.ApplicationContext}) + 0x578 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x65 bytes 
  Arachim.exe!Arachim.Program.Main(string[] args = {string[0]}) Line 31 + 0x25 bytes C#
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x47 bytes 
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x9b bytes 
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x4d bytes 



Nikolay
Telerik team
 answered on 19 Sep 2011
4 answers
179 views
Going by your examples, I set the AllowDrop for the RadListControl to true. I also have set the SelectionMode to MultiExtended. Also, per your example in the TreeView section, I coded the RadListControl's MouseDown event to call the DoDragDrop() method. However, now I can not select rows with the mouse. I can select extended with the arrow keys and shift key, and I can drag them into the TreeView, succesfully. It's like the mouse only works for Dragging, it won't even control the scroll bar in the RadListControl.

Basically I did everything you wrote in the Treeview "Enabling Drag and Drop" section, except I used a RadListView instead of a Windows listbox for the source control.  It works with a Windows listbox, but I would like to use the Telerik version.

Help Please.

Later
Art
Michal
Top achievements
Rank 1
 answered on 19 Sep 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?