I'm trying to figure out how to programmatically set up a hierarchical grid bound to a collection of objects. When I run the code shown below I get an exception when trying to expand the parent rows
In the form code behind-
public Form1() { InitializeComponent(); List<Parent> parents = new List<Parent> (); parents.Add(CreateParent("Joe")); parents.Add(CreateParent("Bob")); this.parentBindingSource.DataSource = parents; }private static Parent CreateParent (string parentName) { var parent = new Parent () {ParentName = parentName}; String childName = String.Format ("Child of {0}", parentName); parent.Children.Add(new Child() { Age = 2, ParentName = parentName, ChildName = "Child" }); return parent; }Data class
public class Parent { private List<Child> m_children = new List<Child> (); public String ParentName { get; set; } public MyEnum FirstSecond { get; set; } public List<Child> Children { get { return m_children; } private set { m_children = value; } } }public class Child { public String ChildName { get; set; } public String ParentName { get; set; } public MyEnum FirstSecond { get; set; } public int Age { get; set; } }public enum MyEnum { First, Second }

Hi Telerik support team,
May I know which control able to do this kind of display field(including the background color of blue and pink)? Please refer to the attachment.
Thank you.
Best regards,
Nicholas

Hi,
May I know Telerik Winforms could do these 3 features in properties settings instead of using coding(Please refer to the attachment)? If yes please provide the steps to do this. If no, please provide advice or solutions to do these features.
Thank you.
Best regards,
Nicholas
Hi,
I have a time ​column on a RadGridView. If the field is null, it defaults to the current time of day when the user starts typing in a new value. I want to change this behavior.
I need it to remain blank, and then default to 00:00 when the user start typing. FYI, the property on the datasource is a nullable DateTime.
Thanks.

I have a grid which shows employee data and enable user to edit the data. When edit command is pressed, it displays dropdown list for one of the column(Name). The dropdown value gets displayed without any issue however when edit command is pressed, the existing value within the dropdown gets hidden and first value '- Select -....' get displayed.
P.S: i followed this tutorial to add dropdown in Kendo Grid: http://www.sitereq.com/post/kendo-mvc-dropdown-lists-inside-inline-kendo-mvc-grids
Code Behind:
class EmployeeItem{public string Name{get; set;}public string Code1{get;set;}public string Code2{get;set;}​
public string CombinedValues{get;set;} //this is combination of Name, Code1, Code2 delimited by comma
}
Controller Code:
List<EmployeeItem> employeeList = service.GetEmployeeList();ViewBag.EmployeeList = new SelectList(employeeList, "CombinedValues", "Name");
EditorTemplate Code (_EmployeeDropDown.cshtml):
@(Html.Kendo().DropDownList() .BindTo((IEnumerable)ViewBag.EmployeeList) .OptionLabel("- Select - ") .DataValueField("Value") .DataTextField("Text") .Name("EmployeeData"))@(Html.Kendo().Grid(Model.employeeDetails) .Name("GridEmployeeDetails") .Columns(columns => { columns.Command(command => { command.Edit(); }).Width("180px").Title("Action"); columns.Bound(e => e.Name).Width("210px").EditorTemplateName("_EmployeeDropDown") .ClientTemplate("#:EmployeeData#"); })So if the employeeList have values something like this:
Name = John, Code1 = 1, Code2 = 2, CombinedValues = John,1,2
Name = Matt, Code1 = 21, Code2 = 50, CombinedValues = Matt, 21, 50
In the grid, when i first view the grid it displays the Name, John in first row, Matt in second row. If i edit Matt row, the dropdown will show up with '-Select-' as selected value instead of 'Matt'.
Does anyone know how i can achieve that?
Also, once i make selection on dropdown, let's say from Matt to John, and hit inline Save button now the value changes to CombinedValues i.e. John,1,2 instead of just John under Name column.


Hi,
I just got a subscription to Telerik's control library to work on a client's project.
However, the project uses an older version of the controls (2015 Q1). I tried to install an older version through the website but I get this:
Versions you can download
2015.2 623
Is there a way to get a version of the installer for an old bundle, before the license was acquired?
Thank you,
Lachezar
Hi,
Does ​GridView support nested grids with arbitrary structure that can vary between parent rows? For example:
=ObjectName= =ObjectQuantity=
- The Book 2
=Chapter= =Page=
Chapter 1 3
....
- Kitchen Set 1
=Item= = Qty= =Material=
Knife 3 Stainless Steel
Cup 4 Porcelain
....
- Pencil 50
- A4 paper 100
etc.
So it's not really parent-child / master-detail relationship, it's more like a flat list of objects where some objects might have nested data (and some might not).
