Telerik Forums
UI for WinForms Forum
1 answer
197 views
Hello,
I'm trying to use conditional formatting based on two different columns in a grid.
One is a bool column, based on it i change the row forecolor, the other one is an int and based on it i change the row backcolor. Both are applied to the full row. If i only create the first formatting, it works fine. If i add the second formatting object, the first one does not work anymore. I am only setting RowForeColor on the first formatting object and RowBackColor on the second one. What am i doing wrong? Or are the conditionalFormattingObjects built such that you can only use them on one column at a time on a grid if you apply them to the full row.

Waiting for your response
Jack
Telerik team
 answered on 30 Jun 2010
1 answer
560 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
168 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
256 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
196 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
132 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.4K+ 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
120 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
261 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
160 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?