Telerik Forums
UI for WinForms Forum
1 answer
1.2K+ views
i have a MDI form in my application. the UI uses custom controls made of diff rad controls, also has a few forms.

now i want to apply theme for the whole application at start up. i dont want to set the ThemeName property for each control. how can i do this easily?
Nikolay
Telerik team
 answered on 28 May 2010
1 answer
213 views
Hi there,

I'm pretty new with Telerik and have a question. I have a RadDock1 on a form. On that form there is also a button. Every time the users clicks this button I want to create a new tab on RadDock1 filled (maximized) with a (win)Form (named "frmProject").
I've created a sub "AddPage":

    Private Sub RadButtonElement1_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles RadButtonElement1.Click  
        AddPage(frmProject, "Project")  
    End Sub 
 
 
    Private Sub AddPage(ByVal f As Form, ByVal strPage As String)  
 
        RadDock1.DockControl(f, DockPosition.Fill, DockType.Document)  
 
    End Sub 

The first time the user clicks the button a new tab is added with the form filled on it. But the second time the user clicks the button only a tab is added. I can't see the form.

Can you please tell me what I am doing wrong?

Kind regards,
Ronald
Nikolay
Telerik team
 answered on 28 May 2010
2 answers
139 views
We have a RadListBox populated with about 10 items.

The initial display is fine, but when we scroll down to see further items the height of each item is altered.
In the attached file the first image shows the correctly diplayed RadListBox. The second image shows the result of scrolling down only one item.

Worse: the scroll bar has not compensated for the altered height of each item so that it is impossible to scroll further down to the end of the list.

We have tried the following, but nothing works:
i. forced the items to not TextWrap,
ii. populate items with no image

Is it possible to prevent this behaviour?

Thanks in advance.
Neo Cortex
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
148 views
If I inherit From RadTabStrip the tabs do not follow the theme.

They appear as a box.


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
using Telerik.WinControls.UI; 
using Telerik.WinControls; 
 
namespace TabSample 
    
        public class UITabControl : RadTabStrip 
        { 
           
            private List<UITab> _tabs = null
 
            public UITabControl() 
                : base() 
            { 
                Dock = DockStyle.Fill; 
                EnableTabControlMode = true
                AutoSize = true
                _tabs = new List<UITab>(); 
            } 
 
            public void CreateTabs() 
            { 
                for (int i = 1; i < 5; i++) 
                { 
                    TabItem tab = new TabItem(); 
                    tab.Text = i.ToString(); 
                    RadButton b = new RadButton(); 
                    b.Text = i.ToString(); 
                    b.Click += new EventHandler(b_Click); 
                    tab.ContentPanel.Controls.Add(b);    
                    this.Items.Add(tab); 
                } 
            } 
 
            void b_Click(object sender, EventArgs e) 
            { 
                RadButton b = (RadButton)sender; 
                if (b.Text == "1"
                    ThemeResolutionService.ApplicationThemeName = "Aqua"
                if (b.Text == "2"
                    ThemeResolutionService.ApplicationThemeName = "Desert"
                if (b.Text == "3"
                    ThemeResolutionService.ApplicationThemeName = "Breeze"
 
            } 
       
        } 
     

Troy
Top achievements
Rank 1
 answered on 27 May 2010
5 answers
171 views
Greetings,

I have a RadDockPanel with a RadPanelBar on it, with multiple RadPanelBarGroupElements on the RadPanelBar.  I'd like a horizontal splitter between each RadPanelBarGroupElement (as exists between/attached to multiple DockPanels for example, making each dock panel sizable)...So I can allow the user to size each RadPanelBarGroupElement...as well as collapse them which i'm currently allowing...

Thoughts?

Thanks,
GBute
Nikolay
Telerik team
 answered on 27 May 2010
1 answer
155 views
Hi
I created a custom theme file MyCustomBreeze1.xml .   In one form i drag and drop radThemeManager and in "loadedthemes" property I added a Themesouce and selected a file from location C:\Trials\Components\MyCustomBreeze1.xml

When we compile and run the applicationl, things looks working and theme is applied to grid control.

But when i publish the project using click once and deploy it on "Test"  machine, theme does not work.  it looks like radThemeManager  is looking for path C:\Trials\Components\MyCustomBreeze1.xml  on "TEST" machine.

How to resolve it ?     Is there a way i can load theme dynamically at runtime from XML file and apply it to a particular control ?

Regards






Nikolay
Telerik team
 answered on 27 May 2010
9 answers
2.5K+ views
Hello,

I have a TextColumn in my grid that contains numeric data.

I don't want to change it to a DecimalColumn...

When I sort, it's sorted only concerning the first digit, because it is text.

Is there a way to convert it to numeric data for sorting in my Sorting Expressions?

If not: How can I add an empty value to a DecimalColumn by using a value Array?

Best regards.

Nadine
Jack
Telerik team
 answered on 27 May 2010
2 answers
125 views
I am trying to achieve a page up/down functionality for a Point of sale.

Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true

with two bottons Page up / Page down

If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?

I tried using for page down

radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);

I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.

With very little success.

Thank you in advance
Victor
Telerik team
 answered on 27 May 2010
1 answer
137 views
We have been evaluating the GridView for several weeks now and now we have a couple of questions which hopefully somebody can answer

Extending the Context Menu

We have added some extensions to the context menu . However we need to change the Menu Label based on a event click. So far we have not been able to do that. Is that possible ?


Parent/Child Grids

We have a parent child relationship inside a Grid. The grid populates correctly the first time and then we change some of the data in the Child Grid. This causes the Grid to not show any data anymore. Any ideas ?

Saving Preferences

We would like the users to be able to save and store their preferences for the following

1. Column Positions
2. Grouping Preferences
3. Sort Preferences
4. Conditional Formatting Rules

Is this possible

Conditional Formatting based on values in other columns

We would like the user to be able to setup Conditional Formatting rules where the rule is based on another column For eg:- if Shipped Qty > Req Qty (where both these fields are columns of the Grid) then apply the formatting rule.

Is this possible
Alexander
Telerik team
 answered on 27 May 2010
1 answer
230 views
I'm playing around with the ribbon bar, trying to recreate the look of our app with your controls. 

Anyway our current ribbon bar uses Icons (.ico) files  

I tried adding the .ico to your ribbon bar (.ico wasn't a default extension for an image but I tried it anyway)  It crashed the designer.   Something about transparency and bitmaps.  Anyway I couldn't figure out how to recover so I shut down visual studio and restarted.  So I ended up losing my changes, is there anything I can do if this happens in the future?

Anyway I converted them to PNG's and they seem to work fine.

Just wondering in the future if .ico should be supported, or if I need to convert them?

Thanks 

Troy
Martin Vasilev
Telerik team
 answered on 27 May 2010
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
ProgressBar
CheckedDropDownList
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?