on change event

4 posts, 1 answers
  1. Balan
    Balan avatar
    10 posts
    Member since:
    May 2008

    Posted 12 May 2008 Link to this post

    Hello !
    I want to know if RadDatePicker has something like RaiseEventOnChange="true" OnChange="DatePicker_DateChanged"
    Have a nice day !
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 13 May 2008 Link to this post

    Hello Balan,

    I'm not sure what's your exact scenario so I'm pasting a datepicker markup with 3 possible events you could use:

       <telerik:RadDatePicker ID="RadDatePicker1" runat="server" OnSelectedDateChanged="RadDatePicker1_SelectedDateChanged">
            <ClientEvents OnDateSelected="DateSelected" />
                <DateInput ClientEvents-OnValueChanged="ValueChanged"></DateInput>
            </telerik:RadDatePicker>

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Balan
    Balan avatar
    10 posts
    Member since:
    May 2008

    Posted 13 May 2008 Link to this post

    <telerik:RadDatePicker ID="radDpDateStart" runat="server" Skin="Web20" OnSelectedDateChanged="radDpDateStart_SelectedDateChanged">
                    <DateInput InvalidStyleDuration="100" LabelCssClass="radLabelCss_Web20" Skin="Web20" runat="server"></DateInput>
                    <Calendar Skin="Web20">
                    </Calendar>
    </telerik:RadDatePicker>

    And code behind :

     protected void radDpDateStart_SelectedDateChanged(object sender, EventArgs e)
        {.....}

    When I run my application,  the method radDpDateStart_SelectedDateChanged is completely ignored. Can you help me ?

  4. Answer
    Steve
    Admin
    Steve avatar
    10940 posts

    Posted 13 May 2008 Link to this post

    Hello Balan,

    You need to set the AutoPostBack property to true in order to respect the server-side event handlers.

    Greetings,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top