Telerik Forums
UI for WinForms Forum
3 answers
183 views

Good morning.

            I have a problem with the vertical scrollbar in a toolwindow. I use your RadControls for WinForms Q3 2009 release. I did the following steps:

 

  1. New project, WindowsForm Application (with Visual Basic 2008 Express Edition).
  2. Insert a RadDock, “Dock new window to left”. This is ToolWindow1.
  3. Insert a radPanelBar in the toolwindow, dock = fill, groupstyle = explorerBarStyle.
  4. By clicking on a button, the radPanelBar is programmatically filled with RadPanelBarGroupElement:

 

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    RadPanelBar1.Items.Clear()

    For i As Integer = 0 To 10

      Dim ri As New Telerik.WinControls.UI.RadPanelBarGroupElement

      ri.Caption = "GroupItem" & i

      RadPanelBar1.Items.Add(ri)

    Next

  End Sub

 

If the form is small enough, you can see that no vertical scrollbar appears. As soon as you click on a groupitem, the scrollbar appears. If you click the button again, again the scrollbar disappears. What can I do to solve this problem?

 

Thank you.

Nikolay
Telerik team
 answered on 27 May 2010
1 answer
143 views
Hi,

I'm trying to update/show the status of a task which loads values from a database into a ComboBox, but the StatusStrip on the MDIParent is not updating to reflect this.

The code extract with relation to this task is as follows. I have put the database loading to a ComboBox in it's own BackgroundWorker to assist, but still no luck.

