in

C1 Community

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

OnDisplayDateChanged and OnSelectedDatesChanged not called

Last post 10-19-2007 8:20 AM by C1_JohnF. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 07-30-2007 9:03 AM

    OnDisplayDateChanged and OnSelectedDatesChanged not called

    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?
  • 08-02-2007 5:28 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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
  • 08-03-2007 7:22 AM In reply to

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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.
  • 08-09-2007 11:04 AM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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
  • 09-26-2007 4:38 PM In reply to

    • Dan McCann
    • Not Ranked
    • Joined on 09-21-2007
    • Pittsburgh, PA
    • Posts 5

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

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

  • 10-05-2007 5:47 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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

  • 10-17-2007 8:34 AM In reply to

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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?

  • 10-18-2007 6:02 AM In reply to

    • kofwer
    • Not Ranked
    • Joined on 07-09-2007
    • Posts 1

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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

  • 10-18-2007 7:18 AM In reply to

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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 :(

  • 10-18-2007 5:21 PM In reply to

    • C1_JohnF
    • Top 25 Contributor
    • Joined on 08-02-2006
    • Pittsburgh, PA USA
    • Posts 228

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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
  • 10-19-2007 8:20 AM In reply to

    • C1_JohnF
    • Top 25 Contributor
    • Joined on 08-02-2006
    • Pittsburgh, PA USA
    • Posts 228

    Re: OnDisplayDateChanged and OnSelectedDatesChanged not called

    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)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.