I'm using Telerik.WinControls.GridView version 2012.2.912.40.
I want to validate a cell and focus on it if it is not.
How to manually focus a radgrid view cell during CellEndEdit event.

Hi,
I'm working with RadButton, (like attached image). When click on WorkWeek button, the background is changed as attached image, but after click it change to color as the color when mouse on hover the button. But I want when after click it still keep color as the color when I click, and then I click on another button (Week button for example), that backcolor is set for another button (not set for WorkWeek button any more). How can I do it?
Look forward to your reply,
Pham Thanh.

Hi
I'm trying to use the MultiColumn ComboBox to allow users to search and select values from a flat table on the database, just it's not working and I've spent already the entire day trying combinations without success.
This is the Class being binded:
public class DocumentType { public int id { get; set; } public string Code { get; set; } public string Label { get; set; } public string Description { get; set; } }This is the Designe.cs code:
// // cmbDocumentType// this.cmbDocumentType.AutoScroll = true;this.cmbDocumentType.AutoSize = true;this.cmbDocumentType.AutoSizeDropDownToBestFit = true;// // cmbDocumentType.NestedRadGridView// this.cmbDocumentType.EditorControl.AutoScroll = true;this.cmbDocumentType.EditorControl.BackColor = System.Drawing.SystemColors.Window;this.cmbDocumentType.EditorControl.Cursor = System.Windows.Forms.Cursors.Default;this.cmbDocumentType.EditorControl.EnableFastScrolling = true;this.cmbDocumentType.EditorControl.EnableGestures = false;this.cmbDocumentType.EditorControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);this.cmbDocumentType.EditorControl.ForeColor = System.Drawing.SystemColors.ControlText;this.cmbDocumentType.EditorControl.ImeMode = System.Windows.Forms.ImeMode.NoControl;this.cmbDocumentType.EditorControl.Location = new System.Drawing.Point(0, 0); gridViewTextBoxColumn1.EnableExpressionEditor = false;gridViewTextBoxColumn1.FieldName = "Code";gridViewTextBoxColumn1.HeaderText = "Code";gridViewTextBoxColumn1.Name = "Code";gridViewTextBoxColumn1.Width = 58;gridViewTextBoxColumn2.EnableExpressionEditor = false;gridViewTextBoxColumn2.FieldName = "Label";gridViewTextBoxColumn2.HeaderText = "Label";gridViewTextBoxColumn2.Name = "Label";gridViewTextBoxColumn2.Width = 112;gridViewTextBoxColumn3.EnableExpressionEditor = false;gridViewTextBoxColumn3.FieldName = "Description";gridViewTextBoxColumn3.HeaderText = "Description";gridViewTextBoxColumn3.Name = "Description";gridViewTextBoxColumn3.Width = 357;this.cmbDocumentType.EditorControl.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {gridViewTextBoxColumn1,gridViewTextBoxColumn2,gridViewTextBoxColumn3});// // // this.cmbDocumentType.EditorControl.AllowAddNewRow = false;this.cmbDocumentType.EditorControl.AllowCellContextMenu = false;this.cmbDocumentType.EditorControl.AllowColumnChooser = false;this.cmbDocumentType.EditorControl.AllowColumnReorder = false;this.cmbDocumentType.EditorControl.AllowDeleteRow = false;this.cmbDocumentType.EditorControl.AllowDragToGroup = false;this.cmbDocumentType.EditorControl.AllowEditRow = false;this.cmbDocumentType.EditorControl.AutoGenerateColumns = false;this.cmbDocumentType.EditorControl.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;this.cmbDocumentType.EditorControl.EnableFiltering = true;this.cmbDocumentType.EditorControl.EnableGrouping = false;this.cmbDocumentType.EditorControl.EnableSorting = false;this.cmbDocumentType.EditorControl.ShowFilteringRow = false;//this.cmbDocumentType.EditorControl.ViewDefinition = tableViewDefinition1;this.cmbDocumentType.EditorControl.Name = "NestedRadGridView";this.cmbDocumentType.EditorControl.NewRowEnterKeyMode = Telerik.WinControls.UI.RadGridViewNewRowEnterKeyMode.None;this.cmbDocumentType.EditorControl.ReadOnly = true;this.cmbDocumentType.EditorControl.RightToLeft = System.Windows.Forms.RightToLeft.No;this.cmbDocumentType.EditorControl.ShowGroupPanel = false;this.cmbDocumentType.EditorControl.Size = new System.Drawing.Size(545, 31);this.cmbDocumentType.EditorControl.TabIndex = 0;this.cmbDocumentType.EnableAnalytics = false;this.cmbDocumentType.EnableGestures = false;this.cmbDocumentType.Location = new System.Drawing.Point(202, 7);this.cmbDocumentType.Name = "cmbDocumentType";this.cmbDocumentType.ShowItemToolTips = false;this.cmbDocumentType.Size = new System.Drawing.Size(271, 20);this.cmbDocumentType.TabIndex = 4;this.cmbDocumentType.TabStop = false;this.cmbDocumentType.ThemeName = "Office2007Black";this.cmbDocumentType.UseCompatibleTextRendering = false;And this is the code right at the end of the form's constructor:
this.cmbDocumentType.AutoFilter = true;CompositeFilterDescriptor compositeFilter = new CompositeFilterDescriptor();compositeFilter.LogicalOperator = FilterLogicalOperator.Or;FilterDescriptor fdLabel = new FilterDescriptor("Label", FilterOperator.Contains, string.Empty);compositeFilter.FilterDescriptors.Add(fdLabel);FilterDescriptor fdDescription = new FilterDescriptor("Description", FilterOperator.Contains, string.Empty);compositeFilter.FilterDescriptors.Add(fdDescription);FilterDescriptor fdCode = new FilterDescriptor("Code", FilterOperator.Contains, string.Empty);compositeFilter.FilterDescriptors.Add(fdCode);this.cmbDocumentType.EditorControl.FilterDescriptors.Add(compositeFilter);RadGridView gridViewControl = this.cmbDocumentType.EditorControl;gridViewControl.MasterTemplate.AutoGenerateColumns = false;this.cmbDocumentType.MultiColumnComboBoxElement.DropDownAnimationEnabled = false;Later on, if by user input the combo is required, then I'm binding the data (list of DocumentType) from MemoryCache:
if (this.cmbDocumentType.DataSource == null) { this.cmbDocumentType.DataSource = Globals.Cache.GetMobileDocumentTypes(); this.cmbDocumentType.Text = string.Empty; } }I don't know what's wrong, I've followed by the letter the documentation from here and still doesn't work.
Thank you for your time,
Alejandro


Hi
When I click the button I want to go to the Radform1 but not working. Help me please
I use code (Button click):
Radform1.show();
this.hide();

I need to format this "123456789" to this "12-3456789" in a column.
I know I can do this in the code, but is there a way to do this through the designer?
I tried setting the FormatString of the GridViewTextBoxColumn to {0:##-#######} but that doesn't seem to do anything.
Thanks!

We've a custom object with several properties. When implementing the RadDataEntry control for visualizing details of each record displayed in GridView, we want to hide some properties. We implemented the [Browsable(false)] attribute and that hides the property in the RadDataEntry as expected, however it also impacts in the Grid. Is there a way to display a property in the Grid and hide it in the DataEntry?
Thanks!

I have a grid with a datetime column that gets populated.
I format the date yyyy-mm-dd 12 hr. (yyyy-MM-dd hh:mm:ss.fff tt). For example: 2016-05-12 02:38:25.613 PM
For Each column As GridViewColumn In GridView.Columns
If TypeOf column Is GridViewDateTimeColumn Then
'change the formatting
Dim col As GridViewDateTimeColumn = TryCast(column, GridViewDateTimeColumn)
col.FormatString = "{0: yyyy-MM-dd hh:mm:ss.fff tt}"
'set the tooltip on the column
End If
Next
Now, when i select the value, the actual value is not my formatted, but instead: mm/dd/yyyy. For example: 5/12/2016 2:38:25 PM
If I copy the cell and paste in notepad it shows yyyy-mm-dd 24 hr with only hr/minute, no seconds. For example: 2016-05-12 14:38
Can anyone explain this RETARDATION??
Sorry to sound like a jerk, but it is quite frustrating when simple things like this are not correct. This control has been out for 8-10 years now. Why would it not ALL match the SAME value that is displayed?? IMAGINE THAT!
It is also irritating to have to spend time finding and bringing this up and expected to pay support thousands each year for things that are correct and function normal by now. No excuse for this.
...I have a feeling I will not be getting a response, like my MANY other threads that go unanswered here.
Please build better controls that work as intended and not need constant workarounds as well as have lingering issues (performance) that never seem to get resolved.

