Telerik Forums
UI for WinForms Forum
1 answer
220 views
Hello all,
This is an issue I came across while using the RadToolStrip:
I set a new RadToolStrip back colour to ControlDark, set the ToolStripItem Back Colour to transparent and the ToggleButtonElement to transparent/white gradient (see code below).
Whenever I drag the ToolStripItem outside it's ToolStripElement, let it float, then take it back and dock it in the ToolStripElement again, the Item looses the colours I gave it and is repainted in gradient blue as well as getting a bigger size.
Is it a bug, or something can be done here?

namespace RadToolStripTest 
{ 
    partial class Form1 
    { 
        /// <summary> 
        /// Required designer variable. 
        /// </summary> 
        private System.ComponentModel.IContainer components = null; 
 
        /// <summary> 
        /// Clean up any resources being used. 
        /// </summary> 
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> 
        protected override void Dispose(bool disposing) 
        { 
            if (disposing && (components != null)) 
            { 
                components.Dispose(); 
            } 
            base.Dispose(disposing); 
        } 

        #region Windows Form Designer generated code 
 
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor. 
        /// </summary> 
        private void InitializeComponent() 
        { 
            this.radToolStrip1 = new Telerik.WinControls.UI.RadToolStrip(); 
            this.radToolStripElement1 = new Telerik.WinControls.UI.RadToolStripElement(); 
            this.radToolStripItem1 = new Telerik.WinControls.UI.RadToolStripItem(); 
            this.radToggleButtonElement1 = new Telerik.WinControls.UI.RadToggleButtonElement(); 
            ((System.ComponentModel.ISupportInitialize)(this.radToolStrip1)).BeginInit(); 
            this.SuspendLayout(); 
            //  
            // radToolStrip1 
            //  
            this.radToolStrip1.AllowDragging = true; 
            this.radToolStrip1.AllowFloating = true; 
            this.radToolStrip1.Dock = System.Windows.Forms.DockStyle.Left; 
            this.radToolStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] { 
            this.radToolStripElement1}); 
            this.radToolStrip1.Location = new System.Drawing.Point(0, 0); 
            this.radToolStrip1.MinimumSize = new System.Drawing.Size(5, 5); 
            this.radToolStrip1.Name = "radToolStrip1"; 
            this.radToolStrip1.Orientation = System.Windows.Forms.Orientation.Vertical; 
            //  
            //  
            //  
            this.radToolStrip1.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren; 
            this.radToolStrip1.RootElement.MinSize = new System.Drawing.Size(5, 5); 
            this.radToolStrip1.RootElement.StretchHorizontally = false; 
            this.radToolStrip1.RootElement.StretchVertically = true; 
            this.radToolStrip1.ShowOverFlowButton = true; 
            this.radToolStrip1.Size = new System.Drawing.Size(75, 430); 
            this.radToolStrip1.TabIndex = 0; 
            this.radToolStrip1.Text = "radToolStrip1"; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStrip1.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.SystemColors.ControlDark; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStrip1.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.SystemColors.ControlDark; 
            //  
            // radToolStripElement1 
            //  
            this.radToolStripElement1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); 
            this.radToolStripElement1.BorderThickness = new System.Windows.Forms.Padding(1); 
            this.radToolStripElement1.Items.AddRange(new Telerik.WinControls.RadItem[] { 
            this.radToolStripItem1}); 
            this.radToolStripElement1.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0); 
            this.radToolStripElement1.MinSize = new System.Drawing.Size(21, 0); 
            this.radToolStripElement1.Text = "radToolStripElement1"; 
            //  
            // radToolStripItem1 
            //  
            this.radToolStripItem1.BorderThickness = new System.Windows.Forms.Padding(1); 
            this.radToolStripItem1.Class = "ToolStripItem"; 
            this.radToolStripItem1.Items.AddRange(new Telerik.WinControls.RadItem[] { 
            this.radToggleButtonElement1}); 
            this.radToolStripItem1.Key = "0"; 
            this.radToolStripItem1.MinSize = new System.Drawing.Size(25, 21); 
            this.radToolStripItem1.Orientation = System.Windows.Forms.Orientation.Vertical; 
            this.radToolStripItem1.Text = "radToolStripItem1"; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStripItem1.GetChildAt(1))).BackColor4 = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStripItem1.GetChildAt(1))).BackColor3 = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStripItem1.GetChildAt(1))).BackColor = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToolStripItem1.GetChildAt(1))).BackColor2 = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.UI.RadToolStripOverFlowButtonElement)(this.radToolStripItem1.GetChildAt(4))).AngleTransform = 90F; 
            ((Telerik.WinControls.UI.RadToolStripOverFlowButtonElement)(this.radToolStripItem1.GetChildAt(4))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; 
            //  
            // radToggleButtonElement1 
            //  
            this.radToggleButtonElement1.AngleTransform = 90F; 
            this.radToggleButtonElement1.AutoSize = false; 
            this.radToggleButtonElement1.BorderThickness = new System.Windows.Forms.Padding(1); 
            this.radToggleButtonElement1.Bounds = new System.Drawing.Rectangle(0, 0, 50, 50); 
            this.radToggleButtonElement1.CanFocus = true; 
            this.radToggleButtonElement1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 
            this.radToggleButtonElement1.IsChecked = false; 
            this.radToggleButtonElement1.Text = "Test 01"; 
            this.radToggleButtonElement1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToggleButtonElement1.GetChildAt(0))).BackColor4 = System.Drawing.Color.White; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToggleButtonElement1.GetChildAt(0))).BackColor3 = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToggleButtonElement1.GetChildAt(0))).BackColor = System.Drawing.Color.Transparent; 
            ((Telerik.WinControls.Primitives.FillPrimitive)(this.radToggleButtonElement1.GetChildAt(0))).BackColor2 = System.Drawing.Color.Transparent; 
            //  
            // Form1 
            //  
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 
            this.ClientSize = new System.Drawing.Size(601, 430); 
            this.Controls.Add(this.radToolStrip1); 
            this.Name = "Form1"; 
            this.Text = "Form1"; 
            ((System.ComponentModel.ISupportInitialize)(this.radToolStrip1)).EndInit(); 
            this.ResumeLayout(false); 
            this.PerformLayout(); 
 
        } 

        #endregion 
 
        private Telerik.WinControls.UI.RadToolStrip radToolStrip1; 
        private Telerik.WinControls.UI.RadToolStripElement radToolStripElement1; 
        private Telerik.WinControls.UI.RadToolStripItem radToolStripItem1; 
        private Telerik.WinControls.UI.RadToggleButtonElement radToggleButtonElement1; 
    } 
} 
 
 

