Hi
I'm trying to make a RadGrid with cascadingcombo boxes. I'm new to Telerik so i have no clue what i'm doing at the moment. I tried to make the DropDown colum his datasource a list that i get from the DB trough Linq and trough a DTOmapper. So the thing is i can't attach my list of dto's to the comboboxcolum ! Because it only takes a string and not a List of objects. Does anyone know what i'm doing wrong or am i completly forgetting something ?
Ill attach my code
I'm trying to make a RadGrid with cascadingcombo boxes. I'm new to Telerik so i have no clue what i'm doing at the moment. I tried to make the DropDown colum his datasource a list that i get from the DB trough Linq and trough a DTOmapper. So the thing is i can't attach my list of dto's to the comboboxcolum ! Because it only takes a string and not a List of objects. Does anyone know what i'm doing wrong or am i completly forgetting something ?
Ill attach my code
private void LoadBehandelaars(int toInt32) { DataTable behandelaar = new DataTable(); List<User> Behandelaars = _clientenFunctions.GetBehandelaarsByDiscipline(Convert.ToInt32(Session["cate"])); behandelaar.PrimaryKey = new DataColumn[]{ behandelaar.Columns.Add("NestorNummer",typeof(string))}; behandelaar.Columns.Add("UserName", typeof (string)); foreach (User user in Behandelaars) { behandelaar.Rows.Add(new object[] { user.NestorNummer, user.UserName } ); } GridDropDownColumn BehanderlaarColumn = new GridDropDownColumn(); BehanderlaarColumn.HeaderText = "Behandelaar"; BehanderlaarColumn.DataSourceID = behandelaar.ToString(); }