Telerik Forums
UI for WinForms Forum
8 answers
122 views
I have a treeview and after adding a node, I want to select that node.  The tree is databound.   I am trying to implement the FindByTextCommand, but am having troubles.  Can you supply sample code on the implementation. 

Thanks
Stefan
Telerik team
 answered on 22 Mar 2011
2 answers
113 views
I am using WinForms Q2 2010 SP2 (v2010.2.10.0914)

I have a form with a gridview and a save button outside gridview.  The gridview has a commandcell column with dynamically generated command buttons to open another form.  When the row gets modified, click the save button will save the grid data into database.

If I modified the data and clicked the commandcell button, without leaving the row, then click the save button outside gridview.  It will stop working.  It seems that the dataset bounded to the grid donsn't get the row state changed to modified.

My work around is to force the row change by setting Radgridview1.CurrentRow to first or last row in the save button click event.  Wonder if this is a known issue.  Is there any better solution.  My work around will fail if there is only one row in the grid.

Thanks.
Stefan
Telerik team
 answered on 22 Mar 2011
6 answers
101 views
I have a treeeview and I need to be able to remove a node from it by dragging the node out of the treeview and into a datagrid. I can't figure out how to start the drag and drop actions - what events are fired?

Can anybody help please?

TIA - Jeff.
Stefan
Telerik team
 answered on 22 Mar 2011
2 answers
123 views

Requirements

RadControls version

 

.NET version

 

Visual Studio version

 

programming language

 

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
 I have problems with Rad treeview:
I have a dataset that contains 2 datatables.
First table : Parent_ID , Parent_Text
Second table : Parent_ID, CHild_ID, Child_Text

 

 

DataColumn parentColumn = gl_dsLayerLOBsWIN.Tables["PriceLayerWin"].Columns["Layer"];

 

 

 

DataColumn childColumn = gl_dsLayerLOBsWIN.Tables["PriceLayerLOBWin"].Columns["Layer"];

 

 

 

DataRelation relation = new DataRelation("parent2Child", parentColumn, childColumn);

 

gl_dsLayerLOBsWIN.Tables[

 

"PriceLayerLOBWin"].ParentRelations.Add(relation);

 

radGridView_Layers.DataSource = gl_dsLayerLOBsWIN.Tables[

 

"PriceLayerWin"];

 


radTreeView_Layers.RelationBindings.Add(

 

new RelationBinding("PriceLayerWIN_PriceLayerLOBWIN", gl_dsLayerLOBsWIN));

 

radTreeView_Layers.DataSource = gl_dsLayerLOBsWIN;

 Initially Dataset is empty. When I add a row to Parent datatable and a couple of rows to Child Datatable I see only first level node(s)....  I do not see sublevels.
Could you , please help me with this.
I tried to use Gridview for this purpose also and tried to group it, but I still do not see any data for sublayers .. may be I'm missing something ...

Thank you ,
Victoria.


Stefan
Telerik team
 answered on 22 Mar 2011
4 answers
174 views
I decided that it would be easier to control everything if I built my treeview by hand, one node at a time.  I wanted to suppress checkbox display on all levels of the tree but the lowest level.  However, even though I set ShowCheckBox = false for all levels, it does not suppress the checkboxes at the highest level of the tree.  Otherwise, the tree renders perfectly.  I tried setting tShowCheckBox to false for the lowest level, and that worked.  Is this a bug, and if so, is there a workaround?  Can anyone suggest how to make this work?

Here is the code:

