Telerik Forums
UI for WinForms Forum
14 answers
400 views
Hi. I'm reading a set of dates from DB and based on the scenario, I've come-up with this:

private void LoadLocumDiary() {
  foreach (Availability AvailabilityL in DbContext.Availabilities.Where(avail=> avail.LocumID == LocumID).OrderBy(date=>date.AvailableDate)) {
    RadCalendarDay sday = null;
 
    switch (AvailabilityL.AvailabilityStatusID) {
      case 1: //Available
      sday = new RadCalendarDay(AvailabilityL.AvailableDate) {
        Disabled = false,
        Selectable = true,
        ToolTip = AvailabilityL.AvailabilityStatus.Name
      };
      sday.TemplateItem.BackColor = Color.Green;
      break;
 
      case 2: //Unavailable
      sday = new RadCalendarDay(AvailabilityL.AvailableDate) {
        Disabled = false,
        Selectable = true,
        ToolTip = AvailabilityL.AvailabilityStatus.Name
      };
      sday.TemplateItem.BackColor = Color.Red;
      break;
 
      case 3: //On Job
      sday = new RadCalendarDay(AvailabilityL.AvailableDate) {
        Disabled = false,
        Selectable = true,
        ToolTip = AvailabilityL.AvailabilityStatus.Name
      };
      sday.TemplateItem.BackColor = Color.Goldenrod;
      break;
 
      default: break;
    }
 
    CalendarDiary.SpecialDays.Add(sday);
  }
 
 // CalendarDiary.InvalidateCalendar();
}

Now, I'm getting a null exception on sday.TemplateItem. What am I doing wrong. i need to set a tooltip and a back color on a day-cell.
Richard Slade
Top achievements
Rank 2
 answered on 04 Feb 2011
3 answers
484 views
I cannot seem to keep the header row from auto-sizing its height.

What is the property that needs to be set to keep the header row height static and just use elipses if the text is too long?
Stefan
Telerik team
 answered on 04 Feb 2011
4 answers
177 views

Hi

I have radControls for winforms 2010 Q3

I tried "Custom Filtering" codes in demo and it works fine

But I want to search the child templates (child grids) too.

How can I do that?

thanks

Nikolay
Telerik team
 answered on 04 Feb 2011
8 answers
295 views
is there index property like selectedIndex in pageview view mode strip.
so that i can select page like panelBar.SelectedIndex=1 
Richard Slade
Top achievements
Rank 2
 answered on 04 Feb 2011
1 answer
126 views

In the gridview the default the cell formats should look like 0000.00

when the user tries to edit the cell
for Example :  when the user wants to type 100 ,

on typing first digit (ie) 1 - cell should show it has 0000.01
on typing the next digit (ie) 0 - it should show as 0000.10
on typing the last digit (ie) 0 -  it should show as 0001.00

that is , each char has to append one after the another in the above format

Richard Slade
Top achievements
Rank 2
 answered on 04 Feb 2011
2 answers
81 views
Hello guys. I'm trying different themes provided by Telerik on RadRibbon form + RadForm but I cant seem to get the desired Titlebar. I'm on a Windows 7 Professional x64 machine.

Two attached screens describe my dilemma...
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 Feb 2011
3 answers
299 views
How to display the numeric datagridview , (ie) all rows and columns must accept only numeric values .. and to mask the cells in this format - 0000.00
Richard Slade
Top achievements
Rank 2
 answered on 04 Feb 2011
1 answer
168 views
I am using the Timeline-View. I found the property "HeaderFormat" and the header (displaying the time range) gets formatted accordingly. But how can I format the second header which displays the individual day?

TIA
Heiko
Dobry Zranchev
Telerik team
 answered on 03 Feb 2011
11 answers
254 views
Is there a way to get that using ColumnGroupsViewDefinition. I have a Columngroup with 3 rows in them and I want each of them to have a distinct color.

Thanks
Deepak
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
9 answers
182 views
Afternoon,

I'm working on a little idea and wondered if it would be the best way to go. Basically i'm working on a basic CRM system for a sales environment. The section i'm working on is based around recording quotes. As a helpful reporting tool i'm now going to try to record from when the quote was opened to when it was won as this will show turn around times.

Now the problem I have is trying to record that difference. My current idea is for them to have a checkbox which they tick to indicate it has been won and then to record the datetime in another cell. This will then give me my start and finish dates. I've looked at both using a custom popup editor like the one here http://www.telerik.com/support/kb/winforms/gridview/create-pop-up-user-control-for-row-editing.aspx and using a checkbox column in the gridview. It is my feeling that the gridview checkbox would be the simplest way to go.

What I'm stuck on is how to, when the checkbox is selected, set the value of another cell in the same row with the current datetime. I think I would also want it so that once the checkbox has been ticked, it cannot be unticked else the results would be modified for the reporting end of things.

Is this the best way to go or is there a better solution? Any ideas or help would be greatly appreciated.

Regards,

Guy
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?