I would love to avoid having to create columns by hand, and just rely on auto generation. I know I can set a title of the column by adding a DisplayName attribute. However, when I try to set a date format, it's breaking.
Here's what I am trying to do
[DisplayName("Invoice Date")][DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]public DateTime? InvoiceDate { get; set; }However, the date still displays with the time.
Also, is there a way to get a column to be hidden through attributes alone?


how can move between controls by using enter
if ((e.KeyCode == Keys.Enter) ) { this.SelectNextControl((Control)sender, true, true, true, true); }is not working

I have a GridViewDateTimeColumn that I am trying to format to show only the date in the format: "MM/dd/yyyy", but instead I get the time in the form of all zeros following the date. (see screen shot).
Property Settings:
Format: Custom
FormatInfo: en-IN
CustomFormat: MM/dd/yyyy
EditorType: DateTimePicker
FilteringMode: Date
Is it possible to get rid of the time and just display the date? If so, how?
Hi,
As you probably know, Telegram has introduced its Gaming Platform recently which supports HTML5.
I developed a WinForms application with the help of your UI for WinForms product (e.g., GridView and ...). I know that you have a product called Kendo UI which supports HTML5, too. My question is that, is it possible to build an HTML5 page using Kendo UI and then render it into Telegram? If so, how?
Actually, since Telegram supports HTML5 from now on and since your Kendo UI supports HTML5, so I want to make some HTML5 pages (Specially GridView) and load them into Telegram and users can interact with my WinForms application using their Telegram app.
I you have any idea about this, please help.
Thanks in advance.
myDropDownList.DataBindings.Add("SelectedValue", this, "myID", false, DataSourceUpdateMode.OnPropertyChanged);System.ArgumentException was unhandled Message=Object of type 'System.DBNull' cannot be converted to type 'System.Int32'. Source=System StackTrace: at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value) at System.Windows.Forms.BindToObject.SetValue(Object value) at System.Windows.Forms.Binding.PullData(Boolean reformat, Boolean force) at System.Windows.Forms.Binding.Target_PropertyChanged(Object sender, EventArgs e) at Telerik.WinControls.UI.RadDropDownList.OnSelectedValueChanged(Object sender, Int32 newIndex, Object oldValue, Object newValue) at Telerik.WinControls.UI.RadDropDownList.element_SelectedValueChanged(Object sender, ValueChangedEventArgs e) at Telerik.WinControls.UI.RadDropDownListElement.OnSelectedValueChanged(Object sender, ValueChangedEventArgs e) at Telerik.WinControls.UI.RadDropDownListElement.NotifyOwner(PopupEditorNotificationData notificationData) at Telerik.WinControls.UI.PopupEditorElement.listElement_SelectedValueChanged(Object sender, EventArgs e) at Telerik.WinControls.UI.RadListElement.OnSelectedValueChanged(Int32 newIndex) at Telerik.WinControls.UI.RadListElement.OnSelectedIndexChanged(Int32 newIndex) at Telerik.WinControls.UI.RadListElement.SetSelectedIndex(Int32 value) at Telerik.WinControls.UI.RadDropDownListElement.set_SelectedIndex(Int32 value) at Telerik.WinControls.UI.RadDropDownListElement.OnTextChanged(RadDropDownListEditableAreaElement sender, EventArgs args) at Telerik.WinControls.UI.RadDropDownListElement.NotifyOwner(PopupEditorNotificationData notificationData) at Telerik.WinControls.UI.RadDropDownListEditableAreaElement.textBox_TextChanged(Object sender, EventArgs e) at Telerik.WinControls.RadItem.OnTextChanged(EventArgs e) at Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e) at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource) at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source) at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source) at Telerik.WinControls.RadObject.OnTwoWayBoundPropertyChanged(PropertyBinding binding, Object newValue) at Telerik.WinControls.PropertyBinding.UpdateSourceProperty(Object newValue) at Telerik.WinControls.RadPropertyValue.SetLocalValue(Object value) at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source) at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source) at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_TextChanged(Object sender, EventArgs e)
Hello,
I have a chart which display will should display timeserie data which could vary from a few point to hunderds. And of course the chart could be resized. In some this end up in an unreadable chart with too much tick label (or not enough).
It will be great if the chartview control could be able to update automatically the MajorTickInterval to prevent this. Just like the chart in Excel !
I attach two screenshot (one of the ChartView, one of Excel) to illustrate.

Hi,
I have been trying to override CellFormatting to reformat a string value to look like 2 labels, one above the other (in the same cell) e.g.:
Freddy Smith (standard font)
On the phone (smaller font)
To do this I have been trying to create 2 RadHostControls, each one hosting a Label control and using .Location. .MaxSize etc properties to try to position the 2 labels (or their host controls) within the cell.
But somehow the first RadHostControl seems to take over all the spacein the cell (If I put the background to red I can see it occupies the whole cell).
Do you have any example where you have used multiple labels?
Many thanks.
(Using Q1 2016)

Hello, I have a custom column, that is bound to a custom type, the custom type is a complex type, that have a (public string Display) property, that is the one I wish to use to filter the grid.
The excel like filter is working, maybe because the compex type have a "tostring" method, i attach a screenshot of the grid.
The standard filter is not working instead. All the filters are disabled. How can I make the filter cell to work with the complex type? I think i have to create a new filter cell descending from Telerik.WinControls.UI.GridFilterCellElement
then on my custom column:
public override Type GetCellType(GridViewRowInfo row) { if (row is GridViewDataRowInfo) { return typeof(LookupGridColumnElement); } else if (row is Telerik.WinControls.UI.GridViewFilteringRowInfo) { return typeof(LookupGridColumnFilterElement); } return base.GetCellType(row); }
Is that the correct way? What do i need to override on my filter cell to let it work as if it were bound to a string field?
