I've looked thru a couple pages of posts, but havent seen anything that addresses this scenario.
I would like to be able to have a "Create New Appointment" button in another form and have it open up the form for creating a new appointment, defaulted to the current date. Also, I need it to defult one of the custom resource items based on a queryparameter.
Is it possible?
Thanks.
I would like to be able to have a "Create New Appointment" button in another form and have it open up the form for creating a new appointment, defaulted to the current date. Also, I need it to defult one of the custom resource items based on a queryparameter.
Is it possible?
Thanks.
6 Answers, 1 is accepted
0
localman
Top achievements
Rank 1
answered on 01 Nov 2007, 07:59 PM
am i missing something simple?
0
Hi ,
Thank you for your interest in RadScheduler.
Can you please elaborate a bit on this case? What exactly do you want to achieve? Are the button and RadScheduler on the same page? There is an online example- External Edit in RadWindow , which you may find useful.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for your interest in RadScheduler.
Can you please elaborate a bit on this case? What exactly do you want to achieve? Are the button and RadScheduler on the same page? There is an online example- External Edit in RadWindow , which you may find useful.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
localman
Top achievements
Rank 1
answered on 04 Nov 2007, 07:40 AM
Thanks for your response Peter.
The scheduler is a part of a larger product, which is tracking sales. So, say for instance for a particular sale, someone can schedule an appointment. In the detail view of that sale there's a list in a standard old gridview that shows the appointments already associated with that sale. (I've added this as a custom field already... just a drop down list).
I have a button under that gridview that I want to click and have it open up a new page where I can fill in the details of a new appointment with the sale item already pre-selected in the form.
So, the linkbutton would go to something like this: www.myapp.com/newappt.aspx?saleid=3
I dont want it as a modal window or anything. Just open in a new window. Then when It saves, I just add some code in the oninserted event and redirect to the previous page.
Not a very complicated idea... just not sure how to to the edit/new appointment form for the scheduler.
As far as the preselected dates, would be good to just have Now().
thanks.
The scheduler is a part of a larger product, which is tracking sales. So, say for instance for a particular sale, someone can schedule an appointment. In the detail view of that sale there's a list in a standard old gridview that shows the appointments already associated with that sale. (I've added this as a custom field already... just a drop down list).
I have a button under that gridview that I want to click and have it open up a new page where I can fill in the details of a new appointment with the sale item already pre-selected in the form.
So, the linkbutton would go to something like this: www.myapp.com/newappt.aspx?saleid=3
I dont want it as a modal window or anything. Just open in a new window. Then when It saves, I just add some code in the oninserted event and redirect to the previous page.
Not a very complicated idea... just not sure how to to the edit/new appointment form for the scheduler.
As far as the preselected dates, would be good to just have Now().
thanks.
0
Hi Shane,
I did a simple demo project based on the requirements you specified. Please, review the attached project and let us know if this is what you need.
You can set RadScheduler's Visible property to false if you don't want to display the control in the insert form. I have used the External Edit in RadWindow example as a starting point, but I have removed the RadWindow functionality and used the PostBackUrl property of an asp button to establish a communication between the original page and the insert form.
I hope you find this helpful.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I did a simple demo project based on the requirements you specified. Please, review the attached project and let us know if this is what you need.
You can set RadScheduler's Visible property to false if you don't want to display the control in the insert form. I have used the External Edit in RadWindow example as a starting point, but I have removed the RadWindow functionality and used the PostBackUrl property of an asp button to establish a communication between the original page and the insert form.
I hope you find this helpful.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
localman
Top achievements
Rank 1
answered on 12 Nov 2007, 10:53 PM
Thanks for the demo, but the issue of including the reoccurance functionality in there remains. How would I include that?
thanks.
thanks.
0
localman
Top achievements
Rank 1
answered on 12 Nov 2007, 11:19 PM
Apologies for the extra posts.
Was very simple in the end. Part of my issue was an error in my objectdatasource that had thrown me off the first time I tried this. Thanks again.
I've got the scheduler inside a FormView control, so in the end I added the following bit of code to my FormView DataBound method.
Was very simple in the end. Part of my issue was an error in my objectdatasource that had thrown me off the first time I tried this. Thanks again.
I've got the scheduler inside a FormView control, so in the end I added the following bit of code to my FormView DataBound method.
RadScheduler radScheduler = FormView1.FindControl("RadScheduler1") as RadScheduler;
radScheduler.SwitchToAdvancedInsertMode(DateTime.Now);