Hi, I'm using a user control form to edit 'activities' which is being called from a RadGrid and other places. The form is farily complex and has ajaxified features (e.g. choosing combo boxes updates other parts of the control). I'd like to try out the Scheduler and reuse this same edit form.
Does this seem like something the scheduler could handle or would I be wasting my time even trying? If it would work, is the best approach to follow the "RadWindow" example code or is there a better approach?
cheers
ewart
Does this seem like something the scheduler could handle or would I be wasting my time even trying? If it would work, is the best approach to follow the "RadWindow" example code or is there a better approach?
cheers
ewart
7 Answers, 1 is accepted
0
Hello Ewart,
With the new futures release last month, we introduced one new example -Customizing the Advanced Template, which makes it relatively easy to customize the advanced form. I would recommend you use the set of user controls to create the advanced form. The accompanying help article is not live yet, so I am sending it to you as a word document.
The user controls can be found in your local installation of of the latest Telerik.Web.UI Futures (I attached a screenshot of which file you need to download just in case) at this location:
Live Demos\Scheduler\Examples\AdvancedFormTemplate\DefaultTemplates
Should you have any questions, please feel free to contact us.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
With the new futures release last month, we introduced one new example -Customizing the Advanced Template, which makes it relatively easy to customize the advanced form. I would recommend you use the set of user controls to create the advanced form. The accompanying help article is not live yet, so I am sending it to you as a word document.
The user controls can be found in your local installation of of the latest Telerik.Web.UI Futures (I attached a screenshot of which file you need to download just in case) at this location:
Live Demos\Scheduler\Examples\AdvancedFormTemplate\DefaultTemplates
Should you have any questions, please feel free to contact us.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
ewart
Top achievements
Rank 1
answered on 04 Apr 2008, 01:40 AM
Okay, thanks that will be very helpful - I'll download the newer version and try it out.
As a test I put the Schedulers' BindToList example code in a user control, which works nicely. However, if I load that usercontrol dynamically..
(all the pages in our site are designed as user controls and are loaded dynamically into RadWindows)
..first click works fine (e.g. from day to week or month view), but second click always fails (e.g. from week to day or month). Am using the same approach to dynamically load all other 25+ user controls on the site (code in use for a year now).
Seems the problem is related to ajax. removed ajax manager from the page and postbacks work fine. As the whole site is yet to be migrated to promethesus I tried registering the old ajax Assembly="RadAjax.Net2".. but it didn't seem to work with that. Do I need to do something special if dynamically loading a UC with ajax or is this perhaps because I'm using both promethusus and the previous version?
Also, for other forum users reference - I noted compadibility problems using this control with sifr on IE6. Including the sifr link on my page produces several rendering and navigation problems in IE6 (no problem with FF2).
<script src="Statics/sIFR/sifr.js" type="text/javascript"></script>
I may have to create a new dynamic loader to not include a sifr link if using the scheduler, or perhaps alter the Scheduler CSS in some way, not sure how to solve this yet but still looking.
cheers
ewart
As a test I put the Schedulers' BindToList example code in a user control, which works nicely. However, if I load that usercontrol dynamically..
(all the pages in our site are designed as user controls and are loaded dynamically into RadWindows)
..first click works fine (e.g. from day to week or month view), but second click always fails (e.g. from week to day or month). Am using the same approach to dynamically load all other 25+ user controls on the site (code in use for a year now).
Seems the problem is related to ajax. removed ajax manager from the page and postbacks work fine. As the whole site is yet to be migrated to promethesus I tried registering the old ajax Assembly="RadAjax.Net2".. but it didn't seem to work with that. Do I need to do something special if dynamically loading a UC with ajax or is this perhaps because I'm using both promethusus and the previous version?
Also, for other forum users reference - I noted compadibility problems using this control with sifr on IE6. Including the sifr link on my page produces several rendering and navigation problems in IE6 (no problem with FF2).
<script src="Statics/sIFR/sifr.js" type="text/javascript"></script>
I may have to create a new dynamic loader to not include a sifr link if using the scheduler, or perhaps alter the Scheduler CSS in some way, not sure how to solve this yet but still looking.
cheers
ewart
0
Hi Ewart,
It is good that you have managed to isolate the problem to RadAjax. Please, review this help topic: RadAjax and WebUserControls and see if it helps you solve the problem completely. Let us know how it goes.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
It is good that you have managed to isolate the problem to RadAjax. Please, review this help topic: RadAjax and WebUserControls and see if it helps you solve the problem completely. Let us know how it goes.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
ewart
Top achievements
Rank 1
answered on 07 Apr 2008, 02:58 AM
Hi Peter, Have reviewed a number of forum reports and the docs etc but no joy getting Scheduler running in a usercontrol that has been loaded dynamically.
using RadAjaxManager I get the click issue described
using the pre-promethesus RadAjaxManager works except that I get screen corruption
using RadAjaxManagerProxy solves the click issue - I assume RadScheduler has put a AjaxManager onto the form as I have not... However.. I'm using the RadWindow example which requires me to get an instance to RadManager to refresh the scheduler (via ajax callback) when the RadWindow closes.
Tried to find this instance both in the code behind or client code using various techniques including GetCurrent() (from both the code behind or client code) and GetCurrent() only ever returns null/nothing. I'd use the non-promethesus version of ajax which works but it gives me screen corruption.
using RadAjaxManager I get the click issue described
using the pre-promethesus RadAjaxManager works except that I get screen corruption
using RadAjaxManagerProxy solves the click issue - I assume RadScheduler has put a AjaxManager onto the form as I have not... However.. I'm using the RadWindow example which requires me to get an instance to RadManager to refresh the scheduler (via ajax callback) when the RadWindow closes.
Tried to find this instance both in the code behind or client code using various techniques including GetCurrent() (from both the code behind or client code) and GetCurrent() only ever returns null/nothing. I'd use the non-promethesus version of ajax which works but it gives me screen corruption.
0
Hi Ewart,
Have you made sure that you are not falling into this trap:
"If one still needs the manager instance at the code of a WebUserControl for example, she can get the manager by RadAjaxManager.GetCurrent() method call. The method will return null if there is no manager on the page, similar to ASP:ScriptManager implementation." ?
If that is the case, just add a script manager on the page in which you want to find the RadAjaxManager instance.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Have you made sure that you are not falling into this trap:
"If one still needs the manager instance at the code of a WebUserControl for example, she can get the manager by RadAjaxManager.GetCurrent() method call. The method will return null if there is no manager on the page, similar to ASP:ScriptManager implementation." ?
If that is the case, just add a script manager on the page in which you want to find the RadAjaxManager instance.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
ewart
Top achievements
Rank 1
answered on 10 Apr 2008, 10:17 PM
Thanks for the suggestion Peter although I do already have a ScriptManager on the page.
<asp:ScriptManager ID="ScriptManager" runat="server" />
I had tried experimenting with ScriptManagerProxy as well but no joy. I've had to concede defeat on this, it may be some compadibility problem with the old/new version of the radtools, I'm not sure.
For now I've copied the user control code into an ASPX page instead and changed that part of the site accordingly. I'll revist the issue when the production version of promethesus comes out assuming I decide to migrate the whole project to it (which is probably quite a big job)
Regards
Ewart
<asp:ScriptManager ID="ScriptManager" runat="server" />
I had tried experimenting with ScriptManagerProxy as well but no joy. I've had to concede defeat on this, it may be some compadibility problem with the old/new version of the radtools, I'm not sure.
For now I've copied the user control code into an ASPX page instead and changed that part of the site accordingly. I'll revist the issue when the production version of promethesus comes out assuming I decide to migrate the whole project to it (which is probably quite a big job)
Regards
Ewart
0
Hello Ewart,
I wish I were able to help you resolve this problem. I am not sure what could be causing it. It might be indeed a good idea to wait till the release so thing settle down a bit and then try with the latest version of Telerik.Web.UI.
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I wish I were able to help you resolve this problem. I am not sure what could be causing it. It might be indeed a good idea to wait till the release so thing settle down a bit and then try with the latest version of Telerik.Web.UI.
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center