private IConfigurator GetToc(string tutorialId) { var conf = new Configurator<TutorialEntry,TocEntryViewModel>(); conf.Hierarchy(); conf.ProjectDataWith(c => c.OrderBy(x=>x.Order).Select(x => new TocEntryViewModel() { IsExpanded = true, IsVisible = true, ChildrenCount = x.SubTutorials.Count, Description = x.Description, Link = Url.Action("Tutorial", new { tutorialId = x.Namespace.Replace("Reinforced.Lattice.Book.WebApp.App_Data.", "").Replace(".", "_") }), Text = x.FriendlyName, ParentKey = x.Parent == null ? null : x.Parent.Namespace, RootKey = x.Namespace, IsSelected = x.Namespace.EndsWith(tutorialId) })); conf.Column(c=>c.Link).DataOnly(); conf.Column(c=>c.Description).DataOnly(); //conf.Column(c=>c.Order).OrderableUi(c=>c.UseClientOrdering().DefaultOrdering(Ordering.Ascending)).DataOnly(); conf.Prefetch(TutorialsList.LinearTutorialList.OrderBy(c=>c.Order)); conf.Column(c=>c.Text).FilterValueUi(ui=>ui.ClientFiltering().Placeholder("Search documentation...").Inputdelay(10)); return conf; }