jQWidgets Forums
Forum Replies Created
-
Author
-
Hello Hristo, hello qwigets-team
again a question ore two related to culture-specific formats.
To the (Date) “one-character-fomats”, still missing a “short-date short-time” pattern
I know I can define the patterns individually, but the “one-character-fomats” do have the advantage to work automatically on culture-selection without further action.
I tried to $extend Globalize.cultures[‘xxx’].calendars.standard.patterns, for example by standard.patterns.e, this works using the property-name, but not using the one character “e” (“$e”) notation. Although I could use property-name, the one character is (very) advantageous
If I look in globalize.js it seems to be considered somehow:expandFormat = function( cal, format ) { ... // %X escape format -- intended as a custom format string that is only one character, not a built-in format.
but I can’t get it work
May 7, 2019 at 11:35 am in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105072Hello Todor,
works indeed thanks a lot!May 6, 2019 at 12:39 am in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105046please postpone my last message
it was raised by the mis assumption the culture-selection was coupled to the date format-selection which basically seems not to be the case at least not without further steps.
I’m driven by the intent to setup locale / culture specific issues globally for the SPA by a single setting. I hope, I’m not to far away from a solution, but have to work it out.PS: if formatstring is set properly, the timeselector-control of the jqxDateTimeInput also works properly.
But away from that, the component-property access in the callbacks is still my primary issue.
May 5, 2019 at 2:57 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105045I did also look at your demo
https://www.jqwidgets.com/angular/angular-datetimeinput/#https://www.jqwidgets.com/angular/angular-datetimeinput/angular-datetimeinput-localization.htm
and I found it, not to work correctly
if I choose another date like May, 23
select english
date is shown as 23/05/2019
but should be 05/23/2019
same thing happens at https://parixklg.github.stackblitz.io
even more herein, if I set [showTimeButton]=”true” timeinput does not popup properlyMay 3, 2019 at 7:08 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105035Hello Todor,
stackblitz is:
https://stackblitz.com/edit/github-l6zbx3
https://github-l6zbx3.stackblitz.io/as I said no data is arriving but errormessage you’ll see in log (Refresh works well, but dataAdapter.formatData: (data) does not.
Assume it is a “this” problem (Typescript or fat arrow function)
Edgar
May 2, 2019 at 9:06 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105011this is the right one:
https://github-l6zbx3.stackblitz.io
I hope
(Data d not arrive due to COS SOP. ut this is not the problemMay 2, 2019 at 8:48 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105010sorry, https://llqixxan.github.stackblitz.io/ is not correct
May 2, 2019 at 8:39 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #105009Hello Todor,
there are two of them dateFrom and dateTo
I put an example on https://llqixxan.github.stackblitz.io/formatData (data) =>
formatData error: TypeError: “_this.dateFrom.getDate(…) is null”April 30, 2019 at 7:10 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #104977sorry not correct, I got
dataAdapter: any = new jqx.dataAdapter(this.source,
{
formatData: (data) => {
console.log(this); // => the Angular component
console.log(this.dateFrom); // => jqxDateTimeInputComponent�
console.log(this.dateFrom.getDate); // => ƒ () { return this.host.jqxDateTimeInput(‘getDate’); }
console.log(this.dateFrom.getDate()); // => nullvery strange, isn’t it?
April 30, 2019 at 6:24 pm in reply to: jqxDateTimeInput value as date jqxDateTimeInput value as date #104976Perfect,
thanks a lot Todor, exactly what I was searchig for.
I was using the jqxDateTimeInputComponent in a wrong manner.
The Problem was / is:
I need (angular component) to access@ViewChild('dateTo') dateTo: jqxDateTimeInputComponent; dataAdapter: any = new jqx.dataAdapter(this.source, { formatData: (data) => { ...
from within an override of dataAdapter.formatData to pass the date to the http-request
but from within formatData [this] is the datadapter and I don’t know how to reachdateTo
Could not find any hint in documentationAny idea?
April 27, 2019 at 10:31 am in reply to: how to import chartModule? how to import chartModule? #104934I would suggest you to reinstall jqwidgets-scripts package.
I have tested the Angular CLI & jqwidgets-ng tutorial and it is working fine.but
Angular CLI & jqwidgets-ng
does not state to installjqwidgets-scripts
.
Both tutoralsAngular CLI with jQWidgets
and `Angular CLI & jqwidgets-ng’ starts from scratch.And if you Download the framework tere is no
jqwidgets-scripts
Maybe many beginners (as I) do not understand if
Angular CLI with jQWidgets
and `Angular CLI & jqwidgets-ng’ are contrary or complementary aproaches (either or / as well as)PS: the
Duplicate identifier
I think error may happen if you import fromjqwidgets-ng
and also fromjqwidgets-ts
So what
jqwidgets-ts
is for? (Typescript without Angular, I think)Regards
EdgarHello,
any news on that issue?
I’d really appreciate such a solution,
wondering why not more do so. -
AuthorPosts