Telerik Forums
UI for WinForms Forum
2 answers
300 views
I was wondering if it's possible to use a TreeView as the drop-down of a combo box in win forms like you can in ASP.NET?
Stefan
Telerik team
 answered on 22 Mar 2011
4 answers
160 views
Hello,

i downloaded a trial version of your winforms 2009 / 2 for my future project and i am trying to understand this type of your product (i have experience with ASP.NET Controls)

But here I am not able to bind anything. I will need a treeview generated from database but when i am binding treeview step by step from your manual at http://www.telerik.com/help/winforms/tree_datadatabase.html and from your music collection database i have still empty form. At Visual Studio is everything fine - no errors or warnings, but when i debug that i have empty form. The same problem is with RadGrid, just columns name and no data. Display name i have defined. I really dont know what to do, bcs i tried everything what i know. I have Windows 7, VS 2005 SP1, .NET framework 3.5.

Thx for any help, i did not use C# so much.
Stefan
Telerik team
 answered on 22 Mar 2011
2 answers
166 views
Hi,

Is there any way to change the RadTreeNode look (or "style") based on the type of DataBoundItem ? For example, if the type of DataBoundItem is Person the RadTreeNode should be red and if the type of DatBoundItem is Address the RadTreeNode should be green (something like WPF DataTemplates).

Thanks in advance.

Mark
Stefan
Telerik team
 answered on 22 Mar 2011
6 answers
404 views

Hi Guys,

I am having a problem populating a RadTreeView with a Dataset that contains a DataRelation. As I step through the code the DataSet returns two tables and they both contain the correct values I want shown on the form, however, it only displays the first table’s data on my form. I am using the most current version of controls.

The following is a snippet of the source code that contains the problem described above:

 private void LoadTreeView()  
        {  
            DataSet dsData = new DataSet();  
            int intDocID = 10;  
 
            tvrDocs.Nodes.Clear();  
 
            dsData = AppDocument.GetDocumentTreeView(intDocID);  
 
            if (dsData != null)  
            {  
                DataColumn parentColumn = dsData.Tables[0].Columns["DocGlobalRuleTypeID"];  
                DataColumn childColumn = dsData.Tables[1].Columns["DocGlobalRuleTypeID"];  
 
                // Create DataRelation.  
                DataRelation drGlobalVar;  
                drGlobalVar = new DataRelation("GlobalVar", parentColumn, childColumn);  
                // Add the relation to the DataSet.  
                dsData.Relations.Add(drGlobalVar);  
 
                tvrDocs.DataSource = dsData;  
            }  
            dsData.Dispose();  
 
        } 

Please let me know what I can do to solve this issue.

Many Thanks,

Mike

Stefan
Telerik team
 answered on 22 Mar 2011
8 answers
202 views
Hi,

I am using a RadTreeView and a webbrowser (System.Windows.Forms.Webbrowser) on a form, the problem is that i need to set the themes of both control's scrollbars similar. Is there any way to set the treeview's scrollbars theme to system theme (which windows is currently using). And what is the probability of you to add a web browser control in Telerik suite.  

Thanks and regards

Hassan
Stefan
Telerik team
 answered on 22 Mar 2011
6 answers
181 views
I guess the title says it all. What I would like to do is dynamically replace the editing control used to edit nodes in the tree view, and only for specific nodes. Is there a way to do this?

The reason for doing this is to enable entering a phone number with an existing mask, and not force users to enter the mask as well. There's also a need to perform custom formatting on the value of the node when it is being displayed. For example, the stored value should be 3213214321 and displayed something like (321) 321-4321. How should I do that?
Stefan
Telerik team
 answered on 22 Mar 2011
6 answers
193 views
Hi Sir,

I have a problem on radtreeview, when the application is running and I'm exploring and clicking on radtreeview and sometimes just hanging on there and waiting for the response and update. the radtreeview suddenly crashing and the red mark "X" appeared over the radpanel bar. below is the detail of error. I hope for your immediate response on this. Thank you in advance  and God bless...



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Bounds cannot be changed while locked.
   at Telerik.WinControls.RadElement.SetBoundsCore(Rectangle bounds)
   at Telerik.WinControls.RadElement.set_Bounds(Rectangle value)
   at Telerik.WinControls.ComponentLayoutElementTree.OnLayout(LayoutEventArgs e, Rectangle ownerBounds, Boolean ownerAutoSize, Control ownerParent)
   at Telerik.WinControls.RadControl.OnLayout(LayoutEventArgs e)
   at Telerik.WinControls.UI.RadTreeView.OnLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.PerformLayout()
   at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
   at Telerik.WinControls.UI.RadTreeView.EndUpdate()
   at Telerik.WinControls.UI.RadTreeView.HandleNodeSelection(RadTreeNode nodeToSelect)
   at Telerik.WinControls.UI.TreeNodeUI.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
   at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.UI.RadTreeView.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ElectZone
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/ElectZone.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Telerik.WinControls.UI
    Assembly Version: 8.2.0.0
    Win32 Version: 8.2.0.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.UI/8.2.0.0__5bb2a467cbec794e/Telerik.WinControls.UI.dll
