Telerik Forums
UI for WinForms Forum
3 answers
153 views
I am dynamically adding RadPanelBarGroupElements to a RadPanelBar that is set to the Explorer style. Each RadPanelBarGroupElement's control panel contains a large usercontrol that is approx 700px in height. The first few added are displayed with scrollbars in the content panel when expanded which is fine. However as more RadPanelBarGroupElements are added, the bottom ones have a very tiny display space, while the RadPanelBarGroupElements at the top when expanded still display a relatively large viewing area.
Is there a way for me to specify the minimum space that must be displayed?
       
        private void LoadApprovalIssue(ApprovalBe.ApprovalIssueRow issue) 
        { 
            ApprovalIssueControl issueControl = new ApprovalIssueControl(ref this.myActivity, approvalTypeCode, ref this.myApproval, issue.IssueNo); 
           

            RadPanelBarGroupElement issueTab = new RadPanelBarGroupElement(); 
            issueTab.Caption = "TEST";  
            issueTab.EnableHostControlMode = true
            issueTab.ContentPanel.Controls.Add(issueControl); 
            issueTab.ContentPanel.AutoScroll = true

            this.pnlbarIssues.Items.Insert(0,issueTab); 
 
        } 


Boyko Markov
Telerik team
 answered on 11 Sep 2009
5 answers
684 views
In my gridview I have a column which shows the duration of the listed music tunes.

From the database I get this duration in seconds, but I would like to display it as hh:mm:ss

What will the format string be in this case?



Regards, Jill-Connie Lorentsen

Nick
Telerik team
 answered on 11 Sep 2009
3 answers
148 views
hi every body

i wrote program with vb.net 2003 in windows form and install in windows 2003 server . but when i want run my program i see this error 

common language runtime debugging services
application has generated an exception that could not be handled
process id = 0xa84 (2692), thread id = 0x8e0 (2272)

click ok to treminated the application
click cancel to debug the application

any body can help me , it's very important for .
regards m.janfeshan
Martin Vasilev
Telerik team
 answered on 11 Sep 2009
1 answer
144 views
Hi,

I have a custom cell layout, similar to a Business Card, and it lays out exactly correctly. However I want to instruct the grid to obey a minimum size for the cell, but I cannot seem to get it right.

Heres my code from the custom GridDataCellElement - I wonder if you can spot the problem or sugges a better way of forcing a minumum cell size ?

Thanks.
 protected override void CreateChildElements()  
            {  
                base.CreateChildElements();  
                this.pictureBox = new Telerik.WinControls.UI.RadButtonElement();  
                this.pictureBox.MinSize = new Size(150, 150);  
                this.pictureBox.Size = this.pictureBox.MinSize;  
                this.pictureBox.AutoSize = false;  
                this.Children.Add(this.pictureBox);  
 
                this.dataLabelsAndValues = new List<Telerik.WinControls.RadElement>();  
                  
                foreach(string propertyName in column.ColumnDefinition.SelectedFields)  
                {  
                    iSIMS.DataModel.SimpleProperty fieldDefinition = iSIMS.DataEntity.DataEntity.DataModel.GetField<iSIMS.DataModel.SimpleProperty>(propertyName);  
                    if (fieldDefinition != null)  
                    {  
                        Telerik.WinControls.UI.RadLabelElement label = new Telerik.WinControls.UI.RadLabelElement();  
                        label.Text = fieldDefinition.Description;  
                        label.Font = new Font(label.Font, FontStyle.Bold);  
                        label.MinSize = new Size(100, 20);  
                        label.Size = label.MinSize;  
                        label.AutoSize = false;  
                        dataLabelsAndValues.Add(label);  
 
                        Telerik.WinControls.UI.RadLabelElement textBox = new Telerik.WinControls.UI.RadLabelElement();  
                        textBox.Tag = propertyName;  
                        textBox.AutoSize = false;  
                        textBox.MinSize = new Size(100, 20);  
                        textBox.Size = textBox.MinSize;  
                        dataLabelsAndValues.Add(textBox);  
                    }  
                }  
                this.Children.AddRange(dataLabelsAndValues.ToArray());  
                  
            }  
 
            protected override SizeF ArrangeOverride(SizeF finalSize)  
            {  
                SizeF size = base.ArrangeOverride(finalSize);  
                RectangleF clientRect = GetClientRectangle(finalSize);  
                int controlOffset = 0;  
                int maxWidth = 0;  
                int maxHeight = 0;  
                foreach (Telerik.WinControls.RadElement element in this.Children)  
                {  
                    if (element == pictureBox)  
                    {  
                        element.Arrange(  
                            new RectangleF(  
                                clientRect.Left+5,  
                                clientRect.Top+5,  
                                150,  
                                150)  
                                );  
                    }  
                    else 
                    {  
 
                        element.Arrange(  
                            new RectangleF(  
                                clientRect.Left + 150 + 5 +5,  
                                clientRect.Top + (controlOffset * 20) +5,  
                                clientRect.Width - (150 + 5),  
                                20)  
                                );  
                                  
                        controlOffset++;  
                    }  
 
                      
                }  
 
                return size;  
            }    
 
Jack
Telerik team
 answered on 10 Sep 2009
4 answers
148 views
I'm trying to evaluate which way to use the new grid layouts to achieve the layout I want and I have some questions. 

1) is there a gui way of setting up the columnGroupsView through the property builder?
2) In the columnGroupsView is it possible to disable some of the column headers? Ex. specify a group header (Address) but not show the individual column headers (street, city, state, zip).
3) In the HTMLView is it possible to add a group column header?

Thanks,
Jack
Telerik team
 answered on 10 Sep 2009
1 answer
105 views
Hi,

How can I draw a horizontal line between RadListBox Items?


Thanks,
Jay
Deyan
Telerik team
 answered on 10 Sep 2009
2 answers
110 views
I've been playing with the demo version of the WinForm controls, anticipating using them for a future client.  To implement their requirements, I foresee using multiple carousels on one main page.  As I'm testing this, I haven't been able to get both carousels to autoloop.  If I set EnableAutoLoop to True for both 'top' and 'bottom' carousels, the top will rotate while the bottom will not.  If i set EnableAutoLoop to False for the 'top' and to True for the bottom, the bottom will autorotate while the top will not (as expected).

Is there some other setting I need to change?

Thanks!
Sheryl
Sheryl
Top achievements
Rank 1
 answered on 09 Sep 2009
4 answers
120 views
I created a custom button that inherits from RadButton. I am able to inherit the theme of the RadButton by overriding the ThemeClassName like shown in your Knowledge Base. However, that's not what I want to do. Here is the override I have done :

class MathButton : RadButton{
    public override string ThemeClassName{
        get{return "WindowsApplication1.MathButton";}
    }
}

My theme gives an appearence to all the buttons of the RadButton type, but I don't want the MathButton to inherit the RadButton appearence. I would want to be able to have a different appearence for each type of button I create from the RadButton type. I want all the button appearences to be in the same theme.

Is there a way to do that?

 

 

 

 

Mike
Telerik team
 answered on 09 Sep 2009
3 answers
122 views
Hi, RadMenuItem.HasTwoColumnDropDown is obsolete and it cannot be changed in the designer, which is the alternative? Thanks.
Nick
Telerik team
 answered on 09 Sep 2009
1 answer
82 views
Setting any of the ReadOnly/AllowAppointMove/AllowAppointmentResize options has not effect - I can always make those changes regardless of the settingts. Anything I can do about this.
Boyko Markov
Telerik team
 answered on 09 Sep 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?