Welcome Guest Search | Active Topics | Sign In | Register

Calendar Read/Edit Version Possible? Options
Pointeman
Posted: Friday, March 6, 2009 9:59:17 AM
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?
eo_support
Posted: Friday, March 6, 2009 10:04:55 AM
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!
Pointeman
Posted: Friday, March 6, 2009 10:58:48 AM
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...

Pointeman
Posted: Friday, March 6, 2009 7:15:14 PM
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)
{
.........
}
eo_support
Posted: Saturday, March 7, 2009 10:36:39 AM
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.aspx

Then 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!
Pointeman
Posted: Saturday, March 7, 2009 11:32:11 AM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2009
Posts: 41
Fixed it myself:

if (User.Identity.IsAuthenticated)
{
html += "onclick=\"EditNote('{0}');\">";
}
else
{
html += ";\">";
}


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.