----------------------------------------
Telerik.WinControls
    Assembly Version: 8.2.0.0
    Win32 Version: 8.2.0.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls/8.2.0.0__5bb2a467cbec794e/Telerik.WinControls.dll
----------------------------------------
TelerikCommon
    Assembly Version: 8.2.0.0
    Win32 Version: 8.2.0.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/TelerikCommon/8.2.0.0__5bb2a467cbec794e/TelerikCommon.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Interop.XtremeCommandBars
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/Interop.XtremeCommandBars.DLL
----------------------------------------
Interop.XtremeReportControl
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/Interop.XtremeReportControl.DLL
----------------------------------------
Interop.XtremeSuiteControls
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/Interop.XtremeSuiteControls.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AxInterop.XtremeShortcutBar
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/AxInterop.XtremeShortcutBar.DLL
----------------------------------------
Telerik.Reporting
    Assembly Version: 2.9.9.202
    Win32 Version: 2.9.9.202
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.Reporting/2.9.9.202__a9d7983dfcc261be/Telerik.Reporting.dll
----------------------------------------
AxInterop.XtremeCalendarControl
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/AxInterop.XtremeCalendarControl.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Drawing.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
Interop.XtremeShortcutBar
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/Interop.XtremeShortcutBar.DLL
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Interop.XtremeCalendarControl
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/Interop.XtremeCalendarControl.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
AxInterop.XtremeReportControl
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/AxInterop.XtremeReportControl.DLL
----------------------------------------
AxInterop.XtremeCommandBars
    Assembly Version: 12.1.0.0
    Win32 Version: 12.1.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/AxInterop.XtremeCommandBars.DLL
----------------------------------------
OneWorld.ElectZone.Db
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/OneWorld.ElectZone.Db.DLL
----------------------------------------
SubSonic
    Assembly Version: 2.1.0.0
    Win32 Version: 2.1.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/SubSonic.DLL
----------------------------------------
MySql.Data
    Assembly Version: 5.1.4.0
    Win32 Version: 5.1.4.0
    CodeBase: file:///D:/POLTECH%20PROJECT/EXE%20ELECTZONE%20TEST/MySql.Data.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Stefan
Telerik team
 answered on 22 Mar 2011
6 answers
312 views
Hi Guys,

Can you add a button to a treeview node?

I need to give my client the ability fire an event on a specific node, but nice I have various other functionality tied into the tree already I don't really want to add a button below the tree to provide this event.

So...  Can I have a node like this.

Node Text  - (Button)

When the user clicks a button next to the node it fires off an event.  Maybe the button would select the node so I could get the info off the node tag.

Let me know.

~Mike
Stefan
Telerik team
 answered on 22 Mar 2011
4 answers
116 views
I have set datasource of a tree view from a data table which is self referencing i.e. it contains columns id and parent id and so data is bind successfully. Now i have set property lableEdit = true for this radtreeview. and so when I press F2 and after I enter new text to the nodes I get error "Column ColName is ReadOnly." Where ColName is DisplayMember of this radTreeView. Thank you so far fast reply.
Stefan
Telerik team
 answered on 22 Mar 2011
9 answers
280 views
I have a grid where I succesfully manage to open a combobox editor from a cell in a heirarchial grid and make an appropriate selection using the EditorRequired and CellBeginEdit events. The problem is that I need to have two columns in the dropdown list that is displayed. I have a comments column I wish to show beside the DisplayMember column.
As an alternative I tried to get the tootiptext to work but that doesn't seem to work either. Is this implemented?

Any help would be greatly appreciated as I'm rapidly running out of time.
Svett
Telerik team
 answered on 22 Mar 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
CheckedDropDownList
ProgressBar
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
NavigationView
VirtualKeyboard
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?