An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[OleDbException (0x80004005): You tried to assign the Null value to a variable that is not a Variant data type.] Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +39 System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +77 Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Insert(RadScheduler owner, Appointment appointmentToInsert) +178 Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +75 Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointment(Appointment appointment) +37 Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +469 Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +108 Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +39 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 |
| Protected Function isOnHSArea2(ByVal apt As Appointment) As Boolean |
| Dim allAppointments As IList(Of Appointment) = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End) |
| For Each currentAppointment In allAppointments |
| If currentAppointment.ID <> apt.ID Then |
| If (Convert.ToBoolean(currentAppointment.Attributes("isHS"))) Then 'isHS : off Duty |
| Return True |
| End If |
| End If |
| Next |
| Return False |
| 'Return (appointmentsCount > (AppointmentsLimit - 1)) |
| End Function |
| Protected Function isOnHSArea2(ByVal apt As Appointment) As Boolean |
| Dim allAppointments As IList(Of Appointment) = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End) |
| For Each currentAppointment In allAppointments |
| If currentAppointment.ID <> apt.ID Then |
| If (Convert.ToBoolean(currentAppointment.Attributes("isHS"))) Then 'isHS : off Duty |
| Return True |
| End If |
| End If |
| Next |
| Return False |
| 'Return (appointmentsCount > (AppointmentsLimit - 1)) |
| End Function |
Hi,
Im using the self referencing grid. By default all the rows are in expanded state but i want to collapse all rows and expand only on click.
I want to use Plus/Minus image instead of default button. But the plus/minus image appears only for parent row amd for the rest normal button is shown.
Following is the aspx grid definition
<telerik:RadPageView ID="RadPageView2" runat="server">
<table border="0" visible= "false" width="100%">
<LNWCon:LNGrid ID="grdOrganization" EnableAJAX="True" ShowHeader="true" runat="server"
Width= "97%" GridLines="None" OnColumnCreated="grdOrganization_ColumnCreated" OnItemCreated="grdOrganization_ItemCreated"
OnNeedDataSource= "grdOrganization_NeedDataSource" OnItemDataBound = "grdOrganization_ItemDataBound" OnItemCommand="grdOrganization_ItemCommand" Skin="Black" AutoGenerateColumns="False" >
<MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" NoDetailRecordsText="No Records To Display" EnableNoRecordsTemplate="false"
DataKeyNames= "FolderId,ParentFolderId" Width="100%" HorizontalAlign="Right" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="../Images/minus.png" ExpandCollapseColumn-ExpandImageUrl="../Images/plus.png" ExpandCollapseColumn-Visible="true">