Boyko Markov
Telerik team
 answered on 03 Dec 2007
1 answer
174 views
I have a problem with the EmptySeriesMessage of my Chart.

Even if I change

myChart.PlotArea.EmptySeriesMessage.TextBlock.Text

property to another message, on grid property or on my code, in execution my value is not saved and "There is no or empty series" always appears.

How can I do ?

Regards,

YSP
Velichka
Telerik team
 answered on 03 Dec 2007
1 answer
156 views
Hi,

I am using your chart controls in a winforms app.
At this point I have just been playing with a gantt chart but there plans to have other charts as well.

I am adding the chart series and the chart series items programatically and would like to have the labels appear as tooltips rather than just text on the chart.

I have tried setting the activeregion.tooltip property on the chart series items but this does not do anything.

Is what I am wanting to do possible with this chart?

Thanks
Gavin
Dwight
Telerik team
 answered on 03 Dec 2007
1 answer
185 views

Hi,

I have a Gallery Element, but when I put things in it, it aligns them horizontaly, and does not wrap them. Therefore, when there is a certain number of items, the gallery collapses into a rather useless drop down button.

I would prefer the Gallery to align vertically, and clip the extra items that won't fit.

How can I do this?

(Sorry, I can't give screenshots, my PC is screwed and I will have to reboot before my clipboard will start working again)
Georgi
Telerik team
 answered on 03 Dec 2007
2 answers
125 views
The installer does not add the the components to the toolbox, is there any way to add them (small utility or script I can run).  The installer only instals the components to Visual Studio 2005 and I'm getting ready to uninstall that...  Any help would be appreciated.
Dimitar Kapitanov
Telerik team
 answered on 03 Dec 2007
1 answer
132 views
i have insert 3 radbuttonelement in my radtoolstrip
the click event is the same for all buttons
and i want identify each button
but i can't get their name

==> switch (((RadButtonElement)sender).Name)


why?
Nikolay
Telerik team
 answered on 30 Nov 2007
4 answers
182 views
Hi,
I am just downloaded your last version of Docking solution.
I am dynamically create a DockingManager and 3 DockPanel.
I am use Visual Studio 2005 c# langage.
When I drag and drop a DockPanel, I would like to disabled the posibility to tabbed the document to an other DockPanel. I would like just to move the DockPanel to an other place.

Ma second question is about thr event DoubleClick.
That is a part of my code.
...
DockPanel panel_1 = new DockPanel(); 
panel_1.CaptionVisible = true; 
panel_1.TabStripVisible = false; 
panel_1.CloseButtonVisible = false; 
panel_1.HideButtonVisible = false; 
panel_1.DropDownButtonVisible = false; 
panel_1.VerticalScroll.Visible = false; 
panel_1.DockState = DockState.Docked; 
panel_1.DoubleClick += new EventHandler(Panel_DoubleClick); 
panel_1.Text = "Test"; 
Dock_1.SetDock(panel_1, DockPosition.Top); 
 
void Panel_DoubleClick(object sender, EventArgs e) 
        { 
            label1.Text = "OKOKOK"; 
//            throw new Exception("The method or operation is not implemented."); 
        } 

Nothing is append when I doubleclick on the Panel object.
Do you have an idea of wath is wrong ?
Thank for your support and sorry for my english.

Daniel

Julian Benkov
Telerik team
 answered on 29 Nov 2007
1 answer
181 views
Hello,

It is possible Minimize the Ribbon by code?

Simulate the event of quickaccesstoolbar - minizeribbonitem

Renato Costa
Jordan
Telerik team
 answered on 29 Nov 2007
1 answer
187 views
I have a check box field in my grid that I want to be mutually exclussive.  That is, I want only one or zero rows to have a value of true for that check box at any point in time.  I tried code that changes the check box value of every row to false, but this is very slow.  So I thought I would keep a variable that stores the last row index that had a value of true for the check box field.  I have (at least) one group set up for the grid.  I am trying to store the current row index when the grid is first loaded using the following code:
foreach (GridViewRowInfo _row in employeesGrid.Rows)  
{  
    foreach (GridViewRowInfo _row2 in _row.Rows)  
    {  
        if (_row2.Cells["InitialAssignee"].Value != null && (bool)_row2.Cells["InitialAssignee"].Value == true)  
        {  
            curInitialAssignee = employeesGrid.Rows.IndexOf(_row2);  
        }  
    }  
}  
 

This code assumes that there is one level of grouping.  The problem is that curInitialAssignee is always set to -1.  I'm not sure why I can't get the row index of _row2.

Once the above is working, I have code in the ValueChanging event that will set the value of the InitialAssignee column to false for the row that corresponds to curInitialAssignee.  Followed by a line that changes curInitialAssignee to the new current row.

Also, I want to ensure that this row index remains valid even if the data is sorted differently, or a grouping is added or removed at run time.

Thanks,
Eric.

Georgi
Telerik team
 answered on 28 Nov 2007
1 answer
278 views
Hello..
I am trying to load RadCombobox by using the following code.
            
      foreach (SuperProgram superProgram in SuperPrograms)
               {
                   RadListBoxItem listitem = new RadListBoxItem();
                   listitem.Value = superProgram.ProgramMsg.MenuName;
                   listitem.Text = superProgram.ProgramMsg.MenuCaption;
                   LsvPgramAvail.Items.Add(listitem);
               }

It takes long time to load. Whereas in Microsoft's combobox the performance is very good.

Do I need any additional code??

Thanks...
Nikolay
Telerik team
 answered on 27 Nov 2007
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
ScrollablePanel
DataEntry
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?