or
function onSelect() { //var reviewCategoryGrid = $("#ReviewCategoryGrid").data("kendoGrid"); //reviewCategoryGrid.dataSource.read(); var gridItem = $("#ReviewItemGrid"); var gridItemGrid = $("#ReviewItemGrid").data("kendoGrid"); var gridCategory = $("#ReviewCategoryGrid"); var gridCategoryGrid = $("#ReviewCategoryGrid").data("kendoGrid"); var dataAreaCategory = gridCategory.find(".k-grid-content"); var dataArea = gridItem.find(".k-grid-content"); var newGridHeight = 600; var newDataAreaHeight = newGridHeight - 100; dataArea.height(newDataAreaHeight); gridItem.height(newGridHeight); // gridItemGrid.refresh(); dataAreaCategory.height(newDataAreaHeight); gridCategory.height(newGridHeight); // gridCategoryGrid.refresh(); }function selectReviewCategory(reviewCategoryID, category) { reviewCategoryId = reviewCategoryID; //reviewCategoryTitle = Title; var reviewItemGrid = $("#ReviewItemGrid").data("kendoGrid"); reviewItemGrid.dataSource.read(); var tabstrip = $("#tabstrip").data("kendoTabStrip"); //var tabContent = $("#tabStrip").data("kendoTabStrip").contentElements(0); var tabReview = $("#reviewCategoriesTab"); tabReview.children(".k-link").text(category); tabstrip.select("#reviewItemsTab");}reviewItemGrid.dataSource.read(); line the rendering is ok (but of course with no data).
I have tried to move the tabstrip.select statement to the change event of the datasource of the grid. But that did not have an effect. What shall I do ?
Thanks
Ole

@(Html.Kendo().DropDownListFor(c=>c.HRFlag) .Name("HRList") .DataTextField("DisplayText") .HtmlAttributes(new { value = Model.HRFlag }) .DataValueField("KeyValue") .DataSource(source=>source .Read(read=>read.Action("GetEditHRStatusList", "HR"))))[AcceptVerbs(HttpVerbs.Post)] public ActionResult Update([DataSourceRequest] DataSourceRequest request, Models.sysVacancies proposal) { Models.EVASdBDataContext db = new Models.EVASdBDataContext(); Models.Vacancy originalProposal = (from v in db.Vacancies where v.ID==proposal.ID select v).Single(); originalProposal.HRFlag = proposal.HRFlag; originalProposal.HRVacancyRef = proposal.HRVacancyRef; db.SubmitChanges(); var query = from v in db.sysVacancies where v.FinalReview != null & v.VacancyAuthorisation == "Y" select v; query = query.OrderByDescending(c => c.SubmissionDate); return Json(query.ToDataSourceResult(request, ModelState)); }@(Html.Kendo().Grid<EVAS_MVC.Models.sysVacancies>().Name("Grid").Events(e=>e.Edit("onEdit")).Columns(columns=> { columns.Bound(p => p.ID).Title("").ClientTemplate("<img src='" + @Url.Content("~/Content/") + "#: HRGif #' alt='Proposal Details'").Filterable(false).Sortable(false); columns.Bound(p=>p.ID); columns.Bound(p => p.SubmissionDate).Title("Submission Date").Format("{0:d}"); columns.Bound(p => p.PostTitle); columns.Bound(p=>p.SubmittingUser).Filterable(false); columns.Bound(p => p.DirectorateName).Title("Directorate").Filterable(false); columns.Bound(p => p.DGMName).Title("Manager").Filterable(false); columns.Bound(p => p.NoOfPosts).Title("Posts").Filterable(false); columns.Bound(p => p.WTE).Title("WTE").Filterable(false); columns.Bound(p => p.PayScaleDesc).Title("Pay Scale").Filterable(false); columns.Bound(p => p.Grade).Title("Grade").Filterable(false); columns.Bound(p => p.SmartCard).Title("Smart Card?").Filterable(false); columns.Bound(p => p.ID).Title("").ClientTemplate("<a href='http://ReportServer/ProposalDetails_Dev&id=#: ID #&rs:Command=Render&rs:Format=PDF' target='_blank'><img src='" + @Url.Content("~/Content/Images/pdf.gif") + "' alt='Proposal Details' style='border-width:0;Margin-left:5px;' /></a> <a href='http://getfile.aspx?DocID=#: JobDescID #' target='_blank' style='#: JobDescStyle #'><img src='" + @Url.Content("~/Content/Images/16-message-info.gif") + "' alt='Job Description' style='border-width:0;Margin-left:5px;' /></a><a href='getfile.aspx?DocID=#: PersSpecID #' target='_blank' style='#: PersSpecStyle #'><img src='" + @Url.Content("~/Content/Images/16-message-info.gif") + "' alt='Personal Specification' style='border-width:0;Margin-left:5px;' /></a> <input type='image' src=' " + @Url.Content("~/Content/Images/16-clock.gif") + "' onclick='showTimes(#: ID#);' style='border-width:0;Margin-left:5px;'/>").Filterable(false).Sortable(false); columns.Command(command => { command.Edit().Text(" "); }); }) .ToolBar(c=>c.Template("<span style='Margin-right:10px;Margin-left:10px;'>Status:</span>" + Html.Kendo().DropDownList().Name("StatusList").DataTextField("DisplayText").DataValueField("KeyValue") .Events(e=>e.Change("onChange")) .HtmlAttributes(new { style="width:300px;"}) .DataSource(source=>source .Read(read=>read.Action("GetHRStatusList", "HR"))).ToHtmlString() )) .Editable(editable=>editable .Mode(GridEditMode.PopUp)) .DataSource(dataSource=>dataSource .Ajax() .Model(m=>m.Id(p=>p.ID)) .PageSize(20) .Read(read=>read.Action("HRVacanciesRead","HR")) .Update(update=>update.Action("Update","HR")) ) .Pageable() .Sortable() .Filterable() )