Telerik Forums
UI for WinForms Forum
15 answers
248 views
This is probably going to seem pretty easy to some of you but I haven't been able to determine what the cause of this problem is.  If I try to set a RadListDataItem object and add that object to multiple DropDownList controls it doesn't work.  For instance, I have a simple For/Next loop that enumerates a list of COM ports.  Seems to me that I should be able to do a simple loop and add the items as shown below but it doesn't work.  Only one of the DropDownLists gets the data.  I'm sure it has something to do with the way the control is handling the dataitem objects.  I'm hoping someone can explain it to me and give a work around other than creating two For/Next loops (one for each DropDownList).

Thanks!

For i As Integer = 0 To 9
    Dim oItem As New RadListDataItem
    oItem.Text = "COM" & i
    oItem.Value = "COM" & i
    rddReceiveCOM.Items.Add(oItem)
    rddSendCOM.Items.Add(oItem)
    oItem = Nothing
Next
Peter
Telerik team
 answered on 14 Jan 2011
3 answers
128 views
Dear,

What is the best way to change gridview's whole column backcolor (header and all rows of a column) ?

Thanks

Marc
Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
36 answers
491 views
I have a RadGridView bound to a DataTable.  When I add a new rows of data to the DataTable, they parent row in the hierarchy does not display the expand / contract graphic by default.  It does appear after I click on the RadGridView however.  I tried using:
this.radGridView.Invalidate();
to force a redraw but it does not work.

[Update]
Attached is a screenshot.  The top image represents the grid when row is added to datatable, the bottom image represents the grid when the user selects a cell from the grid.
Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
3 answers
153 views
I have some dates in a Rad GridView. I can never get to sort them in the correct order. I clicked on the property builder and set the sort order as Desecending for that particular date column. Is this a problem everyone face or any thing else  needs to be done. How do we add a sort expression for a rad grid in winforms. I am using Q3 SP 2010. Thanks a lot for your help.
Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
10 answers
226 views
I'm building an application with extensive visual inheritance. I have a Base RadForm. I need to have Windows7 theme application-wide. All forms inheriting this form have the correct theme but all controls that I place on the inheriting form are not picking the theme. How do I go about this? Need to manage theme for every Telerik control while using visual inheritance.

Edit: Here is a sample project. It has no theme (default blue theme) at the moment. I need Windows 7 theme (example) across the application but I want to set it through the BaseRadForm. One location to update theme application-wide.
Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
2 answers
143 views
Hi, I want to have a About Form displayed when clients clicks the application button on the Ribbon. How do I go about doing that?
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 13 Jan 2011
5 answers
227 views

I would like to modify one of the existing themes in my project.  Can I extract one of the built in themes and modify it with a different name.  Is this even possible?  I am mainly concerned with the Radform theme.

Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
12 answers
347 views

I need a control that does the following thing:

A Normal button on Top, and if i click on the button, it opens e.g. exact the same buttons (visually the same full button)  with other text in it

directly under the button above.

-----------
|   13:00 |       Button 1     ( Normal state)
-----------

------------
|   13:00  |         Button 1      (Expanded state)
------------
|   15:00  |         Button 2
------------
|   17:00  |         Button  3
-----------

Please could you tell me how can i realize this ?

Thank you very much

Stefan
Telerik team
 answered on 13 Jan 2011
2 answers
108 views
I have a RadScheduler (RadScheduler1) set to weekview and setting the RulerScaleSize to 15, and the ShowWeekends set to false.  On the form I have a checkbox (chkShowEnds) for "Show Weekends", with the following code in it's click event.


Dim weekview as SchedulerWeekVview = Me.RadScheduler1.GetWeekView()
weekview.ShowWeekend = Me.chkShowEnds.Checked

It set the ShowWeekends property, and the RadScheduler weekends appear and disappear correctly.  However, on the first click it sets the RulerScaleSize to some default setting of about 25 or so, and I can not seem to set it back to 15.  I tried testing around with setting the RulerScaleSize and it seems to set to a larger value, but not smaller ones.  It also seems to change the RulerScaleSize the first time, but not subsequent times.

Any help woul dbe appreciated.

Later
Art
Dobry Zranchev
Telerik team
 answered on 13 Jan 2011
10 answers
982 views
I have a list box with some items in it. I have a ContextMenu assigned to the ListBox

I want to add logic to the "DropDownOpening" event so that the menu only displays when an ITEM is right clicked, and that is contextual for that item.

I don't seem to be able to work out how to retrieve the item over which the right click was made.

I've tried listBox.SelectedItem but that doesn't work as the right click isn't moving the selection
I've also tried listBox.GetChildAtPoint(contextMenu.DropDown.Location) - but that always returns null

Any help greatly appreciated.

Grant
Peter
Telerik team
 answered on 13 Jan 2011
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?