Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hi, i am andrew

i new programmer donet and telerik. i want make scheduler in web [asp.net] so i try use telerik scheduler.
i have database access2003 with table name appointment
id        auto number
start   date time
end    date time
sbj     memo
 and i drag rad scheduler and i connect  with my data source access mdb. i try with manual telerik but when i save my data it error

Server Error in '/WebSite1' Application.

You tried to assign the Null value to a variable that is not a Variant data type.

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: System.Data.OleDb.OleDbException: You tried to assign the Null value to a variable that is not a Variant data type.

Source Error:

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.

Stack Trace:

[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

it say null value how  to get value and how to use with database mdb ?
please help me how to use scheduler, may i have get example with code  because i new in dotnet developer.

thank you

Andrew


Peter
Telerik team
 answered on 23 Mar 2010
3 answers
127 views
Is there is was in the timeline view to have appointments that are created in the AM displayed on top of appontments that are created in the PM?  Please see the attached screen shot.

Peter
Telerik team
 answered on 23 Mar 2010
1 answer
119 views
Hi All,

I am using the Scheduler to plan appointments.
Some Appointments are set by administrator as "no man's land" (for example every Wednesday evening is "off") , so that is you cannot insert any appointment on this given 'slot'.
A problem arises with recurring "no man's land" events.

The potential overlap is detected correctly with the first occurence of the recurring event, but I can't manage to detect the following events.

In other words, on the first wednesday the "collision" is found, not on the subsequent ones.

Any ideas how to do that ?

I tried to look at this example :

Setting special days or time slots in RadScheduler

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspx

But how I am afraid, I can't use it  : my no man's land areas are not "special days", but rather a "part" of a day.

Below is the method i tried to use (and which is faulty) :
    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 

Thank you.
Peter
Telerik team
 answered on 23 Mar 2010
1 answer
440 views
Hi All,

I am using the Scheduler to plan appointments.
Some Appointments are set by administrator as "no man's land" (for example every Wednesday evening is "off") , so that is you cannot insert any appointment on this given 'slot'.
A problem arises with recurring "no man's land" events.

The potential overlap is detected correctly with the first occurence of the recurring event, but I can't manage to detect the following events.

In other words, on the first wednesday the "collision" is found, not on the subsequent ones.

Any ideas how to do that ?

Thank you.

Below is the method i tried to use (and which is faulty) :
    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 

Peter
Telerik team
 answered on 23 Mar 2010
1 answer
96 views

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"> 

Shinu
Top achievements
Rank 2
 answered on 23 Mar 2010
3 answers
186 views
I've been attempting to dynamically create an RDZ, bascially the same way I created my dynamic RadDocks with no luck.  I can dynamically create RadDocks and add them to an existing RDZ that's already on the page, but when I try to add RadDocks to a dynamically created RDZ nothing happens.  Well I do get one error as such from my ScriptManager:

base {System.SystemException} = {"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."}

Any ideas what I'm missing here?  I also tried to create the RDZ in the page_init with the same result fwiw.

private RadDock CreateRadDock()
 {
RadDock dock = new RadDock();
            dock.ID = string.Format("RadDock{0}",  Session["Tid"].ToString());
            dock.Title = string.Format("Dock {0}",  Session["Tname"].ToString());
   //other attributes here



RadDockZone newRadDockZone = new RadDockZone();



newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
                            newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
                            newRadDockZone.UniqueName = string.Format("RadZone{0}", +(4));
                            newRadDockZone.MinHeight = Unit.Pixel(200);
                            newRadDockZone.MinWidth = Unit.Pixel(400);
                            newRadDockZone.Skin = "Default2006";

newRadDockZone.Controls.Add(dock);
}
Pero
Telerik team
 answered on 23 Mar 2010
1 answer
107 views
Hello,
As stated, I have been having several problems with running the grid in a RTL mode.
The first, more urgent problem, is that the master table always ends up on the left side of the grid, even when the page setting is RTL as well as the master.
To be more specific, I have a grid with scrolling enabled. the master view is smaller then the grid size, to avoid the horizontal scroll, but when there are too few records to show the scroll, my table shifts left.

The second problem is when using drag and drop. How can I make the animation of the dragged rows to appear on the other side of the cursor? Seeing as the page is RTL, most the row is hidden, and it is causing quite a few problems with scrolling on the page. Is there a way to cancel the animation, but keep the indicator (the line that shows where the rows will be dropped)?

Any help would be more then welcomed.
Tsvetoslav
Telerik team
 answered on 23 Mar 2010
5 answers
151 views
Hey!

The install and deployement went fine. also i did a iisreset and net start/stop sptimerv3. After 1 hour, two reinstalls, i still cant see the Rad Control`s in the feature list in the front end. Tried both with the System account and my admin account.

Any ideas?


NOTE! We are using a differen language in MOSS 2007 than english, is this enough to make it not appear?
Stanimir
Telerik team
 answered on 23 Mar 2010
5 answers
136 views

Arrgh...

This lastest upate seems to want to break all sorts of existing code, have spent many hours fixing stuff that no longer works..
Reworking screens that break over bondaries and look like crap..

The lastest is causing vs 2008 to crash on startup is a real pain, forces vs restart,  breaks VSS etc..

{"Telerik.Web.UI.VSX.AssemblyDiscovery.AssemblyLister needs to be initialized only once."}

"   at Telerik.VSX.AssemblyDiscovery.AssemblyLister.Init()\r\n   at Telerik.VSX.Helpers.UpdateChecker.VersionAvailabilityGetter_Complete(Object sender, EventArgs e)\r\n   at Telerik.VSX.LatestVersionProcessing.BaseMonitoredProcess`1.DoAsyncJobAndRaiseCompleteEvent()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"

This is a real pain...
Please do NOT make breaking changes and do some basic testing..
Saying we noted it in some file, does not fix my code..

Argh...

Ray..
Dimo
Telerik team
 answered on 23 Mar 2010
2 answers
117 views
Hello team,

i've faced this issue before and i'm facing the same issue again. I've a treeview in which one of its nodes NodeA is having 1000 child nodes under it.

I've set the CheckChildNodes property to true for the treeview. So when i check or uncheck the node NodeA, i'm getting the specified script warning message (but once in 50 times i'm not getting the message and the check/uncheck works fine).

Locally i've tested with 1500 nodes and it is running okay. But i've lot of other controls in the page in the original application.

I've tried the solutions given in this link - http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-script-causes-ie-run-slowly.html and none of them worked.

Can you provide any insights on this?

Thank you.

Regards
NLV
NLV
Top achievements
Rank 1
 answered on 23 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?