jQWidgets Forums
jQuery UI Widgets › Forums › Editors › DateTimeInput › First day of week could not be set by culture
Tagged: calendar, jquery date picker
This topic contains 5 replies, has 2 voices, and was last updated by Peter Stoev 10 years, 6 months ago.
-
Author
-
In the DateTimeInput Localization Demo on http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdatetimeinput/index.htm?#demos/jqxdatetimeinput/localization.htm the firstDayOfWeek setting is not affected by culture’s firstDay setting (I have also changed it to firstDayOfWeek with no effect). One can only set firstDayOfWeek directly ({firstDayOfWeek: 1})
By the way, it is the same thing with jqxcalendar localization demo, too, on http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcalendar/index.htm?%28office%29#demos/jqxcalendar/localization.htm
Please provide the solution for this.
Regards,
mbojanksHi mbojanks,
There is property for that and there is example, too. Property is called “firstDayOfWeek. Example is: http://jsfiddle.net/jqwidgets/27DsA/. That is how it should work by design. The property defines the first day of week.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you, Peter. I said the same in my post: firstDayOfWeek can be set DIRECTLY, just like you refer to in the example (“One can only set firstDayOfWeek directly ({firstDayOfWeek: 1})” – that was exactly what I wrote). But the trouble is that the first day of week can not be set by selecting a culture, while other settings can be set, like dd/mm/yyyy pattern. There is a setting in a culture like this: calendars.standard.firstDay (set to 1 for many languages), but it is not effective, that can be seen in the localization demo I referred to in my previous post, being http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdatetimeinput/index.htm?#demos/jqxdatetimeinput/localization.htm
I hope I am saying this more precisely now.
Thank you anyway,
mbojanksHi mbojanks,
There is a property in the widget which purpose is to define the first Day of the Week. If you need to set it, set it. If you don’t need, then don’t. It won’t automatically set the first day of the week, because that’s the property’s task.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOk, thank you anyway. You were telling me twice what I already knew and as if you had not read my question. I think I was clear I wanted to set ALL locale-dependent calendar/datetimeinput settings in a culture and wanted to inform you there is a bug in submitting the culture setting, namely the calendars.standard.firstDay, to a calendar/datetimeinput property, namely the firstDayOfWeek . All other calendar settings are successfully submitted from culture to widget properties. But never mind, forget it.
Regards,
Bojan Milosavljevic (perhaps I should introduce myself with true name)Hi mbojanks.
That’s what I was trying to explain you – this is not a bug, because we have property which defines the firstDayOfWeek and that property is only taken into account.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.