6 Answers, 1 is accepted
0
Hi kottu,
You can take a look at the DataBinding demo in the RadScheduler's section in the QSF. The demo demonstrates a RadScheduler which is bound to a data source, but it also uses a custom dialog instead of the standard EditAppointmentDialog.
I hope this helps.
All the best,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can take a look at the DataBinding demo in the RadScheduler's section in the QSF. The demo demonstrates a RadScheduler which is bound to a data source, but it also uses a custom dialog instead of the standard EditAppointmentDialog.
I hope this helps.
All the best,
Boyko Markov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
shinu rag
Top achievements
Rank 1
answered on 13 Feb 2010, 12:41 PM
how can get the selected cell with its details date and time...
thank you...
thank you...
0
Hello shinu rag,
Yes you can take the selected cell. Subscribe to MouseDown event of RadScheduler and you can take the RadElement using GetElementAtPoint. If the selected element is a SchedulerCellElement, you can take the date from it:
Feel free to ask more questions.
Kind regards,
Dobry Zranchev
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.
Yes you can take the selected cell. Subscribe to MouseDown event of RadScheduler and you can take the RadElement using GetElementAtPoint. If the selected element is a SchedulerCellElement, you can take the date from it:
void
radScheduler1_MouseDown(
object
sender, MouseEventArgs e)
{
SchedulerCellElement cell =
this
.radScheduler1.SchedulerElement.ElementTree.GetElementAtPoint(e.Location)
as
SchedulerCellElement;
if
(cell ==
null
|| cell
as
SchedulerHeaderCellElement !=
null
)
return
;
savedDate = cell.Date;
}
Feel free to ask more questions.
Kind regards,
Dobry Zranchev
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.
0
shinu rag
Top achievements
Rank 1
answered on 15 Feb 2010, 09:55 AM
ok thanx...
can i use these codes to get the values from the selected cell . its working but not sure that its a correct way ...
private void radScheduler1_CellClick(object sender, SchedulerCellEventArgs e)
{
SchedulerCellElement ele = e.Cell;
MessageBox.Show(ele.Date.ToShortDateString());
MessageBox.Show(ele.Date.ToShortTimeString());
}
can i use these codes to get the values from the selected cell . its working but not sure that its a correct way ...
private void radScheduler1_CellClick(object sender, SchedulerCellEventArgs e)
{
SchedulerCellElement ele = e.Cell;
MessageBox.Show(ele.Date.ToShortDateString());
MessageBox.Show(ele.Date.ToShortTimeString());
}
0
shinu rag
Top achievements
Rank 1
answered on 15 Feb 2010, 10:40 AM
how can set the time intervel in
Radscheduler
thank you0
Hello shinu rag,
The event CellClick is fired only on a left click. This event is not enough to get the cell element though.
The time interval depends on the view -- in week, workwweek, and day views you can use RangeFactor property.
And for timeline, you can use:
I hope that this helps.
Kind regards,
Dobry Zranchev
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.
The event CellClick is fired only on a left click. This event is not enough to get the cell element though.
The time interval depends on the view -- in week, workwweek, and day views you can use RangeFactor property.
And for timeline, you can use:
this
.radScheduler1.GetTimelineView().GetMinutesTimescales()[0].Visible = true;
I hope that this helps.
Kind regards,
Dobry Zranchev
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.