Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Can't trigger ValueChanged event in webdate chooser

Last post 09-04-2008 13:19 by [Infragistics] Vince McDonald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-04-2008 13:05

    • Jorgen99
    • Not Ranked
    • Joined on 03-14-2008
    • Points 85

    Can't trigger ValueChanged event in webdate chooser

    Hello dear folks!

     I am working on a ASP.NET 2.0 application and am using version 7.1 of Infragistics. I have made a usercontrol where I userthe webdatechooser component. The ascx file part of interst looks like this:

       <infragistic:WebDateChooser Width="90px" ID="wdcReportDate" runat="server" CssClass="DateChooserMain"
                    NullDateLabel="" NullValueRepresentation="DateTime_MinValue">
                    <ClientSideEvents ValueChanged="wdcReportDate_ValueChanged"/>
                    <EditStyle CssClass="DateChooserEdit">
                    </EditStyle>
                    <DropButton ImageUrl2="~/App_Themes/Menu/Images/ig_cmboDown1.bmp" ImageUrl1="~/App_Themes/Menu/Images/ig_cmboDown1.bmp">
                    </DropButton>
                    <CalendarLayout FooterFormat="I dag: {0:d}">
                        <FooterStyle BackColor="#F0F0F0" />
                        <NextPrevStyle BackColor="#F0F0F0" />
                        <DayHeaderStyle BackColor="#F0F0F0" />
                        <DropDownStyle BackColor="White">
                        </DropDownStyle>
                        <TitleStyle BackColor="#F0F0F0" />
                    </CalendarLayout>
        </infragistic:WebDateChooser>

    I set the event in the bold text above as you can see. I have added this code to my code behind file:

       protected void wdcReportDate_ValueChanged(object sender, EventArgs e)
        {
            pnlVisitedPlans.Expanded = true; <-- breakpoint here
        }

    I want a panel to to expand when a change in date occurs. This is all code I have done, and I am obvuiously missing something because I get the infamous "Cant eval wdcReportDate_ValueChanged ...." in the IE statusbar. The breakpoint is never hitted.

    Do I have to do some java scripting?  I hope not ...

    Thanks for reading!

    • Post Points: 20
  • 09-04-2008 13:19 In reply to

    Re: Can't trigger ValueChanged event in webdate chooser

    Your wdcReportDate_ValueChanged method is written in C# code, which runs on the server.  What you've tried to handle, however, is a client-side event, which indeed needs to be written as a JavaScript function.

    Vince McDonald
    Manager of Developer Support, MCP
    Infragistics, Inc.

    Was this post helpful? Please let me know by using the star ratings and the "Answered" button from the forum's web interface.

    Need help? Find the various ways you can ask for help from Infragistics.
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems