Telerik Forums
UI for WinForms Forum
0 answers
164 views
How do change RadMessageBox Theme with Visual stype builder?
  RadMessageBox.SetThemeName("OverhaulTheme")

Mohammad Qermezkon
Top achievements
Rank 1
 asked on 07 Apr 2009
8 answers
463 views
I am trying to hide the start button in the ribbon control is it even possible?
Nick
Telerik team
 answered on 06 Apr 2009
3 answers
165 views
If I click on the dropdown arrow the box has a long delay before it opens (1 to 2 seconds).  Before it opens the following runs in the Output Window.  It does not matter if it is on my main form or a child form or with one item or 100.  Once it runs ALL dropdowns work fine after that.

Thanks


'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Workflow.ComponentModel\3.0.0.0__31bf3856ad364e35\System.Workflow.ComponentModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Workflow.Activities\3.0.0.0__31bf3856ad364e35\System.Workflow.Activities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Workflow.Runtime\3.0.0.0__31bf3856ad364e35\System.Workflow.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Biosketch_2.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.


Nikolay
Telerik team
 answered on 06 Apr 2009
1 answer
146 views
I have a panel with AutoScroll = true.
Inside of this panel i have another panel with a grid docked to fill inside of it. lets say the height is 500px.
(Note: the panel is resized in the codebehind as needed depending on the row count, so its a growable panel but I don' think that will matter for replication).

When the main panel has a height of greater than 500px, you can tab between the cell just fine (even if the scroll bar is showing because you have other stuff in the main panel).

If you change the size of your panel to be less than 500 , so all the rows in the grid cant be displayed at once, there is a weird scrolling issue. When tabbing along the bottom rows the scrollbar moves up and then back down immediately causing the grid to "shake" / "jitter" / "bounce".

Any input on how to fix this issue would be great! thanks ahead of time.

Jack
Telerik team
 answered on 06 Apr 2009
6 answers
395 views
Hey,
      Can I show/hide in my hierarchial grid. I want to hide the expand/collapse button if there's no data in my child table.
thank you     
lkeel
Top achievements
Rank 1
 answered on 03 Apr 2009
1 answer
133 views
Hello Friends,
I just want to know any senior person or any body  from Telerik that how can I make my application form like the  one supplied in Quick start application, we are creating a WinForm application and interested in the design of that form.

Is it allowed leagally by Telerik to copy their design or not ? if it is allowed then please guide me

Thanks and best regards
Austinn
Martin Vasilev
Telerik team
 answered on 03 Apr 2009
2 answers
125 views
I'm extending a rad element for custom behavior (specifically, I'm making a multi-select drop down where the textbox acts as a search input).  I'm trying to add a custom property, IsHighlighted to RadListBoxItem.  I have a custom XML style sheet for my control which is being loaded and works, except that it doesn't highlight as expected.

Here are the modifications I've made:
  • I've created a MultiSelectComboBoxElement that extends RadComboBoxElement.  I define a public static RadProperty IsHighlightedProperty in this class.  It's static constructor registers my theme (XML) from storage (this was based on the default combobox theme) and registers the property as follows: 
IsHighlightedProperty = RadProperty.Register("IsHighlighted"typeof(bool), typeof(RadListBoxItem), new RadElementPropertyMetadata(false, ElementPropertyOptions.AffectsDisplay)); 
  Notice, I'm trying to add the rad property to RadListBoxItem in the MultiSelectComboBoxElement static constructor.

  • My theme (XML) defines some visual settings for RadListBoxItems with selector condtions that use my new property.  Here's one example:
<XmlPropertySettingGroup> 
  <PropertySettings> 
    <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientStyle" Value="Linear" /> 
    <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.NumberOfColors" Value="4" /> 
    <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientAngle" Value="90" /> 
    <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientPercentage" Value="0.5015975" /> 
    <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientPercentage2" Value="0.5623003" /> 
    <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Visible" /> 
    <XmlAnimatedPropertySetting EndValue="White" Property="Telerik.WinControls.VisualElement.BackColor" Value="" />
    <XmlAnimatedPropertySetting EndValue="255, 235, 173" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor2" Value="" />
    <XmlAnimatedPropertySetting EndValue="255, 215, 106" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor3" Value="" /> 
              <XmlAnimatedPropertySetting EndValue="255, 213, 156" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor4" Value="" /> 
  </PropertySettings> 
  <Selectors> 
    <XmlClassSelector ElementClass="ListBoxItemSelectionFill" AutoUnapply="False"
      <Condition xsi:type="XmlSimpleCondition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        <Setting Property="Telerik.WinControls.UI.RadListBoxItem.IsHighlighted" Value="True" /> 
      </Condition> 
    </XmlClassSelector> 
  </Selectors> 
 </XmlPropertySettingGroup> 

