Telerik Forums
UI for WinForms Forum
1 answer
293 views
Hi,

  I'm trying to figure out a good way to dock a form onto an MDI Parent RadDock from a child form.  The method I have been using is as follows:

Dim dockOpen As Integer = 0

For Each checkdoc As DockWindow In RadDock1.DockWindows.DocumentWindows
      If checkdoc.Name = "NameofForm1" Then
                  dockOpen = 1
      End If
Next

If dockOpen = 0 Then
    'Open Form
    Dim OpenForm As new NameofForm()
    OpenForm.Text = "Form Title"
    RadDock1.DockControl(OpenForm, UI.Docking.DockPosition.Fill, UI.Docking.DockType.Document)

    Dim dockable As DockWindow = GetDockableByName("NameofForm1")
    If Not dockable Is Nothing Then
        Me.RadDock1.ActiveWindow = dockable
    End If
Else
    Dim dockable As DockWindow = GetDockableByName("NameofForm1")
    If Not dockable Is Nothing Then
        Me.RadDock1.ActiveWindow = dockable
    End If
End If

This works fine when I call it from within my MDI Parent form.  The problem is from my Child Form I can't see 'RadDock1' or 'GetDockableByName'.  Can anyone help me out?

Thanks,
Will
William Willson
Top achievements
Rank 1
 answered on 30 Nov 2010
2 answers
274 views
Private Sub TelricGridViewFormat()

        Dim textBoxColumn As New GridViewTextBoxColumn()
        With RadGridView1
            textBoxColumn.Name = "TextBoxColumn"
            textBoxColumn.HeaderText = "Item"
            textBoxColumn.FieldName = "DLC"
            textBoxColumn.MaxLength = 50
            textBoxColumn.TextAlignment = ContentAlignment.BottomRight
            RadGridView1.MasterTemplate.Columns.Add(textBoxColumn)
        End With
    End Sub

Type 'GridViewTextBoxColumn' is not defined error show on line one.
Emanuel Varga
Top achievements
Rank 1
 answered on 29 Nov 2010
3 answers
181 views
Good Day/Evening,

I've been using the new CommandBar which looks awesome I think but I have a problem with the CommandBarTextbox, I've put the CommandBarTextbox in the CommandBar and added the following code below but the events do not get hit at all. Any help would be much appreciated.

Public Sub New()
 
    ' This call is required by the designer.
    InitializeComponent()
 
    ' Add any initialization after the InitializeComponent() call.
    AddHandler txtMyCommandTextBox.KeyDown, AddressOf txtMyCommandTextBox_KeyDown
    AddHandler txtMyCommandTextBox.KeyPress, AddressOf txtMyCommandTextBox_KeyPress
    AddHandler txtMyCommandTextBox.KeyUp, AddressOf txtMyCommandTextBox_KeyUp
 
End Sub
 
Private Sub txtMyCommandTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs)
    RadMessageBox.Show(e.KeyCode)
End Sub
 
Private Sub txtMyCommandTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
    RadMessageBox.Show(e.KeyChar)
End Sub
 
Private Sub txtMyCommandTextBox_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
    RadMessageBox.Show(e.KeyCode)
End Sub
Richard Slade
Top achievements
Rank 2
 answered on 29 Nov 2010
2 answers
109 views
HI ,
I am using in my winform app (Version Telerik Q3) in your Defult (Black Office And Windows 7)Theam And Whan i Run The app on Win Xp all lables are dissapre ,
when i Modify the Window Color Scheme To Silver The Lables Are Appering -On WIndow 7 Or Xp The Problome Dont Exist
THX
Ivan Petrov
Telerik team
 answered on 29 Nov 2010
1 answer
124 views
Hello how are you ?

as I can fill a RadMultiColumnComboBox1 with Linq, I do DataTable and all goes well but I can not do linq. Anyone can help me?

Thankyou.

hdello how are you,

asd
Nikolay
Telerik team
 answered on 29 Nov 2010
1 answer
133 views
Hello everybody.
i have a grid with RightToLeft direction. I need to change the direction of column[1] to LeftToRight. How this can be done?

thanks.
Emanuel Varga
Top achievements
Rank 1
 answered on 28 Nov 2010
3 answers
176 views
Hello,
          I want to hide the visibility of TimeZone dropdown menu in radScheduleNavigator.

          Can anyone suggest how to do this in C#

Thanks..
Richard Slade
Top achievements
Rank 2
 answered on 27 Nov 2010
2 answers
336 views
good day, in the examples show how Setting Groups Programmatically.
Dim descriptor As New GroupDescriptor()
descriptor.GroupNames.Add("Country", ListSortDirection.Ascending)
Me.RadGridView1.GroupDescriptors.Add(descriptor)

excellent...!
Now. how I can delete that same Group Descriptor named descriptor, Programmatically.
I try to find one solution but I could not...
Greetings.
Fernando
Top achievements
Rank 1
 answered on 26 Nov 2010
1 answer
87 views
I designed a pie chart and set item name and label properties so that text describing the 'piece of pie' appears, instead of numeric value. In preview mode, all works as expected. But, as a result of setting a DataSource in vb.net (chart.DataSource = array in NeedDataSource event) the item name and label properties seem to be reset. Have tried setting them in various events thereafter (subsequently in NeedDataSource and in ItemDataBound) but haven't found the way to override numeric value labels. What's the trick? (Have also tried setting AutoScale to false and every other hint I've read in forums.) How can I set item labels after setting datasource via an array? Thanks!
Massimiliano Bassili
Top achievements
Rank 1
 answered on 26 Nov 2010
4 answers
425 views
Hi,

I have 2 SummaryRowsBottom in my RAdGridView. In first SummaryRowsBottom, I am showing the sum of each column.  The second SummaryRowsBottom is pouplating from the database. This all is working fine.

Now, I want to add 1 more SummaryRowsBottom and I want to show the difference of values of above 2 SummaryRowsBottom. Can you please help me how to do this?

Regards!
Emanuel Varga
Top achievements
Rank 1
 answered on 26 Nov 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
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?