Telerik Forums
UI for WinForms Forum
7 answers
250 views

I have a panelbar on a usercontrol. This panelbar was added with the VS Designer and thus looks great. Runtime this panelbar is filled with nodes. The top level nodes look good, because they are nodes in the panelbar that was created with the designer.
Now when I add nested panelbars runtime, they look horrible. What I do is, I enable the "EnableHostControlMode" for the top node and create a new panelbar from scratch which I add to the ContentPanel.Controls.

My question: How do I get the nested panelbars to look the same as their parents, programmaticaly?

Here's a piece of the code:
else if (mftn.Nodes.Count > 0)
{
    rpgeToAdd.EnableHostControlMode =
true;
    rpgeToAdd.ContentPanel.Dock =
DockStyle.Fill;
    rpgeToAdd.ContentPanel.BackColor = System.Drawing.
Color.Transparent;

    Point location = new Point(0, 0);
    for (int i = 0; i < mftn.Nodes.Count; i++)
    {
        RadPanelBar newNode = BuildPanelbarElementNode(mftn.Nodes[i]);
        newNode.Size =
new Size(100, 100);
        newNode.Location = location;
        locaction.Y += 100;
        rpgeToAdd.ContentPanel.Controls.Add(newNode);
     }
}

private RadPanelBar BuildPanelbarElementNode(MeterFunctionTreeNode mftn)
{
    RadPanelBar panelBar = new RadPanelBar();
    panelBar.ThemeClassName = "Telerik.WinControls.UI.RadPanelBar";

    panelBar.ThemeName = "Telerik";

    panelBar.Style = functionTree.Style;
    panelBar.BackColor = System.Drawing.
Color.Transparent;
    panelBar.RootElement.BackColor = System.Drawing.
Color.Transparent;

Boyko Markov
Telerik team
 answered on 16 May 2007
0 answers
115 views
Dear all,

It is our pleasure to announce that SP1 for RadControls for WinForms Q1 2007 has just been released! Several new features have been added to the controls and numerous bugs have been fixed.

In the next service pack you can expect a much needed revision of the help files for all products, as well as new examples and themes.

We would like to thank you all for your feedback and persistence! We hope that you will enjoy working with the new version.

The Telerik Team


What's new in RadControls for WinForms Q1 2007 SP1 (all products):

Enhancements and new features 

  1. Validation on item level 
  2. Optimization for Font changes 
  3. Added String indexer for RadItemsCollection 
  4. Added new events to the docking: Deactivated and Closed 
  5. Property for opacity for the dragged dock window 
  6. Added MinimumSize and MaximumSize properties for the docking windows 
  7. New RadGridView events:
    • DataBindingComplete
    • CellClick
    • CellDoubleClick
    • CellFormatting
    • CellMouseMove
    • RowFormatting
    • RowMouseMove
    • CurrentRowChanging
    • CurrentRowChanged 
  8. RadGridView - value formatting with aggregate values for the group fields
  9. RadGridView - added property AllowColumnRemove 
  10. RadGridView - added command column that allows for custom actions when it is clicked 
  11. RadGridView - added API for “Column Best Fit” functionality 
  12. RadGridView new examples:
    • Conditional Formatting
    • Events
    • New Row
    • Column Chooser
  13. RadTreeView new examples
    • Check Boxes
    • Layout
  14. RadPanelBar – introduced texts as localizable props 
  15. RadToolStrip - introduced texts as localizable props 
  16. RadRibbonBar - added application menu's Exit and Options buttons with design time support 
  17. RadRibbonBar – added support for setting the start menu’s width 
  18. RadRibbonBar – fixed application menu to support constant width 
  19. RadRibbonBar – added a prop to set the application menu’s width 
  20. RadTextBox - added support for transparent BackColor
Bug fixes
  1. Design time issues:
    • Modifications in the Items collection didn’t invalidate the designer
    • UI element editor’s property grid deselects the component after changing a property
    • One of the two Name properties has been removed
    • Fixed several problems with RadGridView designer (“RadGridView Property Builder”) – wrong serialization, incorrect initialization, errors on open, etc.
    • Visual Studio restarts when all nodes of the TreeView are deleted
    • Problems when opening the Chart wizard
    • Fixed copy-paste of RadRibbonBar control 
  2. Framework fixes: 
    • Popup menu on Multimonitor system does not show on the correct monitor 
    • Fixes in the logic for focusing elements
    • Fixed several memory consumption issues 
  3. RadGridView fixes: 
    • Fixed Multicolumn sorting issues 
    • Hiding of grouping panel 
    • Binding source is not updated when the DataSource is set to NULL 
    • Error when setting EnableGrouping to false 
    • Context menu was not affected by AllowAddNewRow, AllowEditNewRow, AllowDeleteRow - fixed 
    • Problems loading GridView in VisualStyleBuilder 
    • Problems with the filtering (just first letter filtering was working ok, filter with sort was not working correctly, text disappearing after certain filtering actions, etc.) 
    • Fixed several problems with AutoSize columns 
    • Exception when using conditional formatting is now fixed 
    • The logic for the IsPinned property is fixed 
  4. RadDock fixes: 
    • Advanced layout designer - save after element removal did not work 
    • Incorrect resizing of the docking windows 
    • NullReferenceException when clicking ActiveDocument for the selected DockPanel
    • Serialization problems for hidden windows 
    • Wrong initial size of the autohide popup 
    • Text property for DockPanels was not serialized correctly 
  5. Fixes for other controls
    • RadMenu - fixed a problem with the menu background (it was transparent for the area where there are no items) 
    • RadPanel – drag-and-drop of controls was not working 
    • RadPanel - when holding child controls the border and gradient disappear 
    • RadPanelBar – flickering when selecting different panelbars 
    • RadPanelBar - caption was with incorrect size after ScrollBar disappears 
    • RadRibbonBar – exception deleting RibbonBar from a form 
    • RadRibbonBar - error when deleting chunks from the ribbon 
    • RadTabStrip – overflow button didn’t appear even when its visible property is set to true 
    • RadTabStrip - error when the tab before the last one is deleted and new tab is added 
    • RadToolStrip – problem with the theme when floating a ToolStripItem (the theme was applied to the first button only) 
    • RadTextBox – particular texts were not set correctly 
    • RadTreeView – problem changing item’s height 
  6. Fixes in examples
    • When shrinking the QSF window the main TabStrip disappears
    • VB’s example "TabStrip as TabControl" was showing 3 message boxes while loading and buttons were showing their message boxes more than once 
    • RadTreeView -> CheckBoxes example - nodes disappearing after scrolling and collapsing of level 0 nodes 
    • RadGridView -> Events – reorder and click on row header raised an error 
    • RadGridView -> Data binding – an exception was thrown when choosing items 
    • RadDock -> Tabbed documents – the items could be changed for the first time only 
    • RadRibbonBar -> First Look – mouse over the second item in the gallery would make the item disappear
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 16 May 2007
7 answers
349 views
I am trying to assign a value to a textbox control on a form and use the following code.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim txtusername As TextBox

txtusername = FormView1.FindControl("username")

txtusername.Text = getIdentity()

End Sub

Public Function getIdentity() As String

getIdentity = (User.Identity.Name)

End Function


The function works fine but I get the error - Object reference not set to an instance of an object when I try to run it.

This will work fine if I drag a textbox onto the page but just not when it is in a form template.

I am extremely new to vb.net and am using vwd 2005.

Any help would be greatly appreciated.
Kevin
Top achievements
Rank 1
 answered on 15 May 2007
4 answers
128 views
I downloaded r.a.d. RibbonBar from the Microsoft Connect website link that I got when I installed Visual C# Express.  I've installed it, but it doesn't show up in the toolbox within Visual C# Express.  it does show up in Visual Studio 2005 though.  Any idea why this is happening?  If this control is on the Microsoft Connect downloads site along with other things for the Express editions of Visual Studio products, shouldn't it work with the express editions?
jaypee68
Top achievements
Rank 1
 answered on 15 May 2007
3 answers
251 views
I am using the RADTapStrip (v 2.2) winforms control on a VB.Net form. I am buliding the tabitems dynamically. When I select a tab it changes color to indicate the tab selected but the other tab also retains its selected color state instead to return to its default state. I would have thought this behavior would be built in but evidently I need to change it programmically, how do I do this?  I there a property I need to set when I create the TabItem?
Vassil Petev
Telerik team
 answered on 15 May 2007
19 answers
296 views
Is it possible to have a hierarchial Tabstrip for winforms, similar to asp.net tabstrip?
Vassil Petev
Telerik team
 answered on 15 May 2007
3 answers
90 views
Does Telerik offer any spell check control, which can be used with a RichTextBox in a winforms application.
Vassil Petev
Telerik team
 answered on 15 May 2007
1 answer
162 views
I seem to be getting a pile of these when I add a charting control to the form:

The type 'Telerik.Charting.XXXX.XXXX' exists in both 'i:\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\Telerik.Charting.dll' and 'i:\Telerik\Reporting1.0\bin\Telerik.Reporting.dll' I:\Visual Studio 2005\Projects\DojoDashboard\DojoDashboard\User Controls\Content Panels\Summary\ucEnrollment_Class.Designer.cs 31 37 DojoDashboard

Anybody have any ideas?
Chavdar
Telerik team
 answered on 15 May 2007
5 answers
100 views
Is there a way to type in a column, and the row be selected?

Let's say you type "j" -- you want the first row where "j" occurs in that column. You continue -- "ja" and you get the row with "jason" in it.
Mike
Telerik team
 answered on 15 May 2007
9 answers
117 views
I have aproject that I need to add a los of UI object in runtime, It will be great if I can create de object in Desing and click a button and get the code to create a method that create de object like the one I am Seeing in desing view.
Dimitar Kapitanov
Telerik team
 answered on 11 May 2007
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?