C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

OnDisplayDateChanged and OnSelectedDatesChanged not called

rated by 0 users
This post has 10 Replies | 1 Follower

Not Ranked
Posts 5
bamboocha Posted: Mon, Jul 30 2007 9:03 AM
Hi!
I have WebCalendar (2.0.20071.34) and WebScheduler (2.0.20071.208) tied on a form. I have AutoPostBackOnNavigate and AutoPostBackOnSelect both set to 'True' as well as OnDisplayDateChanged and OnSelectedDatesChanged set to the names of codebehind methods. The problem is that these methods never called. What can be wrong here?
Top 25 Contributor
Posts 587
Please make sure your method headers look like this

VB:
Protected Sub OnSelectedDatesChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles C1WebCalendar1.SelectedDatesChanged

Protected Sub OnDisplayDateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles C1WebCalendar1.DisplayDateChanged

C#:
protected void C1WebCalendar1_DisplayDateChanged(object sender, EventArgs e)
protected void C1WebCalendar1_SelectedDatesChanged(object sender, EventArgs e)


You might have referenced the documentation, which has headers that are missing object sender and the handles.

The easiest thing to do is let Visual Studio generate the method header by double clicking in the event property.

Hope that helps :)
-Greg L
Greg Lutz ComponentOne
Not Ranked
Posts 5
Yes, of course I used the easiest thing to do and Visual Studio generated the proper methods for me. It does not work. The page tracing shows that __EVENTTARGET name is prefixed with a container name, and this prevents the correct server event to be fired. I really wonder if C1 coders ever checked of their components work inside the "asp:Content" block.
Top 25 Contributor
Posts 587
C1_GregL replied on Thu, Aug 9 2007 11:04 AM
Hi,

Thanks for discovering this bug with WebCalendar. I hadn't tried it in a content block, but you're right it doesn't work.

This issue has been sent to the developer for a fix.

Regards,
Greg L
Greg Lutz ComponentOne
Not Ranked
Posts 5

Is there a workaround until a real fix has been implemented and released (other than taking the control out of the asp:Content tag)?

Top 25 Contributor
Posts 587
You can try the client side event ClientOnSelChange.  This will fire after the user clicks any day or navigates the month.  It may fit with what you're trying to do.

<C1WebCalendar:C1WebCalendar ClientOnSelChange="showFunction()" ID="C1WebCalendar1" runat="server" AutoPostBackOnNavigate="True"AutoPostBackOnSelect="True" Font-Names="Arial, Verdana, Tahoma" ForeColor="Black"Height="180px" Style="border-left-color: #ececec; border-bottom-color: #ececec;border-top-color: #ececec; border-right-color: #ececec" Width="227px"></C1WebCalendar:C1WebCalendar>

<script type="text/javascript">
  
function showFunction()
   {
        alert(
"selected changed");
   }
</script>

Regards,
Greg L

Greg Lutz ComponentOne
Not Ranked
Posts 12
AndyBrew replied on Wed, Oct 17 2007 8:34 AM

yep same problem here I am struggling to find a single ComponentOne component that actually works :( which is very sad as at first glance they look great!

Do we know when this problem will be addressed, timescales?

Not Ranked
Posts 1
kofwer replied on Thu, Oct 18 2007 6:02 AM

man, I'm pretty new in using ASP.Net but have lost now many many hours just because of this bug!

Is it possible that over one month after the bug was discovered there is not update available?

Note: At the moment I am trying C1 components but when I let run the update utility there is no update available. I'm using v 2.0.20072.44 of C1WebCalendar

Not Ranked
Posts 12
AndyBrew replied on Thu, Oct 18 2007 7:18 AM

I have given up I am now using the ASP.NET 2 Microsoft calendar control which works a treat, and I am going to write my own schedule component.

The support from this company is terrible, I have a phone number for the sales arm in the UK and Catherine has told me that she has never had a customer have the issues that I have had with nearly every component I have tried, well I'd love to speak to them LOL!!!

Even my live updater fails it says Failed after performing the updates if I then recheck for updates it changes to installed :(

Top 25 Contributor
Posts 388
C1_JohnF replied on Thu, Oct 18 2007 5:21 PM

Hello all,

Greg pointed out this thread to me and I wanted to apologize for the difficulties that you have faced in getting these issues resolved and the long delay in fixing this issue. I have already asked our development team for an ETA so that we can get this problem solved as quickly as possible, and I will post here as soon as more information is available.

If you have experienced other problems with our support team outside the forums, please let me know and I will address them personally. My contact information is in my signature below.

If you are experiencing problems that have not been reported to our support team, please be sure to do so ASAP using our web submission form (http://www.componentone.com/mysupport) or email address (support@componentone.com). Also, if you have purchased gold support, you can call our support team at (412) 681-4738.

If you have experienced other problems getting issues resolved through the forums, I would strongly recommend that you use one of the methods listed above. Our support forums are not an official support channel (you can read our Expectations of Service on the front page of the forums - http://helpcentral.componentone.com/Forums.aspx) and response time here may be less than ideal. We are working hard to increase our presence in the forums, since we realize that many customers prefer to get support this way, but for now the forums are only a peer-to-peer channel that we visit as often as possible.

Once again, I apologize for the difficulties you have faced, and I will post an update soon.

Thanks,

John Franco

John Franco johnf@componentone.com Customer Engagement Manager www.componentone.com
Top 25 Contributor
Posts 388
C1_JohnF replied on Fri, Oct 19 2007 8:20 AM

Hi all,

I just recieved word from the developers that this issue will be fixed in build 52 of WebCalendar, which should be dropped within a few days. If you would like to receive a copy of the build before it has passed our QA team, please contact the support team and they can get you a copy. Otherwise, it will be available on our pre-release site as soon as it passes QA (unfortunately, I can't provide a good estimate of how long that might take).

Thanks for your patience.

John Franco johnf@componentone.com Customer Engagement Manager www.componentone.com
Page 1 of 1 (11 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.