Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
How to find the selected date of a WebCalender using javascript !!
posted

Hello guys !!!!!

How can i get  the selected value of a Webcalender using javascript ???

Please suggest !!!

 

 

 

 

 

Parents
No Data
Reply
  • 10880
    Verified Answer
    posted

    When working with Infragistics ASP.NET controls in JavaScript, you will want to use our Client Side Object Model.  To obtain the JavaScript object use the appropriate utility function (almost each control type will have its own utility function).  Once you have the object you can access that object's specific properties and methods. 

    If using a WebDateChooser, it would be something like this:

    var dateChooser = igdrp_getComboById('WebDateChooser1');
    var selectedDate = dateChooser.getValue();

    If using a WebCalendar, it would be somethign like this:

    var webCal = igcal_getCalendarById('WebCalendar1');
    var selectedDate = webCal.getSelectedDate();

    Documentation on our CSOM (go to the last Child Node of ASP.NET):

    http://help.infragistics.com/NetAdvantage/NET/2008.1/CLR2.0/

    It is recommended that you use code rendering blocks, if your controls will be nested.  This usually means inside of tabs, using master pages, or user controls.

    ie. var webCal = igcal_getCalendarById('<%= WebCalendar1.ClientID %>');

    Documentation on Code Rendering Blocks:

    http://msdn2.microsoft.com/en-us/library/k6xeyd4z(VS.71).aspx

Children