Telerik Forums
UI for WinForms Forum
3 answers
90 views
hi

gridview number column [MiddleCenter] ?

http://www.winterer.co.kr/file/grid1.jpg
Jack
Telerik team
 answered on 11 May 2009
4 answers
177 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
148 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
123 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
126 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
198 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
249 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
170 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
235 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
116 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
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
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?