|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
Q. Do I need two seperate Calendar controls: one for read-only, one for editing?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I am not sure if I understand your question correctly. Calendar has nothing to do with "editing", DatePicker has to do with editing. So I assume you are using DatePicker. With DatePicker there are several options. You can simply set the DatePicker's Enabled to false to disable the whole DatePicker, or set DisableTextBox to true to disable just the textbox.
Please let us know if this is what you were looking for.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
I think that will work fine. I thought I might need to make two seperate calendar pages.
My concerns are: 1. Allowing only authorized personel web site calendar editing privleges. 2. Restricting Internet guests to read-only.
I'll disable the textbox control to prevent unauthorized Calendare editing.
Thanks again...
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
I spoke too soon and I'm using the DatePicker.
Q. How can I easily stop the popup editing box for the Editable Calander?
if(!User.Identity.IsAuthenticated) { ......... }
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, I am a bit confused about whether you are talking about DatePicker or Calendar. If you are talking about the same sample mentioned in this thread: http://www.essentialobjects.com/forum/postst2879_Calendar-Editable-and-Database-Scheme-with-Save-Query.aspxThen as already mentioned in that thread, the popup editing box is not part of the Calendar control. It's part of the sample. So there is no server side interface on the Calendar/DatePicker for you customize whatever that is not part of it. In order for you to change popup editing box behavior, you will need to understand how the sample code works and modify the corresponding JavaScript/DHTML code by yourself. All the source code is already there. Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
Fixed it myself:
if (User.Identity.IsAuthenticated) { html += "onclick=\"EditNote('{0}');\">"; } else { html += ";\">"; }
|
|