Telerik Forums
UI for WinForms Forum
3 answers
220 views
Hi,

I created a static class named GlobalMessageBox.

Inside this class, I set ThemeName for all RadMessageBox.Show

For example,
        /// <summary> 
        /// Displays RadMessageBox with specified text.  
        /// </summary> 
        /// <param name="text">The text to display in the RadMessageBox.</param> 
        /// <returns>One of the <see cref="T:System.Windows.Forms.DialogResult"></see> values</returns> 
        public static DialogResult Show(string text) 
        { 
            RadMessageBox.SetThemeName(_theme); 
            return RadMessageBox.Show(text); 
        } 

For the theme, I setted a const like this,
        private const string _theme = "Telerik"

In previous version (I have the last one available), it worked. Now, sometime, it crash. (for example, in a form with a huge gridview).
I found a way to "patch" this with :
        private static string _theme = "Telerik"

This is really strange. If somebody can explain me.

Best regards,
Fabien


Martin Vasilev
Telerik team
 answered on 30 Mar 2009
5 answers
260 views
Hi, what special things do I need to do to correctly put a background on the RadCarousel?    If you drag and drop a carousel onto the form I expect to just set the BackgroundImage property and go.. but it doesn't seem to work.

No expense was spared in trying to get this to work and eventually I found by manually adding the following line to the designer code behind I got it to display:

((Telerik.WinControls.Primitives.FillPrimitive)(this.rcFilterOptions.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

Naturally this was not the first line of code I tried.. I guess I will put that line of code in the FormLoad in case it gets overwritten if I change the design.  Please advise if thre is a better/more correct way of getting the background to display.. and if not, please consider this a bug report, or at best, documentation request.  My apologies if I missed something when reading the docs and existing forum requests.

My carousel looks awesum now, btw :)

Cheers
  Ewart.
Peter
Telerik team
 answered on 30 Mar 2009
1 answer
79 views
Hi,

when using the dockmanger i have 2 panels.

A
B

B must always remain the same height when form resizes.

Any idea on how to accomplish this?

Thank you.
Julian Benkov
Telerik team
 answered on 30 Mar 2009
4 answers
235 views
Hi

I am trying my first RadGridView bound to a bindingsource which is bound to a link to sql query result.

When I intially setup the RadGridView I set the datasource to an object which is the linq to sql datacontext class for that table.

I have formatted the grid to only display 2 of the many available fields and specially formated them size and header title.

However the formatting changes I have made do not appear and I get a generic 2 50 char cols. However in the designer it looks ok.

If I edit the designer.cs code and change the IsAutoGenerated to false my formatted cols appear but also two defaulted cols.

What am I doing wrong?

form.cs code
    public partial class OrganizationsForm : Telerik.WinControls.RadForm  
    {  
        private CallDataClassesDataContext db;  
 
        public OrganizationsForm()  
        {  
            InitializeComponent();  
 
            db = new CallDataClassesDataContext();  
 
            var OrganizationQuery = from organ in db.Organizations  
                                    orderby organ.Name  
                                    select new 
                                    {  
                                        organ.OrganizationId,  
                                        organ.Name  
                                    };  
 
            organizationBindingSource.DataSource = OrganizationQuery;  
        }  
    }  
 

designer.cs code
        private void InitializeComponent()  
        {  
            this.components = new System.ComponentModel.Container();  
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn1 = new Telerik.WinControls.UI.GridViewDecimalColumn();  
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();  
            this.organizationBindingSource = new System.Windows.Forms.BindingSource(this.components);  
            this.radGridView1 = new Telerik.WinControls.UI.RadGridView();  
            ((System.ComponentModel.ISupportInitialize)(this.organizationBindingSource)).BeginInit();  
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();  
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1.MasterGridViewTemplate)).BeginInit();  
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();  
            this.SuspendLayout();  
            //   
            // organizationBindingSource  
            //   
            this.organizationBindingSource.DataSource = typeof(CallMaintain.Organization);  
            //   
            // radGridView1  
            //   
            this.radGridView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));  
            this.radGridView1.Cursor = System.Windows.Forms.Cursors.Default;  
            this.radGridView1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);  
            this.radGridView1.ForeColor = System.Drawing.SystemColors.ControlText;  
            this.radGridView1.ImeMode = System.Windows.Forms.ImeMode.NoControl;  
            this.radGridView1.Location = new System.Drawing.Point(13, 13);  
            //   
            //   
            //   
            this.radGridView1.MasterGridViewTemplate.AllowColumnChooser = false;  
            this.radGridView1.MasterGridViewTemplate.AllowColumnResize = false;  
            this.radGridView1.MasterGridViewTemplate.AllowDeleteRow = false;  
            this.radGridView1.MasterGridViewTemplate.AllowDragToGroup = false;  
            gridViewDecimalColumn1.AllowGroup = false;  
            gridViewDecimalColumn1.AllowResize = false;  
            gridViewDecimalColumn1.DataType = typeof(int);  
            gridViewDecimalColumn1.FieldAlias = "OrganizationId";  
            gridViewDecimalColumn1.FieldName = "OrganizationId";  
            gridViewDecimalColumn1.FormatInfo = new System.Globalization.CultureInfo("");  
            gridViewDecimalColumn1.HeaderText = "OrganizationId";  
            gridViewDecimalColumn1.IsAutoGenerated = true;  
            gridViewDecimalColumn1.ReadOnly = true;  
            gridViewDecimalColumn1.UniqueName = "OrganizationId";  
            gridViewDecimalColumn1.VisibleInColumnChooser = false;  
            gridViewDecimalColumn1.Width = 80;  
            gridViewTextBoxColumn1.AllowGroup = false;  
            gridViewTextBoxColumn1.FieldAlias = "Name";  
            gridViewTextBoxColumn1.FieldName = "Name";  
            gridViewTextBoxColumn1.FormatInfo = new System.Globalization.CultureInfo("");  
            gridViewTextBoxColumn1.HeaderText = "Name";  
            gridViewTextBoxColumn1.IsAutoGenerated = true;  
            gridViewTextBoxColumn1.UniqueName = "Name";  
            gridViewTextBoxColumn1.VisibleInColumnChooser = false;  
            gridViewTextBoxColumn1.Width = 250;  
            this.radGridView1.MasterGridViewTemplate.Columns.Add(gridViewDecimalColumn1);  
            this.radGridView1.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn1);  
            this.radGridView1.MasterGridViewTemplate.DataSource = this.organizationBindingSource;  
            this.radGridView1.MasterGridViewTemplate.EnableGrouping = false;  
            this.radGridView1.Name = "radGridView1";  
            this.radGridView1.RightToLeft = System.Windows.Forms.RightToLeft.No;  
            this.radGridView1.ShowGroupPanel = false;  
            this.radGridView1.Size = new System.Drawing.Size(381, 150);  
            this.radGridView1.TabIndex = 0;  
            this.radGridView1.Text = "radGridViewPreview";  
            //   
            // OrganizationsForm  
            //   
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);  
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;  
            this.ClientSize = new System.Drawing.Size(406, 276);  
            this.Controls.Add(this.radGridView1);  
            this.Name = "OrganizationsForm";  
            this.Text = "Organizations";  
            this.ThemeName = "Office2007Blue";  
            ((System.ComponentModel.ISupportInitialize)(this.organizationBindingSource)).EndInit();  
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1.MasterGridViewTemplate)).EndInit();  
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();  
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();  
            this.ResumeLayout(false);  
            this.PerformLayout();  
 
        }  
 

