Telerik Forums
UI for WinForms Forum
3 answers
826 views
I've been working on building a treeview that's basically the navigation control for the application, and I've run into a bit of a question.

When I'm using the events BeforeSelect & AfterSelect, I'm getting the warning that I'm supposed to be using the 'Selected' event. However, the Selected event doesn't have any information attached to it - it implements the standard (object sender, EventArgs e) format, with no information on which node has been selected.

So, that's one issue - what's the best way to get the information I need now? (Which node has been selected?)

2nd issue is this: If the user is on node A and has done some editing for that node, and wants to move to node B, I want to warn them about moving away before saving.. So, I want to capture the 'trying to move away' event and cancel the move. How do I do this?
Stefan
Telerik team
 answered on 21 Mar 2011
3 answers
136 views
hello,

i want a msgbox to appear when a node is moved to another. the user should confirm the operation or cancel it.

i tried to handle it by using the dropped event but i cannot move the moved node back to its origin parent node...

how can i handle it?

thanks, andreas
Stefan
Telerik team
 answered on 21 Mar 2011
4 answers
196 views
Hi,

I am looking at trying to bind a System.Collections.Generic List to the RadTreeView. Are there any good examples of how to do this?
Help!!

Greg
Stefan
Telerik team
 answered on 21 Mar 2011
5 answers
331 views
I have a RadTreeView that can get up to 4 levels deep.  The problem I am having is that adding and removing nodes is extremely slow.  Unfortunately my current position doesnt allow me to write a batch function to insert/remove nodes in groups.  I tried using the BegingUpdate() and EndUpdate() and this helped, and by helped i mean it took my CPU utilization from 100% to 50%.  Any suggestions on how to improve this?
Stefan
Telerik team
 answered on 21 Mar 2011
2 answers
232 views
Hi, I'm working with two monitors. When I move the treeview to the secondary monitor, the context menu of every node is displayed in the main monitor. It occurs too with the control demo installed with the components, so, I suposs that it's a bug.

Another thing, text displayed in the context menu are not aligned. I change every TextAlignment of each item, but what are displayed at runtime is very different.

Thanks.
Stefan
Telerik team
 answered on 21 Mar 2011
4 answers
237 views
Hi
I have placed a RadTreeView on a form and then in the load event have the following:

            for (int i = 0; i < 10; i++)  
            {  
                RadTreeNode treeNode = new RadTreeNode(i.ToString());  
                treeNode.ShowRadioButton = true;  
 
                radTreeView1.Nodes.Add(treeNode);  
            }  
 

The problem is that when I click on one item in the list and then another, the first one is not deselected and I end up with all the radio buttons selected.  The sample you provide does not have this problem.

Please could you explain how to achieve the effect I want - a list of (top level) radio buttons.

Thanks

Best regards

Marek

Stefan
Telerik team
 answered on 21 Mar 2011
4 answers
274 views
Hi.
I am using the Rad Treeview for Win Forms.
I am trying to bind the tree to a datatable.
The table consists of columns that include ID and ParentID
However, the ID and ParentID are GUID's. Am I correct in assuming that the columns need to be integers? As the binding is giving me weird errors (Unable to cast object of type 'System.Windows.Forms.RelatedPropertyManager' to type 'System.Windows.Forms.CurrencyManager'.)

What do you suggest I do to fix this? Is my only option to go and create a method that will loop through each of these rows in my table and convert their GUID's into integers and match up the related ParentID's?

Thanks for any help,
Kris
Stefan
Telerik team
 answered on 21 Mar 2011
2 answers
187 views
Hello,

i have an issue with exporttopdf.
even when i set the scale, fittopagewidth properties the result (pdf) looks everytime the same.
my code:

ExportToPDF pdf = new ExportToPDF(this._rg);
          pdf.ExportVisualSettings = true;
 
          pdf.Scale = 0.4f;
          pdf.FitToPageWidth = true;
 
          //pdf.TableBorderThickness = 0;
          pdf.RunExport(path);


thx for help
Richard Slade
Top achievements
Rank 2
 answered on 21 Mar 2011
8 answers
703 views
Has anyone been able to get a RadTreeView to bind to custom business objects?
I followed the example in the help but it only seems to show my first level artist nodes.  In fact it doesn't even show the top level 'Artists' node.

I was also initially getting null object errors adding to the RelationBindings collection.  It seems the collection is not initialized until you call some other method like RadTreeView.DataSource.

The example also only seems to use a single binding source and then uses compound property references to navigate the sub-relationships e.g. "Albums.Songs", whereas the DataSet example sets up a different binding source for each type of data.

Also assuming I could get this to work, what is the liklihood that it will be two way.  I tried editing the name of a top level node and that seems to push the name back into the source data object.  But what will happen if I start dragging and dropping.  Is it to much to expect that it will handle this too?  I guess that would be problematic for the Artists/Albums/Songs example because you could drag a Song to an Artist.   However, I have a need for a generic type hierarchy where all nodes are the same type and so a node can be dragged pretty much anywhere.

Thanks for any input
Martin
Stefan
Telerik team
 answered on 21 Mar 2011
2 answers
216 views
Hi....

i have developed one software using telerik win form controls.but while running that software it takes more time to load each form...

why it takes more time?is it reason of loading dll files?

what is the problem and how can reduce the loading time.......


pls help me....
Richard Slade
Top achievements
Rank 2
 answered on 21 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)
Form
Chart (obsolete as of Q1 2013)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?