Telerik Forums
UI for WinForms Forum
4 answers
439 views
Hi,

I have two date pickers:
FROM and TO. 

I'd like to know if the two dates are further than 3 days apart.  How do I do this comparison? Is there a more efficient way than this?

var date = datePickerFrom.GetDate();
date.setDate(date.getDate() + 3);

var toDate = datePickerTo.GetDate();

if( toDate <= date )
.....

 

Thanks for your help.
PKd

 

Boyko Markov
Telerik team
 answered on 16 Jan 2008
1 answer
138 views
I'm working in an app that uses a "rowcard" format, when a row is selected there's  a rowcard that is disabled that shows the details of the row. The GridView control is virtually impossible to read when it is disabled. Any suggestions for fixing this? The only thing I have so far is to not make the GridView's container disabled, but that's a pretty large and time consuming change. Most other windows controls are fine to read when they are disabled, but the GridView is not. Suggestions?
Jack
Telerik team
 answered on 16 Jan 2008
1 answer
146 views
WinForms RadControl Q3 2007

When I set SelectionMode to GridViewSelectionMode.CellSelect columns GridViewBooleanColumn don't save data and event ValueChanged doesn't fire.
With SelectionMode to FullRowSelect work fine!

Thanks in advance,
Emanuele Savarese

This is sample code to reproduce error:

        private void Form1_Load(object sender, EventArgs e) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("From", typeof(bool)); 
            dt.Columns.Add("To", typeof(bool)); 
            dt.Columns.Add("Description", typeof(string)); 
 
            dt.Rows.Add(false, false, "hi1"); 
            dt.Rows.Add(false, false, "hi2"); 
            dt.Rows.Add(false, false, "hi3"); 
            dt.Rows.Add(false, false, "hi4"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi6"); 
 
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
            radGridView1.Columns[0].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
            radGridView1.Columns[1].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
            radGridView1.Columns[2].ReadOnly = true; 
 
            radGridView1.SelectionMode = GridViewSelectionMode.CellSelect; 
            radGridView1.DataSource = dt; 
        } 
 

Georgi
Telerik team
 answered on 15 Jan 2008
10 answers
165 views
i'm getting a weird error message when using your gallery component in combination with a panelbar groupelement that is set with EnableHostControlMode to true.

the project compiles and runs fine, but this error pops up however many times you have EnableHostControlMode set to true.

the error reads: 
Error setting property "EnableHostControlMode" in class "Telerik.WinControls.UI.RadPanelBarGroupElement" to value "True".

it goes on to say that the element has already been added.

thanks guys...

06/06/07 - UPDATE
i was able to eliminate this error by toggling the said property to false, then toggle back to true through code.

why would there be such an issue with this, and a few other controls, to where the design time functionality acts flaky at times?

overall though, i'm liking the product thus far....

thanks.....
Boyko Markov
Telerik team
 answered on 15 Jan 2008
1 answer
244 views
Is there a way to read some properties of selected theme (e.g background color of selected cells or any other property)?

Thanks in advance
Mike
Telerik team
 answered on 15 Jan 2008
1 answer
97 views
When I set the BackColor of a ComboBox it doesn't change the appearance at design-time nor at runtime. Any ideas?

Josh
Joshua Ruppert
Top achievements
Rank 1
 answered on 14 Jan 2008
1 answer
158 views
When Telerik win combobox will provide multiple column support? I did not see this feature in latest release. This is really important feature in our legacy system, and to me it's really basic. I have to decide soon how we want to landle it in new .net appication. 

I see much more features in web controls than win and I am really disappointed at this stage. Any suggestions, alternates, or plan to provide this feature in next release?
Vassil Petev
Telerik team
 answered on 14 Jan 2008
6 answers
235 views

Hi all,

this is my question,
if I press Ctrl+Tab, I can browse through the opened documents/panels.
I can disable this feature by "dockingManager.UseQuickNavigator = false" property); I would like to assign this shortcut key (Ctrl+tab) to a custom function written by me, but I'm not able to catch this event (Ctrl+tab does not reach the keydown event).

How can I assign the Ctrl+tab shortcut to a function written by me?

Thanks in advance for the answer.

Stefano

Dimitar Kapitanov
Telerik team
 answered on 14 Jan 2008
2 answers
163 views
WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0

I want two columns pinned and I set IsPinned property to true.
When I scrolling grid content of other columns slide under pinned colums.
I tried to create a new Theme and set backcolor of GridRowElement (root/element) with Telerik Visual Style Builder but I nothing changed.

I created a conditional formatting to force backcolor to white, but in this way I lose borders of row selection.

Any better idea?
Thanks in advance,
Emanuele Savarese

This is code to reproduce error. Uncomment rows to view my solution with conditional formatting.
        private void Form1_Load(object sender, EventArgs e) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("From", typeof(bool)); 
            dt.Columns.Add("To", typeof(bool)); 
            dt.Columns.Add("Description", typeof(string)); 
 
            dt.Rows.Add(false, false, "hi1"); 
            dt.Rows.Add(false, false, "hi2"); 
            dt.Rows.Add(false, false, "hi3"); 
            dt.Rows.Add(false, false, "hi4"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi6"); 
 
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
            radGridView1.Columns[0].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
            radGridView1.Columns[1].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
            radGridView1.Columns[2].ReadOnly = true; 
            radGridView1.Columns[2].Width = 1000; 
 
            //ConditionalFormattingObject item = new ConditionalFormattingObject("ruleName", 
            //    ConditionTypes.LessOrEqual, "aa", string.Empty, true); 
            //item.CellBackColor = Color.White; 
            //item.RowBackColor = Color.White; 
            //radGridView1.Columns[0].ConditionalFormattingObjectList.Add(item); 
 
            //item = new ConditionalFormattingObject("ruleName", 
            //    ConditionTypes.LessOrEqual, "aa", string.Empty, true); 
            //item.CellBackColor = Color.White; 
            //item.RowBackColor = Color.White; 
            //radGridView1.Columns[1].ConditionalFormattingObjectList.Add(item); 
 
            radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; 
            radGridView1.DataSource = dt; 
        } 



Emanuele Savarese
Top achievements
Rank 1
 answered on 14 Jan 2008
1 answer
153 views

how can i mimic the office2007 ColorMenu?

the image
http://picasaweb.google.com/chaco.zhao/Question/photo#5155168280711845058

thank you 

ps: I implement ColorMenu in the way of RadGralleryElement, but fail.

 

Kiril
Telerik team
 answered on 14 Jan 2008
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
ScrollablePanel
DataEntry
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?