@(Html.Telerik().TreeView() .Name(Model.ValueControlId + "projectroom-treeview") .BindTo(Model.AvailableProjectRooms, mappings => { mappings.For<ProjectRoom>(binding => binding .ItemDataBound((item, projectRoom) => { item.Value = projectRoom.RoomGUID.ToString(); item.Text = projectRoom.RoomName; item.ImageUrl = null; item.Expanded = true; item.Selected = projectRoom.RoomGUID == Model.SelectedRoomGUID; })); }) .ClientEvents(events => events .OnSelect("onSelectMessage") ) )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)