Telerik Forums
UI for WinForms Forum
3 answers
155 views
Good morning.
    I have a CommandBar with 5 strips in it. Note I don't want users to rearrange the strips, so in my real project I removed this possibility. I run the project and I see all the 5 strips, see image1.png attached file. Now I set Visibility = ElementVisibility.Collapsed for strips 2, 3 and 5. The strip disappears but strip 4 stays where it is. So I try with strip4.DesiredLocation = Pointf.Empty, and the behavior is what I want (see image2.png). When I set Visibility = ElementVisibility.Visible again (for strips 2, 3 and 5), the order of the strips is messed up, and is 1, 2, 4, 3, 5, but I wanted to get them exactly in the previous order. How can I solve this problem?

Thank you
Gianfranco
Stefan
Telerik team
 answered on 26 Jan 2012
3 answers
270 views
Hi,

Is it possbile to add usercontrol as hosted item in the Commandbar?

Thanks
Yip Yew Kwong
Top achievements
Rank 1
 answered on 26 Jan 2012
2 answers
109 views
using the ribbonbar we have noticed the startbutton panel covers up the menu items.

we can find where to change the location of the start button.

i would like ot edit the height of the caption bar and tweek the dimentions of the start button.

i am familiar with the style editor but was hoping to just tweek some values at design time, from MSVS.

see attached
Peter
Telerik team
 answered on 25 Jan 2012
3 answers
188 views
I have a dashboard with 3 separate grids on it, while I can export each grid to a separate excel file that works great.  I was wondering if it's possible to export the 3 grids to a single excel file but on different sheets?

Thanks in advance.
Ivan Petrov
Telerik team
 answered on 25 Jan 2012
1 answer
148 views
Hi,
I would like to read Value from
DateTimePicker that is in CommandBarHostItem in CommandBar.
How can it be done?

I put it in successfully CommandBar like in post:
http://www.telerik.com/community/forums/winforms/commandbar/add-a-datetimepicker-to-a-commandbar.aspx#1952183

Thanks
Peter
Telerik team
 answered on 25 Jan 2012
1 answer
308 views
Hi,

I have a GridView that is unbound. I manually add the rows and the columns, one of which is a GridViewComboBoxColumn (other columns omitted):

var departmentColumn = new GridViewComboBoxColumn();
 
departmentColumn.HeaderText = "Department";
departmentColumn.Name = "departmentColumn";
departmentColumn.Width = 120;
departmentColumn.DisplayMember = "Name";
departmentColumn.ValueMember = "Id";
departmentColumn.DataSource = _departments;
 
grid.MasterTemplate.Columns.AddRange(new GridViewDataColumn[]
                                                 {
                                                     departmentColumn
                                                 });

_departments is a list containing a number of Department objects, which have among other things a Name property and an Id property.

I manually add the rows to the grid like this (still, other columns omitted):

var row = grid.Rows.AddNew();
row.Cells[0].Value = "Department A";

I would like this to result in a new row in the grid, where "Department A" is selected in the list of values in the GridViewComboBoxColumn. However, this doesn't work. Trying to set the name results in a FormatException ("Input string was not in a correct format.")

I feel silly for having to ask because it must be dead simple, but I am stuck!

Best regards
Stefan
Telerik team
 answered on 25 Jan 2012
1 answer
188 views
Hi,

I have a RadForm(Child) with a BindingSource a DataSet and a DataGridView

the DataSet is populated from SQL and is then set as the BindingSource DataSource
the DataGridView DataSource is then set to the BindingSource

I also have a RadRibbonForm(Main)

This has a RadRibbon, a RadDock. The IsMdiContainer is set to true and the RadDock is set to automaticly detect Mdi Children
There is a button on the RadRibbonBar that will call endedit on the child form to save the data.

This is now where I'm hitting a problem. If i call the endedit from a button on the Child form then any error is caught by the DataGridView and everything works as expected. If I call the EndEdit from the button on the RadRibbonBar then the EndEdit causes a Exception the error is still caught by the DataGridView but then the DataGridView is frozen/Locked and i cannot change any Values until I remove the afending line and click the button again.

A Example Project can be Downloaded From ExampleProject.zip

Any Help would be Nice :D

Thanks

David

Stefan
Telerik team
 answered on 25 Jan 2012
4 answers
346 views
I'm using the Q3 2009 Telerik controls (2009.3.9.1203) and have a scenario where I populate a RadDock initially and allow the user to add/remove additional DocumentWindows. When the user closes a DocumentWindow through the 'X' next to each tab (the button added to the title by setting ShowDocumentCloseButton to true), I'd like a prompt to come up to warn the user that they'd lose their data. However, the application at points removes and adds DocumentWindows to the same RadDock, and I don't want the prompt to appear in those scenarios.

Right now I am hooked into the DockWindowClosing event. Through debugging I haven't found any information in the sender or event args that specify where the event was called from. In this case, when the program has to programmatically remove forms the user gets the prompt I created. I figure the best way to go about this is to ditch using the DockWindowClosing event, and try to hook into the Click event of that DocumentCloseButton.

Is this at all possible? Is there another way to achieve what I'd like to do?
Eric
Top achievements
Rank 1
 answered on 24 Jan 2012
4 answers
313 views
Hello again,

actually it is neccessary for us to perform another action if the alt-key is pressed. For example Alt+F1 performs an action and so on. But if we are pressing the alt-key, only the keytips of the ribbon are showing up and no other command is executed. But we need the keytips too, so is it possible to show the keytips only then if absolutely no other key is pressed (may on the keyup event and not at the keydown)?

Greetings
John
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
99 views
I need the widths set by the user to be maintained when I export to Excel (using ExportToExcelML).  It works for non-hierarchical, but when I set ExportHierarchy to true, it no longer works.  I understand that the child widths might conflict with the parent widths and it's not feasible to maintain both, but how can I at least maintain the parent widths?
Ivan Petrov
Telerik team
 answered on 24 Jan 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
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
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?