Telerik Forums
UI for WinForms Forum
3 answers
143 views
Hi;

I have a problem when I want a selected node and Group / Ungroup the tree holding the selected node. Here's an example to understand the case:
public Form1()
{
    InitializeComponent();
 
    DataTable table = new DataTable();
    table.Columns.Add("ID", typeof(int));
    table.Columns.Add("ID_PADRE", typeof(int));
    table.Columns.Add("Codigo", typeof(string));
    table.Columns.Add("TEXTO_NODO", typeof(string));
    table.Columns.Add("TIPO", typeof(string));
    table.Rows.Add(1, null, "COD 1", "Descripción 1","C");
    table.Rows.Add(2, null, "COD 2", "Descripción 2","E");
    table.Rows.Add(3, null, "COD 3", "Descripción 3", "A");
    table.Rows.Add(4, null, "COD 4", "Descripción 4", "S");
    table.Rows.Add(5, null, "COD 5", "Descripción 5", "R");
    table.Rows.Add(6, 1, "COD 6", "Descripción 6","S");
    table.Rows.Add(7, 2, "COD 7", "Descripción 7","R");
    table.Rows.Add(8, 3, "COD 8", "Descripción 8","R");
    table.Rows.Add(9, 4, "COD 9", "Descripción 9","S");
    table.Rows.Add(10, 5, "COD 10", "Descripción 10","C");
    table.Rows.Add(11, 1, "COD 11", "Descripción 11","R");
    table.Rows.Add(12, 2, "COD 12", "Descripción 12","S");
    table.Rows.Add(13, 3, "COD 13", "Descripción 13","A");
    table.Rows.Add(14, 4, "COD 14", "Descripción 14","E");
    table.Rows.Add(15, 5, "COD 15", "Descripción 15","R");
    table.Rows.Add(16, 6, "COD 16", "Descripción 16","S");
    table.Rows.Add(17, 7, "COD 17", "Descripción 17","E");
    table.Rows.Add(18, 8, "COD 18", "Descripción 18","R");
    table.Rows.Add(19, 9, "COD 19", "Descripción 19","C");
    table.Rows.Add(20, 10, "COD 20", "Descripción 20","A");
    table.Rows.Add(21, 20, "COD 21", "Descripción 21","S");
     
    this.radTreeView1.DataSource = table;
    this.radTreeView1.DisplayMember = "TEXTO_NODO";
    this.radTreeView1.ChildMember = "ID";
    this.radTreeView1.ParentMember = "ID_PADRE";
    this.radTreeView1.ExpandAll();
 
    this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "ID_PADRE", "ID");
    this.radGridView1.DataSource = table;
     
}
private void ungroup()
{
    RadTreeNode oNode = this.radTreeView1.SelectedNode;
 
    this.radTreeView1.ChildMember = "";
    this.radTreeView1.ParentMember = "";
 
    this.radTreeView1.SelectedNode = oNode;
}
private void group()
{
    RadTreeNode oNode = this.radTreeView1.SelectedNode;
 
    this.radTreeView1.ChildMember = "ID";
    this.radTreeView1.ParentMember = "ID_PADRE";
    this.radTreeView1.ExpandAll();
 
    this.radTreeView1.SelectedNode = oNode;
}
private void label1_Click(object sender, EventArgs e)
{
    this.ungroup();
}
 
private void label2_Click(object sender, EventArgs e)
{
    this.group();
}

If I have a selected node when calling the method to group / ungroup not maintained after I selected group / ungroup. I tried with what appears in the code but can not.

Thanks for the help.

Regards!
Hristo
Telerik team
 answered on 19 Mar 2015
4 answers
156 views
How to do that would automatically change the size of the column height, depending on the amount of text in it?
Hristo
Telerik team
 answered on 18 Mar 2015
3 answers
129 views
Hi, how would I hide the icon on the RadColorDialog (upper left corner)? 

Thanks,

-Lou
Ralitsa
Telerik team
 answered on 18 Mar 2015
1 answer
158 views
I am using a grid with bound rows and a summary row.  I would like to also format one of the bound rows to look like a summary row.
Is there a simple way to do this?

I've tried setting the cell element ThemeRole to "GridSummaryCellElement" in the CellFormatting event, but it didn't work
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Mar 2015
6 answers
489 views
Hey all,

I have run into an issue using AggregateExpressions with GridViewSummaryItems.

If I use the following method and Sum(Foo2) is 0, I will obviously get a Divide by Zero exception.  Is there anyway handle this when using AggregateExpressions or will I have to use the CustomSummaryItem method as described here?

Dim summaryItem As New GridViewSummaryItem()
summaryItem.Name = "Foo"
summaryItem.AggregateExpression = "(Sum(Foo) / Sum(Foo2)"

Too clarify, I have already got the desired output (percentage of the sums of two other columns in my grid) using the CustomSummaryItem, but I would rather use AggregateExpressions if possible as it's cleaner and requires less code.

Thanks!
Hristo
Telerik team
 answered on 18 Mar 2015
1 answer
397 views
i used a rad grid view in win form app.i changed text alignment to center in normal mode with cell formatting.but when i clicked on cell to edit that ,alignment is left.how can change that to center to?
Ralitsa
Telerik team
 answered on 17 Mar 2015
2 answers
143 views
I have a scenario where I have a toolwindow docked on the left hand side of the document. I have a splitcontainer loaded just to the right of this. At runtime I am dynamically creating a new toolwindow and wish to position the new window at the top of the split containter, not the top of the document. I am using the following code to load the new toolwindow:

                ToolWindow windowPT = new ToolWindow();

                windowPT.Text = "PhoneTrak Dashboard";
                windowPT.Name = "twPhoneTrak";
                windowPT.DockState = DockState.Docked;

                rdMain.DockWindow(windowPT, DockPosition.Top);

Please see attached images for current placement vs. desired placement.

Thanks in advance!
Boneshaker
Top achievements
Rank 1
 answered on 17 Mar 2015
1 answer
642 views
Hi,
Greetings,

I just tried to draw dashed line instead of ordinary line in line series but I could not figure out.  Can any one help me.

Thanks in advace!!!

Regards,
Williams.
Ralitsa
Telerik team
 answered on 16 Mar 2015
5 answers
297 views
Hi guys,

I'm working with RadPageView and I want to catch MouseHover event of RadPageView.
In details, I want to focus and expand a PageViewPage when the mouse hover on the header.
For example, I have 1 RadPageView named "Page View", and it have 2 PageViewPage: "A" and "B". I want to expand the content of page "A" and page "B" when mouse is moving over them.

Can u give me some advise?

Thanks,
(Sorry for my bad English)
nestodre
Top achievements
Rank 1
 answered on 14 Mar 2015
6 answers
248 views
Hi, 
  i would like to ho hide the time and the location on my appointments on the scheduler

Is it possible?

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