private void BuildTreeFromBindingSourceData()
      {
          this.monitorRadTreeView.Nodes.Clear();
 
          int companyBindingSourcePosition;
          int plantCompanyBindingSourcePosition;
          int equipmentPlantBindingSourcePosition;
 
          RadTreeNode companyNode;
          RadTreeNode plantNode;
          RadTreeNode equipmentNode;
 
          if (companyBindingSource.Count > 0)
          {
              companyBindingSourcePosition = 0;
              while (companyBindingSourcePosition < companyBindingSource.Count)
              {
                  companyBindingSource.Position = companyBindingSourcePosition;
                  companyNode = new RadTreeNode();
                  companyNode.Text = ((MonitorInterfaceDBDataSet.CompanyRow) ((DataRowView)companyBindingSource.Current).Row).Name;
                  companyNode.Tag = ((MonitorInterfaceDBDataSet.CompanyRow)((DataRowView)companyBindingSource.Current).Row).ID;
                  companyNode.ShowCheckBox = false;
 
                  if (plantCompanyBindingSource.Count > 0)
                  {
                      plantCompanyBindingSourcePosition = 0;
                      while (plantCompanyBindingSourcePosition < plantCompanyBindingSource.Count)
                      {
                          plantCompanyBindingSource.Position = plantCompanyBindingSourcePosition;
                          plantNode = new RadTreeNode();
                          plantNode.Text = ((MonitorInterfaceDBDataSet.PlantRow)((DataRowView)plantCompanyBindingSource.Current).Row).Name;
                          plantNode.Tag = ((MonitorInterfaceDBDataSet.PlantRow)((DataRowView)plantCompanyBindingSource.Current).Row).ID;
                          plantNode.ShowCheckBox = false;
 
                          if (equipmentPlantBindingSource.Count > 0)
                          {
                              equipmentPlantBindingSourcePosition = 0;
                              while (equipmentPlantBindingSourcePosition < equipmentPlantBindingSource.Count)
                              {
                                  equipmentPlantBindingSource.Position = equipmentPlantBindingSourcePosition;
                                  equipmentNode = new RadTreeNode();
                                  equipmentNode.Text = ((MonitorInterfaceDBDataSet.EquipmentRow)((DataRowView)equipmentPlantBindingSource.Current).Row).Name;
                                  equipmentNode.Tag = ((MonitorInterfaceDBDataSet.EquipmentRow)((DataRowView)equipmentPlantBindingSource.Current).Row).ID;
                                  equipmentNode.ShowCheckBox = true;
                                  plantNode.Nodes.Add(equipmentNode);
                                  equipmentPlantBindingSourcePosition++;
                              }
                          }
                          companyNode.Nodes.Add(plantNode);
                          plantCompanyBindingSourcePosition++;
                      }
                  }
                  this.monitorRadTreeView.Nodes.Add(companyNode);
                  companyBindingSourcePosition++;
              }
          }
      }


The binding sources, if you need to see them, look like:

           
companyBindingSource = new BindingSource();
companyBindingSource.DataSource = monitorInterfaceDBDataSet;
companyBindingSource.DataMember = "Company";
 
plantCompanyBindingSource = new BindingSource();
plantCompanyBindingSource.DataSource = companyBindingSource;
plantCompanyBindingSource.DataMember = "FK_Plant_Company";
 
equipmentPlantBindingSource = new BindingSource();
equipmentPlantBindingSource.DataSource = plantCompanyBindingSource;
equipmentPlantBindingSource.DataMember = "FK_Equipment_Plant";

Stefan
Telerik team
 answered on 22 Mar 2011
5 answers
523 views
Team,

can i format a tree view text like

my tree view node is like
---My String (1234)

so please tell me can i bold this 1234 if yes then please suggest How ?
Stefan
Telerik team
 answered on 22 Mar 2011
3 answers
141 views
Q1 2009 SP1 Winform RadTreeView

Why is it that 'node.Checked' doesn't seem to get evaluated when TriStateMode is False?

If TriStateMode is True 'node.Checked' gets evaluated as expected.

I'm trying to uncheck all checkboxes in my RadTreeView without using TriStateMode. Is there another approach I should be using (without using TriStateMode)?

Thanks,
Matt
Stefan
Telerik team
 answered on 22 Mar 2011
2 answers
68 views
Hello,
I've created a radTreeView, i added the dataSource and the relationBindings.
But when i execute the application the treeView don't appear in my interface.
What do you think?

Thanks in advance
Stefan
Telerik team
 answered on 22 Mar 2011
2 answers
117 views
Hi,
I'm trying to theme the RadTreeView to change the colours of the checkboxes.  Currently, the tri-state checkbox turns red when in the indeterminate state.  This is quite unusual as it is different to every other tri-state checkbox style out there, and the red draws unnecessary attention.
However it seems that whatever values I set for MiddleStateCheckColor and NormalStateCheckColor are ignored.  Has anyone else successfully changed the indeterminate tri-state checkbox colour?
Stefan
Telerik team
 answered on 22 Mar 2011
8 answers
338 views

Hello

I am attempting to bind 3 tables of data to a Treeview using lists:

 

 

 

 

 
            vwMarketTypex mtype = markettypecontroller.GetView(STR_MarketType, STR_TimePeriod);  
            List<Symbol> currencies = Symbolcontroller.GetSymbolsByMarketType(mtype.MarketTypeID);  
 
            List<Scenario> scenarios = senariocontroller.GetAllScenarios();  
            List<RZEROMarketData.Data.RuleSet> rulesetsx = rscontroller.GetAllRulesets();  
 
            radTreeView1.RootRelationDisplayName = "Curreny Pair";  
            
            var newRelationBinding = new RelationBinding("Scenarios", scenarios, null"ScenarioDescription""ScenarioId");  
     
            radTreeView1.RelationBindings.Add(newRelationBinding);  
      
            var newRelationBinding1 = new RelationBinding("Rulesets", rulesetsx, null"Name""RulesetId");  
            radTreeView1.RelationBindings.Add(newRelationBinding1);  
         
 
            radTreeView1.DataSource = currencies; 



The last object rulesetsx does not bind ..please can you advise if I am on the right track.

Thanks

 

 

 

 

 

Stefan
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?