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
210
SetDefaults on Date Editor
posted

Is there a way to set options for all dateeditors on the site? I'd rather not set the same options on each dateeditor individually. I'm looking from something similar to the jquery datepicker settings: $.datepicker.setDefaults() 

Specifically, I want to set selectionOnFocus to "start" for all dateeditors.

Parents
No Data
Reply
  • 2895
    Suggested Answer
    posted

    Hello Julie,

    Thank you for using our community.

    What you can do in order to achieve the described functionality is creating an object that contains all of the desired properties and then use it for all of the editors.

    var options = {
            width: 300,
            value: new Date(),
            selectionOnFocus: "atStart"
        };

    $("#dateEditor").igDateEditor(options);
    $("#dateEditor1").igDateEditor(options);

    Please try this approach and if you have further questions, don’t hesitate to contact us.

    Best Regards,
    Marina Stoyanova,
    Software Developer,
    Infragistics, Inc.

Children
No Data