Hi, i face grouping error in groping resources in radscheduler.
I had follow all the steps in the demo but when it come to groupby it fail.
My error is as below :
Line :3396
Char:26
Err:'this.cells0.offsetHeight is null or not an object'
code:0
Does anyone has idea on this ??
My coding is as below :
I had follow all the steps in the demo but when it come to groupby it fail.
My error is as below :
Line :3396
Char:26
Err:'this.cells0.offsetHeight is null or not an object'
code:0
Does anyone has idea on this ??
My coding is as below :
<telerik:RadScheduler ID="RadScheduler1" runat="server" GroupBy="LineNum" |
DataKeyField="ID" DataSubjectField="Desc" |
DataStartField="StartDate" DataEndField="EndDate" |
DataRecurrenceField="ID" SelectedDate="2010-04-22" |
DataRecurrenceParentKeyField="ID" RowHeaderWidth="52px" |
SelectedView =TimelineView |
> |
<AdvancedForm Modal="true" /> |
</telerik:RadScheduler> |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Try |
If Not Page.IsPostBack = True Then |
CreateTable() |
AddRowTomdsResult() |
RadScheduler1.DataSource = mdsResult |
RadScheduler1.DataBind() |
End If |
Catch ex As Exception |
Throw ex |
End Try |
Private Sub AddRowTomdsResult() |
Dim dr As Data.DataRow |
Try |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 1 |
dr("LineNum") = "1.1" |
dr("ShiftNum") = "Morning" |
dr("Desc") = "X1" |
dr("StartDate") = "3/3/2010" |
dr("EndDate") = "3/3/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 2 |
dr("LineNum") = "1.1" |
dr("ShiftNum") = "Morning" |
dr("Desc") = "X1" |
dr("StartDate") = "3/3/2010" |
dr("EndDate") = "3/3/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 3 |
dr("LineNum") = "1.1" |
dr("ShiftNum") = "Morning" |
dr("Desc") = "X1" |
dr("StartDate") = "3/3/2010" |
dr("EndDate") = "3/3/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 4 |
dr("LineNum") = "1.2" |
dr("ShiftNum") = "Grave" |
dr("Desc") = "X1" |
dr("StartDate") = "4/22/2010" |
dr("EndDate") = "4/22/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 5 |
dr("LineNum") = "1.2" |
dr("ShiftNum") = "Grave" |
dr("Desc") = "X1" |
dr("StartDate") = "4/22/2010" |
dr("EndDate") = "4/22/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
dr = mdsResult.Tables(0).NewRow |
dr("ID") = 6 |
dr("LineNum") = "1.2" |
dr("ShiftNum") = "Grave" |
dr("Desc") = "X1" |
dr("StartDate") = "4/22/2010" |
dr("EndDate") = "4/22/2010" |
mdsResult.Tables(0).Rows.Add(dr) |
Catch ex As Exception |
Throw ex |
End Try |
End Sub |
Private Sub CreateTable() |
Dim table As New DataTable |
Dim column As DataColumn |
Try |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.Int32") |
column.ColumnName = "ID" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.String") |
column.ColumnName = "LineNum" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.String") |
column.ColumnName = "ShiftNum" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.String") |
column.ColumnName = "Desc" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.DateTime") |
column.ColumnName = "StartDate" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
column = New DataColumn() |
column.DataType = System.Type.GetType("System.DateTime") |
column.ColumnName = "EndDate" |
column.ReadOnly = False |
column.Unique = False |
table.Columns.Add(column) |
mdsResult.Tables.Add(table) |
Catch ex As Exception |
Throw ex |
End Try |
End Sub |
End Sub |