This is a migrated thread and some comments may be shown as answers.

RadScheduler not passing data to db

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Yann
Top achievements
Rank 1
Yann asked on 30 Sep 2010, 07:44 AM
Hi

I am using Radscheduler and an underlying data base to manage site visits.

I have set my datasource as followed:
On insert there is a line created in the table (with auto ID) but no value for the other fields.
Also, when I try to move an appointment, it goes back where is was before.
So it seems that the fields are not passing to the database for some reason
Thanks for your help
Regards

<asp:SqlDataSource ID="SchedulerDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TEST_DS%>"

 

ProviderName="System.Data.SqlClient"

 

SelectCommand="SELECT [SiteVisitID], [SiteVisitStart], [SiteVisitEnd], [SiteVisitSubject], [SiteVisitDue], [SiteVisitPriority] FROM [tbl_SiteVisit] WHERE ([SiteVisitStart] IS NOT NULL) AND ([SiteVisitEnd] IS NOT NULL)"

 

InsertCommand="INSERT INTO [tbl_SiteVisit] ([SiteVisitSubject], [SiteVisitStart], [SiteVisitEnd]) VALUES (@Subject, @Start, @End)"

 

UpdateCommand="UPDATE [tbl_SiteVisit] SET [SiteVisitStart] = @Start, [SiteVisitEnd] = @End, [SiteVisitSubject] = @Subject WHERE SiteVisitID = @ID"

 

DeleteCommand="DELETE FROM [tbl_SiteVisit] WHERE [SiteVisitID] = @ID">

 

<insertparameters>

 

<asp:Parameter Name="Subject" Type="String" />

 

<asp:Parameter Name="Start" Type="DateTime" />

 

<asp:Parameter Name="End" Type="DateTime" />

 

</insertparameters>

 

<updateparameters>

 

<asp:Parameter Name="Subject" Type="String" />

 

<asp:Parameter Name="Start" Type="DateTime" />

 

<asp:Parameter Name="End" Type="DateTime" />

 

<asp:Parameter Name="ID" Type="Int32" />

 

</updateparameters>

 

<deleteparameters>

 

<asp:Parameter Name="ID" Type="Int32" />

 

</deleteparameters>

 

</asp:SqlDataSource>


1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Oct 2010, 04:30 PM
Hi Yann,

Can you also send us your RadScheduler declaration and any related code behind you might have? The information you provide so far is not sufficient to determine the cause of the problem.


Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Yann
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or