I am new to RadControls but so far they work fine. I am not finding a reference that explains the prefered method for creating DocumentWindows for the RadDock Control using the Visual Studio form designer. My program could have any number of forms and are based on different "types" that I define. Before using RadDock, I would use the Visual Studio designer to create the basics for each type of form, then at run time dynamically add to and-or modify the base form for each instance required. Because I don't know in advance what types of forms will be displayed, I don't think adding form types to the RadDock control itself at design time is a useful approach. I found that if I use AutoDetectMdiChildren, if a DocumentWindow form is "hidden" when the user closes it and I re-show the form later, it is blank. To correct this I found the following works just fine.
First don't user AuoDetectMdiChildren.
Second in the "formname.Designer.vb" file make the following change....
'Inherits System.Windows.Forms.Form
Inherits Telerik.WinControls.UI.Docking.DocumentWindow
If I later want to modify the form with the Visual Studio form designer, I un-comment the first line and comment the second.
This is working without a hitch, but since I don't find any reference that describes the "proper method", I just wanted to ask if this sounds OK or if there is a better "recommended" pratice that I should be following. To summarize, I want to be able to visual modify DocumentWindow forms for the purpose of creating defined "types" of forms that my program can select from at runtime and the user needs the ability to hide and re-display these forms.
Thanks
Troy
| this.radMultiColumnComboBoxMachineEventWorkerApproved.DataSource = this.bindingSourceWorkers; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.ValueMember = "idWorker"; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.DisplayMember = "surname"; |
| foreach (var column in this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns) |
| { |
| column.IsVisible = false; |
| } |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["idWorker"].IsVisible = true; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].IsVisible = true; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].IsVisible = true; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].IsVisible = true; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].HeaderText = "ImiÄ™"; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].HeaderText = "Nazwisko"; |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].HeaderText = "Pesel"; |
| // ------------ now I try to change value |
| this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue = 5; |
| var selectedValue = this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue; |
Hello,
I have a RadCalendar where I can multiselect individual dates or by row. The problem is when I click a rowheader it deselects any previously selected date(s). I need the ability to select multiple weeks not necessarily next to each other. Can anyone help me on keeping the previous selected dates when clicking on a rowheader?
Any help appreciated!
Thanks in advance.
| privatevoid lbConnections_ItemDataBound(object sender, Telerik.WinControls.UI.ItemDataBoundEventArgs e) |
| { |
| RadListBoxItem listBoxItem = (RadListBoxItem)e.DataBoundItem; |
| // Add button |
| RadButtonElement btn = new RadButtonElement(); |
| btn.Alignment = ContentAlignment.MiddleRight; |
| btn.StretchHorizontally = false; |
| btn.StretchVertically = false; |
| btn.AutoSize = false; |
| btn.Size = new Size(15, 15);; |
| btn.Click += new EventHandler(btn_Click); |
| listBoxItem.Children.Add(btn); |
| } |
| private void InitializeTechnology () { |
| IList<DropDownIntItem> ddList = ListTechnology(); |
| this.TechnologyColumn.DataSource = ddList; |
| this.TechnologyColumn.DisplayMember = "Name"; |
| this.TechnologyColumn.ValueMember = "ID"; // ERRORS HERE |
| } |
| // ~~~ // |
| public class DropDownIntItem { |
| private string _name; |
| private int _id; |
| public DropDownIntItem(int id, string nam) { |
| this._name = nam; |
| this._id = id; |
| } |
| public string Name { |
| get { return _name; } |
| } |
| public int ID { |
| get { return _id; } |
| } |
| } |
| this.gridView.MasterGridViewTemplate.GroupByExpressions.Clear(); |