I set the IsHighlighted value in code using item.SetValue(IsHighlightedProperty, true). This seems to work because subsequent calls to item.GetValue(IsHighlightedProperty) return true. I know telerik is using my theme as I see other visual changes and it does not throw any exceptions about not being able to find the IsHighlighted property, but the control style never changes at runtime (the item's background doesn't change).  Any help would be greatly appreciated.
Nick
Telerik team
 answered on 03 Apr 2009
1 answer
202 views
Can a RadTextBoxElement be data bound?

The following code successfully binds a RadTextBox to a data field:

        class MyObject 
        { 
            public double Number { getset; } 
            public string Title { getset; } 
        } 
 
        public Form1() 
        { 
            MyObject myObject = new MyObject() { Number = 5, Title = "Hello" }; 
            RadTextBox textBox = new RadTextBox(); 
            textBox.DataBindings.Add(new Binding("Text", myObject, "Title")); 
            Controls.Add(textBox); 
        } 

However, the following code fails to bind a RadTextBoxElement to the same data field:

        class MyObject 
        { 
            public double Number { getset; } 
            public string Title { getset; } 
        } 
 
        public Form1() 
        { 
            MyObject myObject = new MyObject() { Number = 5, Title = "Hello" }; 
            RadTextBoxElement textBox = new RadTextBoxElement() { MinSize = new Size(200, 0) }; 
            textBox.DataBindings.Add(new Binding("Text", myObject, "Title")); 
 
            RadPanel elementsContainer = new RadPanel(); 
            elementsContainer.PanelElement.Children.Add(textBox); 
            Controls.Add(elementsContainer); 
        } 

Is databinding supported on a RadTextBoxElement?  If so, am I doing it wrong?

Thanks,
Michael Hewitt
Precision Software Design, LLC
Victor
Telerik team
 answered on 03 Apr 2009
1 answer
295 views
Hello -

I'm trying to cause a RadTextBoxElement to automatically size to its text, similar to the way a TextPrimitive automatically sizes to its text.  Here is the code snippet:

        public Form1() 
        { 
            StackLayoutPanel panel = new StackLayoutPanel(); 
            panel.Orientation = Orientation.Horizontal; 
            panel.AutoSize = true
            panel.Children.Add(new TextPrimitive() { Text = "Color:" }); 
            panel.Children.Add(new RadTextBoxElement() { Text = "Purple" }); 
            RadPanel elementsContainer = new RadPanel(); 
            elementsContainer.ThemeName = "Desert"
            elementsContainer.PanelElement.Children.Add(panel); 
            Controls.Add(elementsContainer); 
        } 
 
 

The TextPrimitive properly sizes to its text ("Color:"), but the RadTextBoxElement fails to size to its text ("Purple").  If I set AutoSize = true on the RadTextBoxElement, nothing changes.  If I also set the AutoSizeMode to WrapAroundChildren, still no change.  Can you advise me on how to make this work?

Thanks,
Michael Hewitt
Precision Software Design, LLC
Mike
Telerik team
 answered on 03 Apr 2009
1 answer
122 views
I have a simple form with three docked windows. The first is on the bottom, taking half the screen, then two equal size panels on the top. When I hide the left top panel, then the right top panel, then unhide them (in either order), the left top panel is only about 25 pixels wide (probably your default minsize), and the right panel takes up the rest of the top half of the screen. Shouldn't unhide restore the panel to it's original size? I don't want to set the minsize to half the screen because my users might want to make it smaller. I have tried responding to the resize event, but then the contents of the DockPanels get unsysnced with the DockPanel size, although they are set up to fill the DockPanels. I've tried setting PreferredDockSize in the form load, that does not seem to help.
Julian Benkov
Telerik team
 answered on 03 Apr 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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?