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

Time Change Dynamicaly according to databasefield

6 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Devang
Top achievements
Rank 1
Devang asked on 28 Jun 2012, 12:13 PM
hi

in my case, i have fields in my DB start_time n End_timr
n i want to show shedule from start time to end time of that day.
example.
if one user has first appoitment start time at 10.a.m  the in schedular it shows 10.am n its last appoitment end time will br end time of schedule
according to db firlds i want dynamicaly time into schedular
n if on next day  he has appoitment start  at 2:pm then it shud shows start_time from 2.pm

Regards
Devang Tadvi

6 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 28 Jun 2012, 03:21 PM
Hello Devang,

You could use the DayStartTime and DayEndTime properties of Day view of RadScheduler. Here is an example:
<telerik:RadScheduler ID="RadScheduler1" runat="server" SelectedView="DayView">
    <DayView DayStartTime="10:00" DayEndTime="16:00" />
</telerik:RadScheduler>

I hope this will help.

Kind regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Devang
Top achievements
Rank 1
answered on 29 Jun 2012, 06:38 AM

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Databinding expressions are only supported on objects that have a DataBinding event. Telerik.Web.UI.DayViewSettings does not have a DataBinding event.

Line 496: <DayView DayStartTime='<%# Eval("Start") %>' DayEndTime="18:30" />
0
AppliedHCS
Top achievements
Rank 1
answered on 29 Jun 2012, 07:12 AM
AS you can see in the error that the properties are not Supported for the Databinding expressions ..
So if need to set those properties from the Db fields then you have set from the code-behind.

Regards

0
Devang
Top achievements
Rank 1
answered on 29 Jun 2012, 07:55 AM

 

 

 

 

 

0
Devang
Top achievements
Rank 1
answered on 29 Jun 2012, 02:12 PM
Now m facing another problem,
Before Data Bind to the Scheduler i used to set starttime n end time accodring to DB fields
n shows that changed time.
n then bind data.
but  when i 'll Navigate the Date NEXT/PREV start_time n End_time Remains Same static.

wen data is bound after that how wud i change time slot on navigation event of calender...

Thank You
Devang Tadvi
0
Ivana
Telerik team
answered on 29 Jun 2012, 03:12 PM
Hi Devang,

Try setting the day start and end time every time a post back to the server occurs. You could do so in PageLoad event.

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Devang
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Devang
Top achievements
Rank 1
AppliedHCS
Top achievements
Rank 1
Share this question
or