Telerik Forums
UI for WinForms Forum
3 answers
373 views
I am deriving a custom control from the RadDateTimePicker (version: 2011.1.11.419 or Q1 2011) trying to get it to work with null values. We need it to display an empty string when bound to a null value. For the most part this is working with the code below.

public new DateTime? Value
{
    get 
    {
        if (_value.HasValue)
            return _value.Value;
        return _value; 
    }
    set
    {
        if (_value != value)
        {
            _value = value;
              
            OnValueChanged(new EventArgs());
        }
    }
}
public new DateTime? NullDate
{
    get { return _nullDate; }
    set { _nullDate = null; }
}
void AmDateTextBox_ValueChanged(object sender, System.EventArgs e)
{
    if (this.Value == null)
    {
        this.SetToNullValue();
    }
    else
    {
          
        this.DateTimePickerElement.TextBoxElement.TextBoxItem.Text = this.Value.Value.ToShortDateString();
    }
}

If I am viewing a record with a date value and change to another record with a date value all is well. If I then change to a record with a null date it displays fine. But when I change back to a record with a date value nothing is displayed. I would also like to remove the hard coded format in the Value Changed event handler. I am binding RadDateTimePicker.Value to a DateTime? field on Csla objects not a data table.

Thanks,

grj
Peter
Telerik team
 answered on 01 May 2013
1 answer
111 views
Hi,

I try to hook an event that signals the value changing, when I am using the 'Insert' (or 'Einfügen' in german) function from the standard context menu. Neither 'CellValueChanged' is fired nor 'ValueChange' . I need to track cause of the database update. Can you help?

Greets Robert
Stefan
Telerik team
 answered on 01 May 2013
1 answer
272 views
I am using Q1 2011 Reporting on VS 2012. I want to add new event to RadListView but I am getting an error. Here is the part of my code. Error line is in bold.

private Telerik.WinControls.UI.RadListView lvRules;

private void lvRules_SelectedItemChanged(object sender, ListViewItemEventArgs e)
        {
            ListViewDataItem item = e.Item;
            if (item == null)
                return;
            DbSpamRule rule = (DbSpamRule)item.Tag;
            Rule2FormObjects(rule);
        }

this.lvRules.SelectedItemChanged += new Telerik.WinControls.UI.ListViewItemEventHandler(this.lvRules_SelectedItemChanged);

How can I fix this error?: Cannot implicitly convert type 'Telerik.WinControls.UI.ListViewItemEventHandler' to 'System.EventHandler'

Any suggestions?



Paul
Telerik team
 answered on 30 Apr 2013
1 answer
157 views
I have a ListView in IconMode which supports drag & drop for reordering the items by using the ListViewDragDropService:
dim myDDService as new ListViewDragDropService = ListView.ListViewElement.DragDropService
It works fine. Now I try the same with a databound ListView but I doesn't react on dragging. When I remove the databinding and fill the listview manually with the items, drag and drop works. 



Anton
Telerik team
 answered on 30 Apr 2013
3 answers
79 views
Hi,
  1. Launch your demo application and select -->scheduler -->DataBinding
  2. Select Bind to dataset
  3. Try to re-size any appointment by mouse and hit save button it will revert to previous state
  4. eg:select Mr. Blue 12.00PM to 5.00PM and i had re sized it using mouse to 12.00PM to 6.00PM
  5. then clicked save button and you see the error.
Peter
Telerik team
 answered on 30 Apr 2013
1 answer
169 views
I am developing a WinForms application using a RadPageView control with eight tabs. On each tab I have a mix of RadTextBox and RadDropDownList controls all bound to a object using a BindingSource control. When I bind an object to this datasource the SelectedValue on certain drop downs don't always bind on pages after the first one. As soon as I click on the page the SelectedValue updates and it displays the correct value. There doesn't seem to be any pattern to which drop downs have this problem and the ones that have the problem seem to periodically change.

Does anyone know why this happens or if there is a way around it? The problem it is causing me is that when I call ValidateChildren on the form the validation is happening without the values being correct, but when I switch to the page with the error the field is correct but still shows the validation error.
Peter
Telerik team
 answered on 30 Apr 2013
4 answers
152 views
Hi,
I want to add a button or another control, which could give users an option to choose an image from the harddrive in RadGridView
Stefan
Telerik team
 answered on 30 Apr 2013
1 answer
90 views
Hi,

I'm an older user (2009) and  I have purchased an actual license (3013.1).
 I want to use Upgrade Tool but I can't do what it says in the links...

http://www.telerik.com/help/winforms/pageview-upgrading-to-radpageview.html


"This article is valid for RadControls for WinForms versions prior to Q2 2011 SP1 inclusive. The Upgrade Tool can be used only if started from the SmartTag of the obsolete controls. Since these controls have been removed in Q3 2011, their respective Upgrade Tools are not available as well. In case you want to use the tools, please upgrade/downgrade to Q2 2011 SP1 (v2011.2.11.831)"

The question is, how could I upgrade first to Q2 2011 SP1, and then to 2013.1?

Thank,
Francisco
Stefan
Telerik team
 answered on 30 Apr 2013
2 answers
135 views
Hello
I'm trying to create custom backgrounds for appointments.
The code is used to add:

Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(23, "Orange", Color.Orange, Color.Orange)))
Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(24, "Yellow", Color.Gold, Color.Gold)))
Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(25, "Green", Color.YellowGreen, Color.YellowGreen)))

The problem is that the text of the description and the location is the same color. Deputy image to view
http://img211.imageshack.us/img211/2582/examplerz.png


Is there a way to customize the text of the description and the location?
Deputy image to show how I want.
http://img825.imageshack.us/img825/1968/app1z.png

I visited the references page but I do not go out of doubt ( http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-appointments.html )

I'm using Visual Basic.net 2012 Framworks 4.5 whith telerik Q1 2013
thanks
Stefan
Telerik team
 answered on 30 Apr 2013
3 answers
116 views
Hello,

We've got a complex domain model and I want to display different series in the chart view. Nothing extremely fancy, something like this:

class Data {
public float Y1 {get;set;}
public float Y2 {get;set;}
public float Y3 {get;set;}
public TimeSpan When {get;set;}
public float Sum {get{return Y1+Y2+Y3;}}
public byte Address {get;set;}
}

And so on, along these lines. We'll want to take an IEnumerable<Data> and GroupBy(x => x.Address) then display each of those groups in a series of their own.

It's actually a little more complex than that, there will be calculators running, and lambdas, but should be transparent to the chart view. SHOULD BE. Oh, and I want to display these ordered in the time domain: When (TimeSpan, time into test) is my X axis. Some function of the Y's are my Y axis.

Thus far I can get the series to at least appear and title themselves in the legend, so I have some visual feedback that that much is working. However, I get no data displaying in the LineSeries at all. It's all flat lines so far, but I do get some series there, so I know it's trying.

How do I instruct the chart to find our data?

Thank you...
Peter
Telerik team
 answered on 29 Apr 2013
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
CheckedDropDownList
ProgressBar
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?