Telerik Forums
UI for WinForms Forum
1 answer
491 views
Hi,

I'm trying to create listbox items programatically and have been so far completely unable to set the back color of the listbox items or to turn the borders on for all listboxitems. Please help.

        // Method to set default ListItem properties 
        private RadListBoxItem newListItem(string displayText, int ID, GMapMarker marker) 
        { 
            RadListBoxItem item = new RadListBoxItem(); 
            item.ImageAlignment = ContentAlignment.MiddleLeft; 
            item.TextImageRelation = TextImageRelation.ImageBeforeText; 
            if (marker is JobMarker) 
            { 
                item.Image = (Image)Properties.Resources.ResourceManager.GetObject(((JobMarker)marker).IconFileName); 
                if (!((JobMarker)marker).IsGeoCoded) 
                    item.BackColor = Color.LightPink; 
            } 
            else if (marker is EmployeeMarker) 
            { 
                item.Image = (Image)Properties.Resources.ResourceManager.GetObject(((EmployeeMarker)marker).IconFileName); 
                if (!((EmployeeMarker)marker).isGeoCoded) 
                { 
                    item.BackColor = Color.LightPink; 
                } 
            } 
            item.Text = displayText; 
            item.Tag = ID; 
            return item; 
        } 

This is the code I am using to create the listboxitem

Boryana
Telerik team
 answered on 30 Jun 2010
3 answers
125 views
Hi,
I have combobox and textbox in my grid and i have 2 tables which stores bank name in the 1st table and the bank account number in the second table.i want that when i select bank name in the combobox it will shows me the account number in the gridviewtext?
Nikolay
Telerik team
 answered on 30 Jun 2010
3 answers
212 views
I have serveral documents and tool windows opened on my maindoc,
I am using SaveLayout method to save my document, and tool windows position.

When i restart my application ifound that theres no way ican get which document or toolwindow are being loaded from .xml file.

I want to load each forms one by one and assign values to my static objects(this is necessary before loading each forms) of perticular document or toolwindow.

How can i accomplish this?
Which event will give me one by one loading of each window?

If thers other way then tell me.
Nikolay
Telerik team
 answered on 30 Jun 2010
2 answers
157 views
I have a calculated column (a) as the sum of two other columns ((b) and (c)) - editing the value of one cell (eg. (b)) doesn't change the calculated value of the calculated cell (a) - what do I have to do to force the recalculation?
Bernd Mueller
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
90 views
Hello,

I derived a new class from the RadDesktopAlert class and there i get this compiler error when i try to compile it:

    public partial class BITDesktopAlert : RadDesktopAlert  
    {  
        protected override void Dispose( bool disposing )  
        {  
            if ( disposing && ( components != null ) )  
            {  
                components.Dispose( );  
            }  
            base.Dispose( disposing );  
        }  
     }  
 

Compiler error message:
Fehler 1 "BITSteuerelemente.BITDesktopAlert.Dispose(bool)": Der geerbte Member "Telerik.WinControls.DisposableObject.Dispose(bool)" kann nicht überschrieben werden, weil er nicht als "virtual", "abstract" oder "override" markiert ist. 

Is it not possible to override the Dispose method ?

Kind Regards,

Ramius
Ramius
Top achievements
Rank 1
 answered on 29 Jun 2010
3 answers
1.2K+ views
hello,
is there a way to group radio buttons to make them exclusive. for example: i have 4 radio buttons on a form. i would like to group them two by two, so that in group of two the buttons cannot be checked at the same time, but there is no problem for two buttons from different groups to be checked at the same time.
thanks.
Boryana
Telerik team
 answered on 29 Jun 2010
3 answers
89 views
Hi
How to give radPanelbar backcolor as suggest in attached document in the telerik window control version (2010.1.10.504).
because in previous version(2010.1.10.409) by default .
Boryana
Telerik team
 answered on 29 Jun 2010
3 answers
216 views
I have a Dockpanel docked to the left side. When i set the anchor property to bottom and left of any control that is contained within that dock Panel, once the window is resized the controls do not appear in the correct position, it appears the anchoring value is being applied to the form and not the actual dock panel causing the controls to disappear off the bottom of the Dock Panel. Is there any way around this?
Victor
Telerik team
 answered on 29 Jun 2010
2 answers
127 views
Is there any way to get the currently highlighted time on the DayView of the RadScheduler?

I have figured out how to get it based on a MouseClick (by handling the radScheduler_CellClick event), but I would like to be able to simply access it when needed rather than handling the mouseclick events.

        void radScheduler1_CellClick(object sender, Telerik.WinControls.UI.SchedulerCellEventArgs e) 
        { 
            if (radScheduler1.ActiveViewType == Telerik.WinControls.UI.SchedulerViewType.Day) 
            { 
                int index = e.Cell.Parent.Children.IndexOf(e.Cell); 
                Telerik.WinControls.UI.SchedulerDayView dv = radScheduler1.GetDayView(); 
                DateTime dtDate = dv.StartDate; 
 
                dtDate = dtDate.AddDays(index % dv.DayCount); 
                index = index / dv.DayCount; 
                 
 
                switch (dv.RangeFactor) 
                { 
                    case Telerik.WinControls.UI.ScaleRange.FiveMinutes: 
                        index *= 5; 
                        break
                    case Telerik.WinControls.UI.ScaleRange.HalfHour: 
                        index *= 30; 
                        break
                    case Telerik.WinControls.UI.ScaleRange.Hour: 
                        index *= 60; 
                        break
                    case Telerik.WinControls.UI.ScaleRange.QuarterHour: 
                        index *= 15; 
                        break
                    case Telerik.WinControls.UI.ScaleRange.SixMinutes: 
                        index *= 6; 
                        break
                    case Telerik.WinControls.UI.ScaleRange.TenMinutes: 
                        index *= 10; 
                        break
                    default
                        break
                } 
 
                dtDate = dtDate.AddMinutes(index); 
                this.Text = "Selected DateTime is " + dtDate.ToString(); 
                //this.Text = "Selected time is " + TimeSpan.FromMinutes(index).Hours.ToString() + ":" + TimeSpan.FromMinutes(index).Minutes.ToString(); 
            } 
        } 

Dobry Zranchev
Telerik team
 answered on 29 Jun 2010
1 answer
281 views
I am looking to download the style builder so I can trial it. The download link however seems not to be working and I have not managed to find where I can download a copy of this. Please can you message me the full URL link so I can complete the download.

Thanks
Stefan
Telerik team
 answered on 29 Jun 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)
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?