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

fixed word in subject field

9 Answers 157 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Erdem
Top achievements
Rank 1
Erdem asked on 01 May 2012, 02:13 AM
I want all appointments made ​​"reserved" appear to want. Any date, for example I write "go dentist" but  field appear will be "reserved" .
How can we do this ?
Thank you telerik team....

9 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 May 2012, 09:31 AM
Hello Erdem,

 
You can add the word "reserved" if it is not part of the subject already in the AppointmentInsert and AppointmentUpdate events.

Hope this will help you.

Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Erdem
Top achievements
Rank 1
answered on 01 May 2012, 10:54 PM
How can add events ? what is code ?  Uploaded picture will look like.I could not do it. 


0
Erdem
Top achievements
Rank 1
answered on 02 May 2012, 09:00 PM
Anyone help me ?
0
Erdem
Top achievements
Rank 1
answered on 02 May 2012, 09:55 PM
As shown in the figure
After you type the word then appearing "RESERVED" 
0
Plamen
Telerik team
answered on 03 May 2012, 07:07 AM
Hello Erdem,

 
I am attaching a sample web page where is shown how to achieve similar functionality by changing the subject of the appointment at AppointmentInsert and AppointmentUpdate events.

Hope this will be helpful.

Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Erdem
Top achievements
Rank 1
answered on 03 May 2012, 12:49 PM
Thank you Plamen,
I added this and seems Reserved but it is also reserved in the database as a record. I want to seem Reserved but datebase record real word . How can do this ?? 

protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
    {
        e.Appointment.Subject = "Reserved";
       
    }
0
Plamen
Telerik team
answered on 03 May 2012, 03:46 PM
Hello Erdem,

 
If you don't want to change the DataBase instead of using the server insert and update events you can just change the text in the appointments' divs with jQuery as in the code below:

<script type="text/javascript">
    function pageLoad() {
    $telerik.$(".rsAptContent").text("Reserved");
}
    </script>

Hope this will help you.


Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Erdem
Top achievements
Rank 1
answered on 03 May 2012, 04:33 PM
Hello Plamen,

<script type="text/javascript">
    function pageLoad() {
    $telerik.$(".rsAptContent").text("Reserved");
}
    </script>

I could not find where to 'change. Would you please send altered state?

0
Erdem
Top achievements
Rank 1
answered on 03 May 2012, 04:48 PM
Hello Plamen,
Thank you very much Plamen.I did it.
Thank you Telerik Team 
Tags
Scheduler
Asked by
Erdem
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Erdem
Top achievements
Rank 1
Share this question
or