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

DNN Module and missing template content

1 Answer 51 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
possible
Top achievements
Rank 1
possible asked on 08 Jan 2008, 10:38 AM
Hi..

I have RadScheduler inside DNN module, nearly everything works ok but I have one big problem with 2 modules on the same page. When I edit appointment in one of them, content of custom appointment templates in second is lost (appointment view on radscheduler is blank, only green box is visible). Can I fix this in easy way?

Regards

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Jan 2008, 08:39 AM
Hi Tomasz,

Could you please be more specific as to what the problem is and how to reproduce it? You have a support ticket about the appointment's subject missing which we have answered with a suggestion. Did you have a chance to try it? Could it be that the two problems are related to each other? Perhaps, using the workaround we suggested in the support ticket can help in this case. The idea is to find the Subject textbox and assing its Text value to the appointment's Subject:

else if ((e.CommandName == "Insert" || e.CommandName == "Update") && ((string)e.CommandArgument == "-"))  
            {  
                Appointment aptToUpdate = radSch.Appointments.FindByID(e.Container.Appointment.ID);  
                if (aptToUpdate == null)  
                {  
                    aptToUpdate = e.Container.Appointment;  
                }  
                  
                Basic ucB = (Basic)e.Container.FindControl("ucB");  
                  
                TextBox Name = (TextBox)ucB.FindControl("txtName");  
                e.Container.Appointment.Subject = Name.Text;  
                  
                Recurrency ucR = (Recurrency)e.Container.FindControl("ucR");  
                ViewParticipants ucP = (ViewParticipants)e.Container.FindControl("ucP");  
 
                ucB.CollectData(aptToUpdate, SchedulerFormMode.Insert);  
                ucR.CollectData(aptToUpdate, SchedulerFormMode.Insert);  
                ParticipantsToSave = ucP.CollectParticipans();  
            } 



Cheers,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
possible
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or