Thanks Paul
Julian Benkov
Telerik team
 answered on 30 Mar 2009
1 answer
118 views
Is there a theme that I could apply to MultiColumnComboBox that simulates the "System" visual style typically found on the standard .NET controls?  We have a lot of XP users and this is the first Telerik control I'm attempting to implement.  I see that the ThemeManager has a handful of fancy themes, but does Telerik support the "barebones" windows XP classic look as well?  

Thanks.

Ken
Victor
Telerik team
 answered on 30 Mar 2009
0 answers
102 views
hi!

Testing GridViewMultiColumnComboBox I noted when selecting any item not visible I mean, has to scroll down, then I change to next cell and go back and open multi column combo editor, selected item is not visible not even using ScrollTo ... properties

How is possible to solve this situation?

thanks
Aldemar
Top achievements
Rank 1
 asked on 27 Mar 2009
3 answers
393 views
Is there a way to multiline and center the text of a radbutton, like the stock .net 2.0 button?  I have been achieving this by putting a Enviornment.Newline in my text, but this aligns all the text to one side of the button, not centered.  Any ideas?

Another question is about the radlabel.  I want to placed a radlabel and set the autosize property to false the stretch the label to about 200px, then center the text within the 200px (like the stock .net 2.0 label)  How do you do this with the RadLabel?

Thanks
Chris Taylor
Nikolay
Telerik team
 answered on 26 Mar 2009
2 answers
125 views
hi!

Testing RadGridView adding new rows starting from cleared rows I note something in ComboBoxColumn o MultiColumnComboBox columns. I filled combobox datasource keeping in mind ValueMember be same to FieldName property of column that will show ComboBoxEditor into GridView. When i clik on row "Click here to add new row" and I select an item and then go to next cell via tab key, cells doesn't show selected value, more of it, it doesn't show anything. I tried to fill cell by DefaultValuesNeeded event and give it a default value, combobox shows text according to the default value, that's right!, but in same way when I click next cell, value is loosen and cells doesn't show anything.

What could be happen?

thanks
Aldemar
Top achievements
Rank 1
 answered on 26 Mar 2009
3 answers
222 views
Hello,
I have a radGridViewDateTimeColumn, and  i would like know how can i display my dates without the time  in my gridView
Thank you
Shirya
Shirya
Top achievements
Rank 1
 answered on 26 Mar 2009
1 answer
135 views
Hi All

I have a for which inherits from Telerik.WinControls.RadRibbonForm.
When the form is maximised it display the ribbonbar twice as the link to the image shows

maximised screenshot
Deyan
Telerik team
 answered on 26 Mar 2009
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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?