Telerik Forums
UI for WinForms Forum
1 answer
244 views
The documentation states:

If you want to set initial values, you should match the GridViewComboBoxColumn to a column which has appropriate values in it. To do this, you should set the FieldName of the GridViewComboBoxColumn to be the same as the name of the existing column.

Can I see a code sample of how this is done?

I have a text column that I am able to successfully bind to show the values, but I'm not able to replace that text column with a ComboBoxColumn and still have it set the initial values like the text column does. Here's a code sample of what I've tried:

uxgrdBindingsGrid.MasterTemplate.Columns.Clear();
uxgrdBindingsGrid.AutoGenerateColumns = false;
uxgrdBindingsGrid.DataSource = bindings.ToList<SymbolBinding>();
 
 // this textbox column displays fine
GridViewTextBoxColumn dataSourceTextColumn = new GridViewTextBoxColumn();
dataSourceTextColumn.Name = "dataSourceTextColumn";
dataSourceTextColumn.HeaderText = "Data Source";
dataSourceTextColumn.FieldName = "DataSourceProperty";
dataSourceTextColumn.TextAlignment = ContentAlignment.MiddleLeft;
dataSourceTextColumn.Width = 150;
dataSourceTextColumn.IsVisible = true;
uxgrdBindingsGrid.MasterTemplate.Columns.Add(dataSourceTextColumn);
 
// this combobox column displays the drop down list if double-clicked, but does not display any values initially
GridViewComboBoxColumn dataSourceComboColumn = new GridViewComboBoxColumn("DataSourceProperty");
dataSourceComboColumn.Name = "dataSourceComboColumn";
dataSourceComboColumn.HeaderText = "Data Source";
dataSourceComboColumn.DataSource = this.dataSources;
dataSourceComboColumn.DropDownStyle = RadDropDownStyle.DropDownList;
dataSourceComboColumn.ValueMember = "ID";
dataSourceComboColumn.DisplayMember = "Path";
dataSourceComboColumn.FieldName = "DataSourceProperty";
dataSourceComboColumn.TextAlignment = ContentAlignment.MiddleLeft;
dataSourceComboColumn.Width = 150;
uxgrdBindingsGrid.MasterTemplate.Columns.Add(dataSourceComboColumn);


Thanks,
--Jason
Stefan
Telerik team
 answered on 01 Nov 2012
1 answer
362 views
Hi,
I tried to create a commandbar with only CommandBarButton elements, each one displayed as image only.
How can I set by default the size to contains 32x32 images instead of 16x16?

Thank you
Anton
Telerik team
 answered on 01 Nov 2012
2 answers
187 views
Hi,

I'd like to conditionally format each token in a RadAutoCompleteBox control depending on the value of the each token. For example, I'd like to format all items that can be matched in the AutoComplete collection as green and all unmatched items in red.

There is an introduction on formatting tokens at:

http://www.telerik.com/help/winforms/editors-autocompletetextbox-formatting-blocks.html

however I can't find a property in the token variable that gives me access to the corresponding entry in the Items collection in the RadAutoCompleteBox control so that I can style the token conditionally. How can I get access to corresponding item being formatted?

Kind regards,
Dave.
David
Top achievements
Rank 2
 answered on 01 Nov 2012
4 answers
129 views
hi , 
 I want to hidden the specific commands button in one column depend on cell value  ,the first time  after loading form everything is OK and buttons are be hidden but after scrolling the grid all other buttons in this column are be hidden too, please advise me with this problem .

  
Private Sub Grid_Form_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles Grid_Form.CellFormatting
 
 
        Try
              If TypeOf e.CellElement.ColumnInfo Is GridViewCommandColumn Then
                    If e.CellElement.RowInfo.Cells("GroupType").Value.ToString <> 3 Then
                 Dim button As RadButtonElement = CType(e.CellElement.Children(0), RadButtonElement)
                        button.Visibility = vbHidden
                        button.BackColor = Color.Peru
                    End If
                End If
            End If
        Catch ex As Exception
 
 
        End Try
End sub
Stefan
Telerik team
 answered on 01 Nov 2012
1 answer
63 views
I just wanted to see if anyone had suggestions for the best way to manage 24 charts on a single form that need to have their data refreshed every 30 seconds. I've done this as a web solution for the last couple of years, but recent development on the software we use to populate the database has made it so that they want all of the charting brought into the software itself and shutdown the website. 

With the web solution we ran into fairly frequent issues of having things time out or error because of too many calls to the server, or whatever the problem of the month happened to be. So I wanted to post this to get suggestions from anyone else who has done something similar with WinForms.

The charts will have anywhere from 1 to 30 data points, averaging somewhere around 10-12, so I won't be sending a ton of information out there all the time, but I want to make sure that I can maintain the performance of the web version while hopefully avoiding some of the pitfalls that I might not be aware of since this is the first time I will be using the WinForm controls. 
Peshito
Telerik team
 answered on 01 Nov 2012
5 answers
1.7K+ views
I have a GridViewCommandColumn in my RAD Grid View. I want to handle the Command button click event. Please provide sample to how handle it.
Jack
Telerik team
 answered on 01 Nov 2012
3 answers
430 views
What is the difference between these 2 beasts?

I am having a truly miserable time trying to add a radLabelElement (autosized) followed by a radWaitingBarElement in a radStatusStrip.

I note that using the designer, I can add a radWaitingBarElement to the radStatusStrip, but not a radWaitingBar.

These controls are supposedly updated before and after a backgroundworker completes its job. However, they seem to step on each others' toes, so the radlabelElement's text does not get properly updated, even though the code updates it before starting the background worker. I've tried rolling my own by hosting both a radWaitingBar and a radWaitingBarElement in a radLabelElement and a radHostItem added to the radStatusStrips Items.

None of these things actually works.

Ideas?
Helen
Top achievements
Rank 2
 answered on 31 Oct 2012
1 answer
108 views
Hi Telerik Team,

I use the Telerik release 2012 Q3 2012 (version 2012.3.1017).

I created a radLabel in the design-mode, set the autosize to false in the property window and resize it.

When I debug my application, I see the attribute autosize is true.

The autosite information is in the ressource-file, but i cannot edit it by the property window.

What I have to do to edit this attribute by the property window?

I look forward to your answer.

Best regards.

Frank
Jack
Telerik team
 answered on 31 Oct 2012
4 answers
217 views
Is there a way to use a multicolumn combo box editor in the PropertyGrid?

I've tried creating my own custom editor inheriting from the RadMultiColumnComboBoxElement, but I can't seem to get it working correctly.

Thanks
Tom Mieck
Top achievements
Rank 1
 answered on 31 Oct 2012
1 answer
98 views
hi
i useing a rad page view from my project
i want going to other tab page with  next or pervieus butten butten

please help me

Stefan
Telerik team
 answered on 31 Oct 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?