openSourceC.org
Open source C/C++/C# site dedicated to the .NET platform

Public and Private events

rated by 0 users
This post has 5 Replies | 2 Followers

Top 25 Contributor
Posts 1
Points 20
djengland Posted: Sat, Sep 8 2007 08:46 AM | Locked

The Calendar control is great!   I have one issue at this point:

I have two blogs: FairgroundsEvents is viewable by the Everyone role and ClubEvents is viewable by the ClubMember role.  My hope was the Calendar control would only display events that the user had rights to and Anonymous users would only see the FairgroundsEvents posts.  However, it appears that it's trying to enumerate both blogs and people not in the ClubMember role get a "Forum Not Found" error.  If I give the Everyone role view rights to the ClubEvents blog, then it displays as it should.

When I have the permissions restricted, anonymous users can navigate to the FairgroundsEvents blog and they do not see the ClubEvents blog, while ClubMembers can see both.

 Is there a hack that would allow this type of functionality to work?  If not, I'd love to see this in the next/commercial verison of this control.

Thanks,
David

  • | Post Points: 20
Top 10 Contributor
Posts 264
Points 17,265

Hey David,

I'm glad you like the control.  I've been extremely busy with the current contract that I'm working on and haven't had much time to work on this.  I've made some major changes to data access components as I am also using them on my current assignment.  I just finished updating the control so that it works with these changes and can now work on getting out the next release.

I tested what you are describing and that is actually a bug that I need to fix.  It should work as you described where users should only see what they have access to.  I'll see what I can do over the next couple of weeks as I usually only have a couple hours to work on this each week.  I'll let you know when I have this fixed.

Take it easy,
Bill

  • | Post Points: 35
Top 10 Contributor
Posts 8
Points 55
Qingsong replied on Tue, Oct 2 2007 01:58 PM

Hi, Bill,

 How to change the Calendar control size?

When I add more entries in the calendar, the last row of the calendar is cut off.

Thanks,

 Qingsong

  • | Post Points: 20
Top 10 Contributor
Posts 264
Points 17,265

Qingsong,

Have you tried setting the Height property?  It defaults to 495px.  From the looks of your calendar, I would say that you have overloaded the control.  You might want to be a little more selective as to what events are entered, shorten the titles of the posts, or even try creating consolidated posts that contain multiple events.

Take it easy,
Bill

  • | Post Points: 5
Top 25 Contributor
Posts 1
Points 20
tonybert replied on Wed, Nov 7 2007 09:44 PM

Any progress on fixing this bug. I have the same issue. The Bartel's calendar control handled permissions correctly. Looking to migrate to CS2007 but can't make the move without the calendar.

  • | Post Points: 20
Top 10 Contributor
Posts 264
Points 17,265

Hi tonybert,

It's not a bug, it's just the way that ComponentArt created their control.  If you have to much text in a box, it is going to cause the calendar to warp.  It also means that it is being used for purposes that it is not intended to be used.  To work around the limitation, you need to do 2 things:

  1. Make the post subject as short as possible.
  2. Combine multiple topics into a single post.

If there are features of the ComponentArt calendar control that would help and for which I have not already made available, I can add those to the control that I have written.  Other than that, there isn't anything that needs to be done.  For item #1 I may be able to add a parameter to truncate the subjects to a length provided, if you think that would be of use.

Take it easy,
Bill

  • | Post Points: 5
Page 1 of 1 (6 items) | RSS
   
Copyright © 2006-2010 WGB Enterprises
Powered by Community Server (Commercial Edition), by Telligent Systems