or

function markCurrentHour() { var currentHour = (new Date()).format("HH"); var currentMinutes = (new Date()).format("mm"); if (+currentHour < 13) { currentHour += "AM"; } else { currentHour = (+currentHour - 12) + "PM"; } var verticalHeaderTables = $(".rsVerticalHeaderTable"); // Each view type has a table (day view, week view, etc.) if (verticalHeaderTables) { $.each(verticalHeaderTables, function (index, item) { var hourCells = $(item).find(".rsAmPm"); // 24 cells with the hours (12AM, 1AM, 2AM, etc.) $.each(hourCells, function (index, item) { if (item.parentNode.innerText.trim() == currentHour) { // Current hour cell if (+currentMinutes < 30) { // First 30 minutes cell item.parentNode.parentNode.style.borderBottomColor = "lightgreen"; item.parentNode.parentNode.style.borderBottomWidth = "5px"; } else { // Next 30 minutes cell $(item.parentNode.parentNode.parentNode).next().children()[0].style.borderBottomColor = "lightgreen"; $(item.parentNode.parentNode.parentNode).next().children()[0].style.borderBottomWidth = "5px"; } } }); }); }}function onClientAppointmentsPopulated() { markCurrentHour();}RadGrid1.MasterTableView.AllowPaging = FalseDim tableViewOrders = New GridTableView(RadGrid1)RadGrid1.MasterTableView.DetailTables.Add(tableViewOrders)tableViewOrders.AllowPaging = TruetableViewOrders.PageSize = 10RadGrid1.AllowSorting = TrueRadGrid1.ClientSettings.Scrolling.UseStaticHeaders = TrueRadGrid1.AllowFilteringByColumn = TrueRadGrid1.MasterTableView.HeaderStyle.Width = Unit.Pixel(200)RadGrid1.ClientSettings.EnableRowHoverStyle = TrueRadGrid1.MasterTableView.AllowNaturalSort = FalsetableViewOrders.AllowNaturalSort = FalsePrivate Sub RadGrid1_DetailTableDataBind(sender As Object, e As GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind 'If rep.Ready_Data.Tables.Count > 1 Then Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem) Dim cellID As TableCell = dataItem("_key_id") Dim ConnectID As String = cellID.Text rep.Ready_Data.Tables(1).DefaultView.RowFilter = "" rep.Ready_Data.Tables(1).DefaultView.RowFilter = "_parent_key_id = " & ConnectID e.DetailTableView.DataSource = rep.Ready_Data.Tables(1).DefaultView End SubtableViewOrders.GetColumn("_parent_key_id").Display = FalsetableViewOrders.GetColumn("key_id").Display = False
Cannot find a column with UniqueName '_parent_key_id'Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Telerik.Web.UI.GridException: Cannot find a column with UniqueName '_parent_key_id'Source Error: Line 208: tableViewOrders.GetColumn("_parent_key_id").Display = FalseLine 209: tableViewOrders.GetColumn("key_id").Display = False