Telerik Forums
UI for WinForms Forum
1 answer
121 views
With a dockingManager that isAuto-detecting MDI children on a form, I've noticed that when resizing the parent form there is a considerable performance hit when there are several MDI children hosted on the form.  It appears that the docking manager is doing the resize.

Anyone have any suggestions for ways to speed this up?  I thought about cancelling the resize events of the forms that are not visible, but then I would have to know what to resize them to when the user activates their tab.

Thanks,
Adam
Julian Benkov
Telerik team
 answered on 30 Oct 2008
5 answers
310 views

Hi,

I have to dynamically create a RadTabStrip control inside form (form MDI application).
I used this code:
-------------------------------------------------------------------
Telerik.WinControls.UI.RadTabStrip radTabStrip = new Telerik.WinControls.UI.RadTabStrip();

radTabStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254)))));
radTabStrip.Dock = DockStyle.Fill;

Telerik.WinControls.UI.TabItem t1 = new Telerik.WinControls.UI.TabItem("Tab 1");
Telerik.WinControls.UI.TabItem t2 = new Telerik.WinControls.UI.TabItem("Tab 2");
Telerik.WinControls.UI.TabItem t3 = new Telerik.WinControls.UI.TabItem("Tab 3");

radTabStrip.Items.AddRange(new Telerik.WinControls.RadItem[] { t1, t2, t3 });

t1.ContentPanel.BackColor = System.Drawing.Color.Transparent;
t2.ContentPanel.BackColor = System.Drawing.Color.Transparent;
t3.ContentPanel.BackColor = System.Drawing.Color.Transparent;

Button b1, b2, b3;
b1 = new Button(); b2 = new Button(); b3 = new Button();
b1.Text = "Bottone 1"; b2.Text = "Bottone 2"; b3.Text = "Bottone 3";
t1.ContentPanel.Controls.Add(b1);
t2.ContentPanel.Controls.Add(b2);
t3.ContentPanel.Controls.Add(b3);

radTabStrip.TabsPosition = Telerik.WinControls.UI.TabPositions.Bottom;

this.Controls.Add(radTabStrip);
-------------------------------------------------------------------
This code works, but the control isn't displayed fine! In particular tab buttons are not displayed as they are displayed when i use designer to create RadTabStrip.

What is the best way to solve my problem?
Thank you very much for support.

Lorenzo

Nick
Telerik team
 answered on 30 Oct 2008
1 answer
108 views
Hi, I'm evaluating the trial and one thing we'd like to do is the following:

We'd like to have a db-table with columns e.g. 'intField', 'floatField', 'textField' and a 'type-selector' of type int that is indicating which of the db-columns the grid-column should be bound to, different for each row.

With the MS-DataGridView I could derive a new column hosting a derived cell, and in this cell then just overwrite GetValue and SetValue - more or less... ;-)

I haven't found the necessary overwrites with for RadGridView and friends (yet?), so: how would I do this with the RadGridView?

TIA, Juergen
Nick
Telerik team
 answered on 30 Oct 2008
1 answer
91 views
HI.

I need to move items up and down (ordering). Is it possible to drag and drop radlistboxitem within the same radlistbox?

Thanks,
-j
Nick
Telerik team
 answered on 30 Oct 2008
1 answer
74 views

I have a date column which is in MM/dd/yyyy format. This doesnt sort ascending or descending for all the grids in my application. I am sure what I have done is right. Still it doesnt sort right when I click on header. Please help. One way of doing it is after binding the data source by adding

 

radgvSixMonthPurchases.Columns[

"transactionDate"].FormatString = "{0:MM/dd/yyyy}";

 

 

and othe way is through cell formatting like:

 

 

