Telerik Forums
UI for WinForms Forum
4 answers
302 views
Obviously, changing

comboBox1.MultiColumnComboBoxElement.DropDownHeight

doesn't do the trick. I've tried various things but with no success?

How can I set exact height of dropdown? It'd be nice if I was able to set height of dropdown by specifying number of rows to display.

Regards,
Daniel
Daniel
Top achievements
Rank 1
 answered on 11 May 2009
3 answers
194 views
I am using the following code to build a PanelBar from a database table. For each "FileType" I add a panel and place a ListBox in the panel. This works just fine.

            For Each itemFileTypes In collFileTypes 
                If itemFileTypes.IsInUse Then 
 
                    Dim newGroupElement As New RadPanelBarGroupElement 
 
                    newGroupElement.EnableHostControlMode = True 
                    newGroupElement.Caption = itemFileTypes.Descr 
                     
                    Dim lst As New RadListBox 
                    lst.Name = itemFileTypes.Descr 
                    lst.Dock = DockStyle.Fill 
                    lst.Text = itemFileTypes.Type 
 
                    newGroupElement.ContentPanel.Controls.Add(lst) 
 
                    radPanelBar.Items.Add(newGroupElement) 
                End If 
            Next 
 
            radPanelBar.Dock = DockStyle.Left 
            radPanelBar.ThemeName = "ControlDefault" 
 
            ' Set focus to Log panel 
            radPanelBar.Items("Log").Focus()  ' This throws exception

Later in my code I need to access the ListBox to assign its DataSource and load the appropriate data into each ListBox.

        ' For each panel find the listbox and assign its DataSource etc 
        ' add a listbox event handler for SelectedValueChanged. 
        Try 
            Dim pnl As RadPanelBarGroupElement 
 
            For Each pnl In radPanelBar.Items 
                Dim lst As RadListBox 
 
                'newGroupElement.ContentPanel.Controls.Add(lst) 
 
' This is where I come unstuck! 
 
                lst = pnl.Items(0)  or  pnl.ContentPanel.Controls(0) ???
 
                With lst 
                    .ValueMember = "id" 
                    .DisplayMember = "FileDescription" 
                    .DataSource = GetFileNamesByType(CType(lst.Text, Integer)) 
 
                    '.EmptyRows = True 
                    AddHandler lst.SelectedValueChanged, AddressOf ListBoxSelectedValueChanged 
                End With 
            Next 





See where I come unstuck above. What am I missing?

                'newGroupElement.ContentPanel.Controls.Add(lst) 

If I added a listbox to the controls collection of the ContentPanel of the GroupItemElement, why can I not access the ContentPanel of the GroupElement?

e.g.

lst = GroupElement.ContentPanel.Controls(0)

Declan
Mike
Telerik team
 answered on 11 May 2009
5 answers
162 views
Good morning Telerik Team,

I'm wondering if it's possible to use a Windows ContextMenuStrip on RadTreeNode control. I see it's possible to use it on the Radtreeview control, but I need context menus on the RadTreeNodes too.

Thanks,

Teba.
Victor
Telerik team
 answered on 11 May 2009
1 answer
156 views
Hello,
We are evaluating the WinForm controls and have downloaded the free trial. We are also using custom business objects based on Richard Lhotka's CSLA framework.  We have run into some issues with regards to the RadGridView.

1.  The RadGridview is bound to a BindingSource control which in turn is bound to our business object. With regards to adding new rows via the RadGridView, we had to override the AddNewCore method that elimiated one of the errors the Grid reported. Now the New Row is displayed but there is an issue with the behavior of adding records.  If you set a value for one of the cells of the new row and press the Tab button to proceed to the next cell of the current record, this will create a new record instead of continuing editing the current record. 

2. When Grouping by a column is there an event that we can tie into or override a method? Currently we recieve an InvalidCastException when the Grid tries to cast the field to a type of System.IComparable.

Best Regards
Jack
Telerik team
 answered on 11 May 2009
3 answers
237 views

I have an unbound gridview and the data behind is update constantly.  What is considered to be the best method to update data in the gridview? Which will have least impact on performance?

Nick
Telerik team
 answered on 11 May 2009
4 answers
292 views
I'm not sure if im using the correct event but let me explain whats happening.

i have a gridview control which display data/images. When a image is changed it fires the cellformating event to play a audio sound, but when i click on the row or cell on the grid it fire the cellformatting event again. Why is this happening?is this by design. I only want to play the audio when the image value changes.

Thanks in advance!
Nick
Telerik team
 answered on 11 May 2009
5 answers
211 views
Hi.
I'm new with this product and I have some problem with RadDataGridView
1. When I define more than 21 columns, I can not choose the columns 21 and more to set their property.
2. Some time (not always) I can not add more than one column to the Grid (when I open "Open Property Builder"). I have to click  OK and open it to add another column.


Nick
Telerik team
 answered on 11 May 2009
2 answers
283 views
Hi,

Ive got a complex MDI application which Im trying to theme. Ive tried a few different ways to create multiple themes that the user can chose between and the only way I can get it to work is if I create a ControlDefault theme for most controls, and any controls that need to be different, like panels that need to show different colours I create a separate theme file and set the ThemeName property on the panels to match up the the correct theme. Then to swap between themes I have a different set of files with the same ThemeNames. 

This works great, but I cant figure out how to unload a theme, also if I have 2 themes, light and dark and the form loads with the light theme, then I set it to dark, if I try to set it back to light it wont apply. How can I unload the theme, or properly switch between themes?

To load the themes Im using ThemeResolutionService.RegisterThemeFromStorage(...);

Also

Ive built a control which inherits from RadPanel, and when I try and theme it, the theme will not apply. I had a look at the resulting xml from the Visual Style Builder, and it was setting the ControlType attribute in the RadStylesheetRelation node to RadPanel instead of my class. I manually set this to my class and it worked fine. While this works, it is a pain, and if the client wants to create new themes later they will need to manually change the xml.

Any help would be appreciated
Thanks

Adrian Bennett
Top achievements
Rank 1
 answered on 11 May 2009
1 answer
138 views

Hi

I've got a little problem when I'm using the AutoSizeRow functionnality of the Telerik GridView.
Each time I set this property to true, the loading become very long and oftenly it just stops working.
More over, when I schrool verticaly the datagrid,  the rows size dont follow the order of the datagrid.

When AutoSizeRow are false, everything is perfect.

Could you please help solving this issue

Thanks

Jack
Telerik team
 answered on 08 May 2009
1 answer
128 views
Hello again,
I am using Visual Studio 2008 for a Visual Basic project together with RadControls for WinForms Q1 2009.
My app is localisable and I have two resource files called "UiSettings.en-GB.resx" and "UiSettings.resx".
When adding a rad control to my form, lets say a RadGroupBox (but the problem occurs also with a TabStrip) the following entries are added to the forms designer:
"Me.radgrb_ConnAcrobat.FooterImageKey = Global.COACH.UiSettings_en_GB."
"Me.radgrb_ConnAcrobat.HeaderImageKey = Global.COACH.UiSettings_en_GB."

including the points at the end, where COACH is the namespace of my app.
The error message is "UiSettings_en_GB is no member of COACH"

I can manually delete the entries but they appear again after compiling.
Can't  work with all these error messages.
Could you please help?
Thanks in advance
Roberto Wenzel
Mike
Telerik team
 answered on 08 May 2009
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?