Code as follows:

    Private Sub frmTradingApplication_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load 
        'START: Set Theme for all Telerik Controls 
        Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = AppTheme 
        'END: Set Theme for all Telerik Controls 
 
        'Force Name into Name Field 
        With rtxtTradeS1_Name 
            .Text = FullName 
            .ReadOnly = True 
        End With 
 
        'Load Data into Large Cap Combo Box 
        BgWkr_LoadComboBox.RunWorkerAsync() 
 
        'Disable Large Cap Combo Box & Other Text Box 
        rcbTradeS1_LargeCapIfYes.Enabled = False 
        rtxtTradeS1_LargeCapUnlisted.Enabled = False 
 
 Private Sub rcbTradeS1_LargeCapIfYes_SelectedIndexChanged(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles rcbTradeS1_LargeCapIfYes.SelectedIndexChanged 
        Select Case rcbTradeS1_LargeCapIfYes.SelectedItem.ToString 
            Case "Please Select Large Cap Stock..." 
                ErrorProvider_NewTrade.SetError(rtxtTradeS1_LargeCapUnlisted, "Invalid Selection!"
            Case "Other / Not Listed - Other / Not Listed" 
                rcbTradeS1_LargeCapIfYes.Enabled = True 
                rtxtTradeS1_LargeCapUnlisted.NullText = "Please enter the Large Cap Stock you are trading here..." 
            Case Else 
                'Large Cap Selection OK / Disable & Clear Unlisted Box 
                With rtxtTradeS1_LargeCapUnlisted 
                    .Enabled = False 
                    .NullText = "Large Cap Selection OK" 
                End With 
        End Select 
    End Sub 
 
    Private Sub rrbTradeS1_LargeCapYes_ToggleStateChanged(ByVal sender As System.ObjectByVal args As Telerik.WinControls.UI.StateChangedEventArgs) Handles rrbTradeS1_LargeCapYes.ToggleStateChanged 
        If rrbTradeS1_LargeCapYes.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On Then 
            rcbTradeS1_LargeCapIfYes.Enabled = True 
        Else 
            rcbTradeS1_LargeCapIfYes.Enabled = False 
        End If 
    End Sub 
 
    Private Sub rrbTradeS1_LargeCapNo_ToggleStateChanged(ByVal sender As System.ObjectByVal args As Telerik.WinControls.UI.StateChangedEventArgs) Handles rrbTradeS1_LargeCapNo.ToggleStateChanged 
        If rrbTradeS1_LargeCapYes.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On Then 
            rcbTradeS1_LargeCapIfYes.Enabled = True 
        Else 
            rcbTradeS1_LargeCapIfYes.Enabled = False 
        End If 
    End Sub 
 
    Private Sub BgWkr_LoadComboBox_DoWork(ByVal sender As System.ObjectByVal e As System.ComponentModel.DoWorkEventArgs) Handles BgWkr_LoadComboBox.DoWork 
        Try 
            BgWkr_LoadComboBox.WorkerReportsProgress = True 
            My.Forms.frmMain.sbarProgress.ShowProgressIndicator = True 
 
            Dim dbAdapter As New SqlDataAdapter("SELECT * FROM eTAS.dbo.viewLargeCapStockOrigins", My.Settings.eTASConnectionString) 
            Dim dbDataSet As New DataSet 
            Dim PercentValue As Integer 
            Dim RowCounter As Integer = 0 
            dbAdapter.Fill(dbDataSet) 
 
            For Each dbRow As DataRow In dbDataSet.Tables(0).Rows 
                RowCounter += 1 
                Dim rcbTradeS1_LargeCapIfYesItem As New Telerik.WinControls.UI.RadComboBoxItem 
                rcbTradeS1_LargeCapIfYesItem.Text = "" 
                rcbTradeS1_LargeCapIfYesItem.Text = dbRow.Item("CountryName").ToString & " - " & dbRow.Item("LargeCapStockName").ToString 
                rcbTradeS1_LargeCapIfYesItem.Value = dbRow.Item("CountryName").ToString & " - " & dbRow.Item("LargeCapStockName").ToString 
                rcbTradeS1_LargeCapIfYes.Items.Add(New Telerik.WinControls.UI.RadComboBoxItem(rcbTradeS1_LargeCapIfYesItem.Text, CObj(rcbTradeS1_LargeCapIfYesItem.Value))) 
                PercentValue = CInt(((RowCounter / dbDataSet.Tables(0).Rows.Count) * 100)) 
                BgWkr_LoadComboBox.ReportProgress(PercentValue, "Loading Large Cap Stocks... " & PercentValue & "% Complete..."
            Next 
 
        Catch ex As Exception 
            MsgBox(ex.Message, MsgBoxStyle.Critical, "Load Combo Box Error..."
        End Try 
 
    End Sub 
 
    Private Sub BgWkr_LoadComboBox_ProgressChanged(ByVal sender As ObjectByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BgWkr_LoadComboBox.ProgressChanged 
 
        Try 
            My.Forms.frmMain.sbarStatus.Text = e.UserState 
            My.Forms.frmMain.sbarProgress.Value1 = e.ProgressPercentage 
            My.Forms.frmMain.sbarMain.Refresh() 
            CollectGarbage() 
        Catch ex As Exception 
            MsgBox(ex.Message & vbCrLf & vbCrLf & ex.InnerException.ToString, MsgBoxStyle.Critical, "BgWkr_LoadComboBox_ProgressChanged Error"
        End Try 
 
    End Sub 
 
    Private Sub BgWkr_LoadComboBox_RunWorkerCompleted(ByVal sender As ObjectByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BgWkr_LoadComboBox.RunWorkerCompleted 
 
        My.Forms.frmMain.sbarStatus.Text = "Large Cap Stocks Loaded OK" 
        My.Forms.frmMain.sbarProgress.Value1 = 0 
        My.Forms.frmMain.sbarMain.Refresh() 
        CollectGarbage() 
 
    End Sub 

Your prompt reply and assistance is greatly appreciated

Cheers,
Ray.

Ray Frangie
Top achievements
Rank 1
 answered on 27 May 2010
3 answers
97 views
Hello everybody,

we are using Telerik CAB Enabling Kit for RadControls for WinForms and RadControls Q1 2010 SP2 in our application. When I try to apply any of the provided themes, the TabStrip of the dockingmanager does not look very well - it is absolutely different from any other TabStrip (except when using the theme called "Telerik") + some(!!!) menu entries are shown with white fontcolor after appliing "Aqua" - Theme and then "Breeze".

I found this blog entry http://blogs.telerik.com/blogs/posts/09-06-26/meet_the_new_raddock_for_winforms_%E2%80%93_official_version_coming_with_q2_2009.aspx .

"Jordan" answered: "Yes, Miguel, we will rework the Telerik CAB Kit and the sample CAB application to work with the new RadDock component. Expect this to happen around Q2 SP1, which is 4-5 weeks away." on 30 Jun 2009, but as I could see, it did not happen yet!!!

So how can I use Telerik Themes with Telerik CAB???      OR
How long does it take, rework the Telerik CAB Kit and the sample CAB application to work with the new RadDock component???

Thanks for your help,
Thomas
JanV
Top achievements
Rank 1
 answered on 27 May 2010
1 answer
493 views
I have created a ContextMenu with two buttons.
But if I show the ContextMenu not all of the button is shown.
How can I set the width of the ContextMenu ?
Nikolay
Telerik team
 answered on 27 May 2010
2 answers
67 views

Hi,

if I try to add nodes with the nodes designer everything works fine except, there is no way to accept the changes. The nodes editor dialog has no accept button or something similar. Using the return doesn't help, too.  Thereto, see attached image.

Regards

Martin

Martin Horst
Top achievements
Rank 1
 answered on 27 May 2010
3 answers
315 views
No matter what I set to value DecimalPlaces, grid displays number of decimal places from database.
Svett
Telerik team
 answered on 27 May 2010
2 answers
847 views
1. GridView with mixture of text, decimal and combobox columns. I want to allow only combobox as editable, the rest are for display only. I don't see a property to override the default for the entire grid. Do I really have to handle an edit event and cancel if it's not a column where I wish to allow changes? If so, what's the event? If not, how can I set a specific column to allow edit or set other columns to disallow edit?

2. Is there an IsDirty for the entire grid so I can prompt the user to save? Is there an IsDirty for a column and/or a row so I can iterate through and write only the delta's unbound via an SQL stored proc? I would prefer to not have to track changes in my own code.

3. It doesn't seem like GridView likes to update the display properly from a background thread. Sometimes there's data, sometimes not, and sometimes not all the data. I don't want to suspend the UI while I'm loading data. I am running unbound.

Thanks
Alexander
Telerik team
 answered on 27 May 2010
3 answers
143 views
Howdy folks,

     I have a RadPanelBar that I am dynamically adding groups and items to.  Things are starting to come together, but a few of my groups seem to have too many elements (radButtonElement) and are being overlapped by the next group below it.  I am using the ExplorerBarStyle group style so I can expand and collapse my groups.  Also, the groups are expanded by default when the form loads.  When I collapse the groups that overlap the longer group, I can see the elements of the long group underneath the collapsed group headers.  It seems like there is a set height for each panel or am I missing something?

      Any help here would be wonderful.  I hope that was enough information, but feel free to ask for any clarification.  Thanks.
Nikolay
Telerik team
 answered on 26 May 2010
1 answer
161 views
Hi Telerik Team,

My application uses CAB SCSF and my layout has two workspaces (Left and right) where left deals with Navigation, right deals with the screen display.  Over here I have a navgation bar in my left workspace which is dockable using a docking panel.  Kindly help me out in setting the color of the splitter whenever we have the mouse over it.  I mean to indicate the user that there is a splitter by showing it with a color.

Tia
Kris
Nikolay
Telerik team
 answered on 26 May 2010
3 answers
168 views
I can't find a way to get rid of the default gradient backcolor of the raddock control.  I've tried the following:

spltContainer.Style.SetValue(Telerik.WinControls.Primitives.FillPrimitive.GradientStyleProperty, Telerik.WinControls.GradientStyles.Solid)

And it has no effect.  I've even tried getting the FillPrimitive child, and setting it's GradientStyle to Solid, but it just get's overwritten (if I set the value using RadControlSpy it works).
Gary
Top achievements
Rank 1
 answered on 25 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?