Telerik Forums
UI for WinForms Forum
1 answer
106 views
I have a RadComboBox on my WinForm (using the latest 2009 release), whose DataSource I am setting to an Array of Objects, similar to...

BankInfo[] infos = GetBankInfos();
bankInfoCombo.DataSource = infos;

I also have a BindingSource on the form that takes a List of Objects, similar to...

List<Bank> banks = GetBanks();
bankBindingSource.DataSource = banks;

I am using this BindingSource to bind the controls on the form to the Bank objects properties, of which one of them is ReturnProcessor of Type BankInfo.

this.bankInfoCombo.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bankBindingSource, "ReturnProcessor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));

When using a WinForm ComboBox, if I choose not to set the DisplayMember or ValueMember, the ComboBox will call ToString() on the Array and use that as the DisplayMember and the Object as the ValueMember.

The behavior I am getting out of the RadComboBox however, is that if I do not set the ValueMember, nor the DisplayMember it will still ToString() the object, but the SelectedValue will always be null. What occurs, because of this behavior, is that my Databound object ReturnProcessor value is always null, even after a Value is selected from the ComboBox.

The Work around that I have found is to Sub Class the object with a new Property of ReturnProcessorObjectID of Type long. And set the ComboBox DisplayMember to BankName and ValueMember to ObjectID. Then I bind the ComboBox to ReturnProcessorObjectID, instead of the Real ReturnProcessor object.

 

 

 

 

Deyan
Telerik team
 answered on 23 Mar 2009
1 answer
172 views
Hi,

I need to change the color of ColumnGroup Header of the GridView Control.

Thanks

Ajay
Nick
Telerik team
 answered on 23 Mar 2009
3 answers
236 views
Hi,

I was expecting the Validating or Validation event to fire after committing an edit of a node. Currently calling radTreeView BeginEdit() function to initiate editing and commit changes using Enter.

I need to validate the name and text of the edited tree node before accepting the change.  Is there something I need to enable for the event to fire?  Or should I be using a different event?

Regards,
Brad
Jordan
Telerik team
 answered on 23 Mar 2009
3 answers
145 views
Im loading some dummy nodes into a tree when the form loads
Im using the NodeExpand event with LoadOnDemand = true
When this event code is finished, my tree background is gone and the the other nodes loose their +/- icons. 

What should I check ?

Boyko Markov
Telerik team
 answered on 23 Mar 2009
8 answers
278 views
How hard is it to add a checkbox to a gridview?  I'm using the trial version to test to see how I can add a checkbox and how to handel the event.  Using .net's grid is very slow and choppy when i'm scrolling around. 

Thank You
jerry
Top achievements
Rank 1
 answered on 23 Mar 2009
2 answers
110 views
Is there anyway to keep dock panels from from docking inside of other dock panels. I only want the panels to be able to be docked inside of the dock manager.
Julian Benkov
Telerik team
 answered on 23 Mar 2009
5 answers
88 views
My App uses interactive grouping. What used to work with 2008.3 now throws exceptions. I could not find any docs to this new behaviour. In particular I'm adding aggregate functions dynamically when the user changes grouping configuration
Julian Benkov
Telerik team
 answered on 23 Mar 2009
5 answers
221 views
I have a tabbed document + two dock panels, one docked to the left and one autohidden to the right.

When the autohidden panel opens it is displayed nicely to the right, but when I press the pin it moves to the left. I would like it to stay on the right, but I haven't found a way to do so, so I hope someone can enlighten me 
Julian Benkov
Telerik team
 answered on 23 Mar 2009
9 answers
478 views
Hi!

I have to evaluate your product. Now there is a problem with radDropDownButtonElement .
I have a radDropDownButtonElement in my toolstrip! I filled the radDropDownButtonElement with three Items (RadMenuItems).
So if one of these Item is clicked I have to make something. So I thought I have to implement the DropDownItemClicked event! But this event doesn't fire! Could you tell me why? And how should I make it?

Thank you for supporting me!

Roland
R
Top achievements
Rank 1
 answered on 21 Mar 2009
2 answers
334 views
I'm using the code from the help to create a Checkbox within my datagridview

     GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn();  
      checkBoxColumn.DataType = typeof(int);  
      checkBoxColumn.UniqueName = "Selected";  
      checkBoxColumn.FieldName = "Selected";  
      checkBoxColumn.HeaderText = "";  
      radGVTables.MasterGridViewTemplate.Columns.Add(checkBoxColumn); 

Then I set the data souce equal to my oracle query.  The first time around it's fine but when I make a change to one of the drop downs the data changes so I remove this column and readd it but it keeps adding it to the end of the grid instead of position zero like I need it to be.  What is the best way around this?

Also why when I rebind to my datagridview does the checkbox still stay checked?  Do I have to remove and readd the column everytime?


Thank You
Nick
Telerik team
 answered on 20 Mar 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?