| function AddNode(parentNode) { |
| var tree = $find("<%= tvCategory.ClientID %>"); |
| tree.trackChanges(); |
| var node = new Telerik.Web.UI.RadTreeNode(); |
| node.set_text("New Node"); |
| node.set_imageUrl("<%= NodeImageURL %>"); |
| if (parentNode == null) { |
| tree.get_nodes().add(node); |
| } |
| else { |
| parentNode.get_nodes().add(node); |
| parentNode.expand(); |
| } |
| tree.commitChanges(); |
| node.BeginEdit(); |
| } |
Dim
sortExpr As New GridSortExpression
sortExpr.FieldName =
PresentationConstants.DATE_LBL
sortExpr.SortOrder =
GridSortOrder.Descending
radgrdPatChronology.MasterTableView.DetailTables(0).SortExpressions.AddSortExpression(sortExpr)
In Design for Date Time column i have set the DatetimeFormat property.
DataFormatString="{0:MM/dd/yyyy}"
Where am I going wrong?
Please help me in sorting the Date Time column in hierarchy grid.
I am binding a dynamic list to a resourcetype and I have set resource grouping based on this resourcetype through code in the
codebehind.
Day view loads properly. But when the view is changed from dayview to week view or month view , the above error occurs
Error does not occur if the number of list items bound to the resourcetype is less may be below 10 - 15 resources.
And the list contains only 55 resources.
Please help me to solve this issue.
Thanks
Babu
<
telerik:RadScheduler GroupBy="DoctorName" AllowInsert="false" HoursPanelTimeFormat="hh:mm tt" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
OnAppointmentCreated="RadScheduler1_AppointmentCreated" runat="server" ID="RadScheduler1"
Skin="Office2007" Height="545px" CustomAttributeNames="StatusId" Width="690px"
ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00" DayEndTime="21:00:00"
FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"
ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
DataSubjectField="Subject" DataStartField="FromTime" DataEndField="ToTime" ShowAllDayRow="false"
AllowEdit="false" DataKeyField="AppointmentId" DataDescriptionField="Description" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"
AllowDelete="false" OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"
OnNavigationCommand="RadScheduler1_NavigationCommand" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">
<AppointmentContextMenuSettings EnableDefault="false" />
<TimelineView UserSelectable="false" />
<AppointmentTemplate>
<%
# Eval("Subject")%>
<br />
<asp:Label runat="server" ID="Teacher" />
<br />
<asp:Label runat="server" ID="Students" />
</AppointmentTemplate>
<AppointmentContextMenus>
<telerik:RadSchedulerContextMenu runat="server" DataTextField="Status" DataValueField="StatusId"
ID="SchedulerAppointmentContextMenu" AppendDataBoundItems="true">
<Items>
<telerik:RadMenuItem Text="Copy" Value="Copy" />
<telerik:RadMenuItem IsSeparator="True" />
<telerik:RadMenuItem Text="Edit" Value="Edit" />
<telerik:RadMenuItem IsSeparator="True" />
</Items>
</telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>
<TimeSlotContextMenus>
<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
<Items>
<telerik:RadMenuItem Text="New Appointment" Value="New" />
<telerik:RadMenuItem IsSeparator="true" />
<telerik:RadMenuItem Text="Paste" Value="Paste" />
</Items>
</telerik:RadSchedulerContextMenu>
</TimeSlotContextMenus>
<TimeSlotContextMenuSettings EnableDefault="False" />
</telerik:RadScheduler>