private void radgvSixMonthPurchases_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e){
if (e.CellElement is GridDataCellElement)
{
Font font = new Font("Tahoma", 6.75F);
e.CellElement.Font = font;
if (((GridViewDataColumn)e.CellElement.ColumnInfo).FieldName == "transactionDate")
{
if (!e.CellElement.Text.StartsWith("0:"))
{
DateTime temp = DateTime.Parse(e.CellElement.Text);
e.CellElement.Text = temp.ToString(
"MM/dd/yyyy");
}
Font newfont = new Font("Tahoma", 7, FontStyle.Underline);
e.CellElement.Font = newfont;
e.CellElement.ForeColor =
Color.Blue;
}
}

 

Nick
Telerik team
 answered on 30 Oct 2008
1 answer
95 views

When I use simple wrapper of RadTreeView in our company namespace the component looks different:

 

namespace ComponentWrappers

{

  public class RadTreeView: Telerik.WinControls.UI.RadTreeView

  {

  }

}

 

ComponentWrappers namespace is on the left, Telerik.WinControls.UI is on the right:

http://picasaweb.google.ru/Alex.Kostikov/pMuNfD#5261842238804074226

 

How to make component from ComponentWrappers.RadTreeView look like native Telerik control?

Nikolay
Telerik team
 answered on 29 Oct 2008
2 answers
97 views
Hi i have a RadChildForm that is being used for an MDI interface. All instances of these child forms are being created at run time. I have given this child form several properties, however when i try to access these properties using this.MdiChildren.ElementAt(0) or just this.MdiChildren[0], i don't have access to any of the properties that I created. The only type of children it seems to get is just the plain system.windows.form, is there a way i could have access to Rad Child Form properties? Thanks in advance.
Afaan
Top achievements
Rank 1
 answered on 29 Oct 2008
1 answer
166 views

I'm having a theme issue regarding a rad scroll bar that is dynamically added to a custom component.

I have loaded the RadThemeManager and am able to check the count to see in fact that the RadThemeManager is loaded with our themes, everything looks to be loaded as expected.

I create the RadVScrollBar control and set correct the theme name.

However, when the page is loaded the scroll bar is still using the default theme.  Here are some code excerpts:

    public partial class ThumbViewer : RadPanel
    {
        public ThumbViewer()
        {
            InitializeComponent();

            // This will get all the themes loaded into a theme manager
            themeEngine = new APCM.App_Code.ThemeEngine();
            radThemeManager = themeEngine.GetControlThemes();
            MessageBox.Show(radThemeManager.LoadedThemes.Count.ToString());
            
            // Create and add the scrollbar
            scroll = new RadVScrollBar();
            scroll.ThemeName = "OurTheme";
            scroll.Dock = DockStyle.Right;
            scroll.ValueChanged += new EventHandler(scroll_ValueChanged);
            MessageBox.Show(scroll.ThemeName);
        }
    }

Like I said, the rad scroll bar is NOT loaded with the expected theme.

Thanks In Advance,
Josh

Nikolay
Telerik team
 answered on 29 Oct 2008
1 answer
58 views
Hi,
I'm evaluating the RadControls for WinForms and see some effects I would call bugs...
But I'm not sure if this might not result from cruft on my machine (last re-install is sometime ago), so I'd just like to ask if someone can confirm my sightings:

- In the demos open RadDock/'Tabbed Document' or MDI, undock Log or Settings window and let it float somewhere, then grab it again and try to dock it back. If the transparent window you want to dock overlaps (even slightly) with the 'docking arrows' when they appear or disappear those arrows (after disappearing: at their new position) are filled grey and not filled with their blue bitmaps.

- in design mode, if I open the 'Property Builder' for the dropdown part of a RadMultiColumnComboBox and close it, I get a null-reference exception.

Both seem no 'showstoppers' but if I can find them after only short time of experimentation, it's not good for my confidence in these controls ;-)
So: are these reproducible by someone?

TIA, Juergen
Nick
Telerik team
 answered on 28 Oct 2008
1 answer
139 views
Hi!

I am adding RadListBoxItem(s) to a RadListBox at runtime and I need to scroll to view the last one added. When I set the last one to SelectedItem the RadListBox scrolls to the selected item but only the upper half of the item, I "solved" it before by adding an empty item at the end, but now it is not possible and I need a "real" fix. ScrollControlIntoView can't be used since it takes a Control and the Items are RadItem(s). Any ideas?

Thanks,
- jorge
Nick
Telerik team
 answered on 28 Oct 2008
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?