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

[Solved] Add data to the schedular from the Outside of it

4 Answers 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Samir Patel
Top achievements
Rank 1
Samir Patel asked on 28 Jul 2009, 08:53 AM
Hello,

I have data out side of the scheduler , and i want to add in to the scheduler , how can i add?
For e.g

I have checked the check box for Item #1 and Item #2 in to the list box provided out side of the Scheduler , and then user select the particular date , and then on Pressing "Add Item" button (Available out side the scheduler), both the item #1 and Item # 2 should be assigned to that particular date, How should i do?

Please help me ????


Regards
Samir

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jul 2009, 01:33 PM
Hi Samir,

You should use the InsertAppointment method:

RadScheduler1.InsertAppointment(appointmentToinsert)


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Samir Patel
Top achievements
Rank 1
answered on 28 Jul 2009, 02:22 PM
Thanks a lot peter,

I am selecting date within the scheduler, and then try to assign items which residing outside scheduler, this function support on this activity?

Regards
Samir
0
Peter
Telerik team
answered on 28 Jul 2009, 03:02 PM
Hello Samir,

There shouldn't be a problem with this approach. You can use a hidden field to transfer data from the client to the server, and in code behind you can convert the string value you pass with the hidden field to a DateTime object by parsing it. For example:
 
DateTime.Parse("2009/07/27 09:00").



Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Samir Patel
Top achievements
Rank 1
answered on 01 Aug 2009, 06:09 AM
Peter,

This solution is not works for me ...

Here once again I will try to explain what i want to do ....

I have a two panel on the page , Left and Right , on the right panel i have implemented the Scheduler  , and on the Left I have all the Menu items and the "Add Items" button , and i have to do.... Select the menu items via check box ,and then select the date from the scheduler , and then Hit "Add items" button, on hitting this button, all the selected menu items should be assigned to this particular selected date... ?

The code you sent is not working for me.... Can you please let me know How do i add this....????

Regards
Samir
Tags
Scheduler
Asked by
Samir Patel
Top achievements
Rank 1
Answers by
Peter
Telerik team
Samir Patel
Top achievements
Rank 1
Share this question
or