Telerik Forums
UI for WinForms Forum
5 answers
192 views
Greetings,

I have a RadDockPanel with a RadPanelBar on it, with multiple RadPanelBarGroupElements on the RadPanelBar.  I'd like a horizontal splitter between each RadPanelBarGroupElement (as exists between/attached to multiple DockPanels for example, making each dock panel sizable)...So I can allow the user to size each RadPanelBarGroupElement...as well as collapse them which i'm currently allowing...

Thoughts?

Thanks,
GBute
Nikolay
Telerik team
 answered on 27 May 2010
1 answer
180 views
Hi
I created a custom theme file MyCustomBreeze1.xml .   In one form i drag and drop radThemeManager and in "loadedthemes" property I added a Themesouce and selected a file from location C:\Trials\Components\MyCustomBreeze1.xml

When we compile and run the applicationl, things looks working and theme is applied to grid control.

But when i publish the project using click once and deploy it on "Test"  machine, theme does not work.  it looks like radThemeManager  is looking for path C:\Trials\Components\MyCustomBreeze1.xml  on "TEST" machine.

How to resolve it ?     Is there a way i can load theme dynamically at runtime from XML file and apply it to a particular control ?

Regards






Nikolay
Telerik team
 answered on 27 May 2010
9 answers
2.8K+ views
Hello,

I have a TextColumn in my grid that contains numeric data.

I don't want to change it to a DecimalColumn...

When I sort, it's sorted only concerning the first digit, because it is text.

Is there a way to convert it to numeric data for sorting in my Sorting Expressions?

If not: How can I add an empty value to a DecimalColumn by using a value Array?

Best regards.

Nadine
Jack
Telerik team
 answered on 27 May 2010
2 answers
153 views
I am trying to achieve a page up/down functionality for a Point of sale.

Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true

with two bottons Page up / Page down

If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?

I tried using for page down

radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);

I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.

With very little success.

Thank you in advance
Victor
Telerik team
 answered on 27 May 2010
1 answer
166 views
We have been evaluating the GridView for several weeks now and now we have a couple of questions which hopefully somebody can answer

Extending the Context Menu

We have added some extensions to the context menu . However we need to change the Menu Label based on a event click. So far we have not been able to do that. Is that possible ?


Parent/Child Grids

We have a parent child relationship inside a Grid. The grid populates correctly the first time and then we change some of the data in the Child Grid. This causes the Grid to not show any data anymore. Any ideas ?

Saving Preferences

We would like the users to be able to save and store their preferences for the following

1. Column Positions
2. Grouping Preferences
3. Sort Preferences
4. Conditional Formatting Rules

Is this possible

Conditional Formatting based on values in other columns

We would like the user to be able to setup Conditional Formatting rules where the rule is based on another column For eg:- if Shipped Qty > Req Qty (where both these fields are columns of the Grid) then apply the formatting rule.

Is this possible
Alexander
Telerik team
 answered on 27 May 2010
1 answer
277 views
I'm playing around with the ribbon bar, trying to recreate the look of our app with your controls. 

Anyway our current ribbon bar uses Icons (.ico) files  

I tried adding the .ico to your ribbon bar (.ico wasn't a default extension for an image but I tried it anyway)  It crashed the designer.   Something about transparency and bitmaps.  Anyway I couldn't figure out how to recover so I shut down visual studio and restarted.  So I ended up losing my changes, is there anything I can do if this happens in the future?

Anyway I converted them to PNG's and they seem to work fine.

Just wondering in the future if .ico should be supported, or if I need to convert them?

Thanks 

Troy
Martin Vasilev
Telerik team
 answered on 27 May 2010
3 answers
318 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
179 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
119 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
535 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
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?