Telerik Forums
UI for WinForms Forum
10 answers
1.1K+ views
Is it possible to open a windows form in an already existing tab?  I have predefined tabs in a DocumentTabStip and I want to open a windows form inside of the tab when the tab is selected.

Doing the following will fill the existing tab and create a new blank tab, but I just want to fill the existing tab.  I'm sure I'm missing something simple here, but have been struggling for some time.  If I eliminate the second line, I get an error.

 
Dim myForm As New Form1()
Me.DocumentWindow1.DockManager.DockControl(myForm, DocumentWindow1, DockPosition.Fill) 
  
DocumentWindow1.Controls.Add(myForm) 
  
  

 

 

 

 

 

 


Nikolay
Telerik team
 answered on 22 Oct 2013
1 answer
226 views
Hi,

I recently installed RadControls for WinForms, Q2 2013 SP1, 13.2.725.0.   When I ran the demo to see what was new, the demos all follow the Metro theme.   In some past demos, there was a run-time link or control to re-style the demo to use another theme, but I did not see one is this demo.  Hopefully it's there and I just missed it.

Frankly I'm not a fan of Metro's blocky, crayon-like primary-colored, squared-off appearance. 

Is there any way to change the theme during the demo's run?   Or would i have to go change the Demo's source code and rebuild it to do that?

Thanks!
-Bob
Nikolay
Telerik team
 answered on 22 Oct 2013
1 answer
191 views
Hi!

I would like to resize my gridtimepicker clock. Main issue is that by default its size hides minutes to choose. I have to resize the clock manually every time to show these options which is irritating. Default view in attachment. How can I solve this problem?

And in addition. How to change color of the hand of the clock? Eg. in Style Builder?

Thanks in advance,
Szymon.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Oct 2013
4 answers
157 views
I want to know how to :
1- move template part to make value column under the net effect column in parent row.
2- get template summary value ...I couldn't read it.
3- recalculate net effects column, so the net value column on same time of template summary calculated.

thank you very much

best regards
George
Telerik team
 answered on 22 Oct 2013
0 answers
70 views
I am employing many client-side events to show/hide two different AutoCompleteBoxes (RACB) based on certain conditions.  I also target the entry added event to display some textboxes on the fly.  Mostly everything is working well, however, IE10 is presenting some issues.  Upon typing in a letter on the initial load of the control, the next matching record is automatically input into the RACB without actually selecting anything.  Once it is removed, the RACB works as designed.  It is only on the initial load of the control.
Emily
Top achievements
Rank 1
 asked on 21 Oct 2013
2 answers
255 views


Hi, how do I display the grid's context menu if there are no rows in the grid? I want to right click in the white space and show the context menu.

Thanks,
Stefan
Telerik team
 answered on 21 Oct 2013
2 answers
242 views
What is the proper way to remove a row and set the previous row as active(if # of rows > 0) on a sorted and/or filtered and/or grouped radGridView?
I populate my radGridView manually with a stored procedure.
The first column in the rGV is a button column when the user presses the button the row should be removed and the previous row set as active/current.
I had this working perfectly when using the DataGridView included with VS2012 but now I'm getting an IndexOutOfRangeException thrown.

 

Private Sub DataGridView4_CellContentClick(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles DataGridView4.CellClick
    If e.ColumnIndex = 0 Then
        intDataGridSelectedIndexRenewalC = DataGridView4.CurrentRow.Index
        If sps_EIPHasBeenBilled(DataGridView4.CurrentRow.Cells("Policy_no").Value.ToString) Then
            RenewalsCommercialMarkComplete()
        Else
            MsgBox("Unable to Mark This Policy as Complete! " & DataGridView4.CurrentRow.Cells("Policy_no").Value.ToString & " Has Not been Billed Yet.", vbOKOnly)
        End If
    End If
End Sub
 
Private Sub RenewalsCommercialMarkComplete()
    Dim UpdateStatus As Boolean
    Dim SQLQuery As String = "exec " & strDefaultDatabase & ".dbo.spu_EIPRenewalMarkCompleteByRenewalID '" & DataGridView4.CurrentRow.Cells("RenewalsID").Value & "', '" & strLoggedInUserFullName & "'"
 
    If MsgBox("Do you wish to mark this record: " & DataGridView4.CurrentRow.Cells("Customer").Value.ToString & ": " & DataGridView4.CurrentRow.Cells("Policy_no").Value.ToString & " as complete?", vbYesNo + vbQuestion, "Renewal Mark Complete") = vbYes Then
        UpdateStatus = WriteSQL_Data(SQLQuery)
        If UpdateStatus Then
            MsgBox("Record: " & DataGridView4.CurrentRow.Cells("Policy_no").Value.ToString & " Marked As Complete!", MsgBoxStyle.OkOnly)
            DataGridView4.ChildRows(intDataGridSelectedIndexRenewalC).Delete()
            If (intDataGridSelectedIndexRenewalC - 1) > 0 Then
                DataGridView4.ChildRows(intDataGridSelectedIndexRenewalC - 1).IsSelected = True
                DataGridView4.ChildRows(intDataGridSelectedIndexRenewalC - 1).IsCurrent = True
            End If
        Else
            MsgBox("Unable to Connect to Database Please see your System Administrator with Error: Summary - ButtonOk_Click: ", vbOK)
        End If
    Else
        MsgBox("The Operation was Cancelled", vbOKOnly)
    End If
End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Oct 2013
1 answer
1.3K+ views

I have a problem with formatting numbers with Telerik controls (version Q3 2012).

Requirements are
 - formatting similar to ###,###,##0.00## (limiting number of decimals and also number of digits on the left of decimal point) must be supported.
 - formatting mask must be invisible so with mask ###,###,##0.00## text should be only 0.00 and not ___,___,__0.00__.

I have tried to implement this scenario with MaskedEditBox and Textbox but 
 - in MaskedEditBox i could not hide the mask
 - TextBox does not have any formatting options

Is such scenario supported with Telerik controls?
Dimitar
Telerik team
 answered on 20 Oct 2013
2 answers
137 views
Hi,

i am trying to build an editable TreeView:

if selectedNade change the current selected value goes to a radtextbox:

private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e)
        {
                TestItem item = radTreeView1.SelectedNode.DataBoundItem as TestItem;
                if (item != null)
                {
                    radTextBox1.Text = item.Name;
                    radTextBox1.Enabled = true;
                }
        }

on KeyUp Event i store the value back:

private void radTextBox1_KeyUp(object sender, KeyEventArgs e)
{
    if (radTreeView1.SelectedNode != null)
    {
        TestItem item = radTreeView1.SelectedNode.DataBoundItem as TestItem;
        if (item != null)
        {
            item.Name = radTextBox1.Text;
        }
    }
}

this doesn't work immediately, but if i click on another node then the last node updates correctly. i tried refresh(), update() and implementing INotifyPropertyChanged, but nothing worked

is live updateing possible?

greetings
jed
Top achievements
Rank 1
 answered on 19 Oct 2013
10 answers
200 views
I noticed that even though you set the Auto tooltips to True on the RadDropDownButton it has no effect - no tooltip gets displayed - and yes the Text value is set :)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Oct 2013
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?