Telerik Forums
UI for WinForms Forum
8 answers
483 views
Hi, how do I show the text of the front item on the carousel and how do I disable the glow that occurs on mouseover on the item?


mrdcpwns
Top achievements
Rank 1
 answered on 06 Jan 2010
2 answers
229 views

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

Troy Werner
Top achievements
Rank 1
 answered on 06 Jan 2010
4 answers
788 views
I hava a problem with selecting value in RadColumnComboBox.I can't even change property selectedValue.

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; 

After running this code selectedValue is 1 not 5. A can't find a way to choose element in multicolumnbox programicaly so the user could see selected item before changing value to other.

Jarek.
Gustav Mulder
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
120 views

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.

 

 

Nikolay
Telerik team
 answered on 05 Jan 2010
3 answers
290 views
Hi I am using Telerik.WinControls.UI.RadGridView Control


Now I have one field which displays telephone number
my input will be >10 digit no.

I want to display it in this format: (###) ###-####Ext.####

Can you help me in this topic how can I format this....?
Martin Vasilev
Telerik team
 answered on 05 Jan 2010
3 answers
170 views
Hi,

I've been using the RadCarousel for a few months and I love it!

I've just been trying to figure out a way to resize the currently selected index in the carousel.

I understand that the zindex value can help tweak this, but i still would like it to zoom or make the selected index larger (im using movie covers as the elements in the carousel).

I thought about trying to make it zoom when selected, with some C# code, but then i ran into some problems un-resizing it when it is not selected anymore.

Any thoughts on how I can go about doing this?

Thanks!
Peter
Telerik team
 answered on 05 Jan 2010
2 answers
193 views
Hi,

I'm adding a RadButtonElement to a RadListBoxItem and would like it to be right aligned, but can't seem to do it.

Here is my code. The button is there, but stays on the left side.

 

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);   
}  
 

 

 

 

 

 

Pierre Alain
Top achievements
Rank 1
 answered on 04 Jan 2010
1 answer
259 views
I have a combobox in a menu and I'd like to increase its width ; but setting the size in the designer doesn't work.
I've tried to set the minSize, maxSize and Size in my code, the combobox is then larger, but the text of selected items doesn't fit the whole width...
Victor
Telerik team
 answered on 04 Jan 2010
3 answers
255 views
I recently upgraded my project to RadControls for WinForms Q3 2009 SP1 and now due to the following errors my application will not even open. 

I get the following error whenever I try to set the ValueMember of a GridViewComboBoxColumn. The model I am using has a string for the text Display Member and an integer for the ValueMember. Other GridViewComboBoxColumns where I use a string and a string are not having this issue?

Value of '-2' is not valid for 'LargeChange'. 'LargeChange' must be greater than or equal to 0.
Parameter name: LargeChange
   at Telerik.WinControls.UI.RadScrollBarElement.set_LargeChange(Int32 value)
   at Telerik.WinControls.UI.GridTableElement.UpdateVScrollBarVisibility(SizeF bodySize)
   at Telerik.WinControls.UI.GridTableElement.UpdateChildViewHeight(Int32 delta)
   at Telerik.WinControls.UI.GridTableElement.Update_OperationChanged(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridTableElement.UpdateCore(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridViewTemplate.UpdateUI(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.Data.DataAccessComponent.FilterExpressionChanged2()
   at Telerik.WinControls.UI.GridViewDataColumn.set_DataType(Type value)
   at Telerik.WinControls.UI.GridViewLookUpColumn.SetFieldDescriptors()
   at LeaseTracker.Views.TrackerGrid.InitializeIsSBAN() in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\Views\TrackerGrid.cs:line 1004
   at LeaseTracker.Views.TrackerGrid.InitializeGridDropDowns() in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\Views\TrackerGrid.cs:line 956
   at LeaseTracker.MainForm.PopulateGrid(String name) in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\MainForm.cs:line 448
   at LeaseTracker.MainForm.OnTabSelected(Object sender, TabEventArgs args) in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\MainForm.cs:line 436
   at Telerik.WinControls.UI.TabEventHandler.Invoke(Object sender, TabEventArgs args)
   at Telerik.WinControls.UI.RadTabStripElement.RaiseTabSelected(RadElement tab)
   at Telerik.WinControls.UI.RadTabStripElement.SetIsSelected(RadElement childElement, Boolean value)
   at Telerik.WinControls.UI.RadTabStripElement.SetSelectedTab(RadElement tabElement)
   at Telerik.WinControls.UI.TabItem.set_IsSelected(Boolean value)
   at LeaseTracker.MainForm.InitializeComponent() in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\MainForm.Designer.cs:line 514
   at LeaseTracker.MainForm..ctor() in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\MainForm.cs:line 39
 

Pseudo Code below shows the lines where this is occur and sample model I refer to above : 
 
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; } 
    } 


======================================================================

Even if I comment out all the ValueMember items being set for the various combobox columns I still receive the same error on the following line of code later in the process:

this.gridView.MasterGridViewTemplate.GroupByExpressions.Clear(); 

   
Value of '-2' is not valid for 'LargeChange'. 'LargeChange' must be greater than or equal to 0.
Parameter name: LargeChange
   at Telerik.WinControls.UI.RadScrollBarElement.set_LargeChange(Int32 value)
   at Telerik.WinControls.UI.GridTableElement.UpdateVScrollBarVisibility(SizeF bodySize)
   at Telerik.WinControls.UI.GridTableElement.UpdateChildViewHeight(Int32 delta)
   at Telerik.WinControls.UI.GridTableElement.Update_GroupingChanged(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridTableElement.UpdateCore(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridViewTemplate.UpdateUI(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.Data.ExpressionHelper.GroupByExpressionsChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ExpressionFieldCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionReset(IList oldItems)
   at Telerik.WinControls.Data.ObservableCollection`1.ClearItems()
   at Telerik.WinControls.Data.ItemObservableCollection`1.ClearItems()
   at System.Collections.ObjectModel.Collection`1.Clear()
   at LeaseTracker.Views.TrackerGrid.LoadGridData() in F:\Projects\LeaseTracker\LeaseTrackerProj\LeaseTracker\Views\TrackerGrid.cs:line 1057


   
   
NOTE : I was having similar errors with LargeChange here -> http://www.telerik.com/community/forums/winforms/forms-and-dialogs/minimizing-radform-largechange-error.aspx
I have not had time to reproduce this in a smaller application as yet, but they may be linked so I am referencing it here just in case.
Svett
Telerik team
 answered on 04 Jan 2010
3 answers
461 views
I've bound my RadGrid to a data reader, and added a GridViewCommandColumn.  How do I set the value of this button, so that when I catch the _OnClick_ event, I'll know a unique id for that row (and not the row # or column #)?

I've tried setting:
.FieldName = "db_field_with_value"

Thanks!
Nikolay
Telerik team
 answered on 04 Jan 2010
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?