15
WebDateTimeEditor unable to trigger postback
posted

Hi ., 

I am new to Infragistics.

My Scenario: User can select a date as per they preference and the page has to reload with corresponding records in grid view.

I am trying to perform postback when user select a different date.

ASPX:

<PAT:WebDateTimeEditor ID="DateChooser" DisableBinding="True" runat="server" DisplayModeFormat="MM/dd/yyyy dddd" OnValueChanged="DateChooser_ValueChanged">
</PAT:WebDateTimeEditor>

C#:

protected void DateChooser_ValueChanged(object sender, EventArgs e)
{
Search();
}

Please let me know how i perform a call to C# code when user changes the date. 

Thanks 

  • 860
    Verified Answer
    Offline posted

    Hello Pradeep,

    Thank you for contacting the Infragistics support!

    Please, set

    AutoPostBackFlags-ValueChanged="On"
     to the WebDateTimeEditor control. This way the control will cause a postback every time the value is changed.

    Best regards,
    Alexander Marinov