Telerik Forums
UI for WinForms Forum
5 answers
346 views
Hello -

I have a very sophisticated RadElement hierarchy that contains RadTextBoxElements at the leaves.  So far, I've only needed single line text boxes, but I now need to begin supporting multi-line text boxes.  I see that RadTextBox has a Multiline property, but I don't see such a property on RadTextBoxElement even though I do see the MultilineChanged event.  I'm hoping there is some way (even if through a backdoor) to make a RadTextBoxElement do multi-line text editing.

Thanks,
- Mike
Mike
Telerik team
 answered on 12 May 2009
1 answer
229 views
Hello,

i have a problem with the winform radgrid.

Trying to add columns runtime with the following loop:

 

 

 

public void CreateGridProductieMonitor(List<string> Kolommen)

 

{

radGridViewProductie.DataSource = schrapViewBindingSource;

 

foreach (string Kol in Kolommen)

 

{

 

if (!string.IsNullOrEmpty(Kol.Trim()))

 

{

 

     GridViewTextBoxColumn textBoxColumn = new GridViewTextBoxColumn();

 

     textBoxColumn.UniqueName = Kol;

     textBoxColumn.HeaderText = Kol;

     textBoxColumn.FieldName = Kol;

 

 

 

     radGridViewProductie.MasterGridViewTemplate.Columns.Add(textBoxColumn);

 

}

}

}

 

 

 


The datasource of the grid is a generic list. The fieldname is 100% correct. 
Only the first column shows data. The other columns are empty. When i change the order of the columns the result is the same. The first column added shows data.
I tried adding the columns before and after binding to the datasource.

Greetings Tim

 

IT Development
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
192 views
I am using C# and Telerik controls version 2009.1.9.414.

In the Quick Access toolbar overflow menu, I would like to create additional items.  I am referring to items like "Show Below the Ribbon" and "Minimize the Ribbon", not the items at the top that are added dynamically to correspond to the toolbar buttons.

Is there a way to add items?  I try:

this.radRibbonBar1.RibbonBarElement.QuickAccessToolBar.OverflowButtonElement.DropDownMenu.Items.Add(new RadMenuItem("testing")); 

in the OverflowButtonElement_DropDownOpening event handler, but the CPU goes to 100% and the app seems to hang.

Any suggestions?

Thanks,
Nick
Deyan
Telerik team
 answered on 12 May 2009
3 answers
115 views
hi

gridview number column [MiddleCenter] ?

http://www.winterer.co.kr/file/grid1.jpg
Jack
Telerik team
 answered on 11 May 2009
4 answers
284 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
184 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
138 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
151 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
220 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
282 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?