jQWidgets Forums
Forum Replies Created
-
Author
-
May 15, 2015 at 2:18 pm in reply to: Grid error on cell validation for one row Grid Grid error on cell validation for one row Grid #71190
Hi Dimitar,
In your example there is no javascript error – true, yet the message is not displayed, if I change the
autorowheight
totrue
.As for the rest, I will check if it possible to refactor my code the way you proposed. By this I mean that the scenario is more complex then the simple example we discussed on.
For example:
When a cell value is changed following should happen:
* a request is sent to server
* if the response is not a success, then the cell background color changes to red and the error message is saved in order to be displayed on another action (save)I am using the
cellvaluechanging
to send the request and check the response andcellclassname
to change the cell style. I’ve been choosing this solution because thecellvaluechanging
method is called beforecellclassname
.
The idea with ‘cellvaluechanging’ got from here.
In the API I can not find thecellvaluechanging
property.Can I achieve the same using the validation callback?
Thanks,
IoanaMay 15, 2015 at 11:10 am in reply to: Grid error on cell validation for one row Grid Grid error on cell validation for one row Grid #71173Hi Dimitar,
thank you.
The problem with the suggested solution is that the rendered Grid does not look good.
This is a hack to make it work. I have already tried this (as I tried to figure out what the problem might be), and noticed that this will work.
Other then that, we need to use theautoheight:true
, in which case we have the same problem.The fiddle should be as close as possible to the implementation I use, which is why I am using
cellvaluechanging
method. This makes no difference anyway, since the problem is not related to this method, or to the way the validation is done.In my humble opinion this is a bug, and a fix is needed.
Unfortunately I can not use the suggested solution, as we can not offer our customers this “look” for the Grid.Any other suggestion/solution would be appreciated.
Thank you,
IoanaMay 15, 2015 at 9:59 am in reply to: Grid error on cell validation for one row Grid Grid error on cell validation for one row Grid #71170Hi Nadezhda,
i don’t see how your example could help me.
I do not need an example on how to create a Grid data from array.
I used an existing one, and my intention was to only generate one row, because in this case I can reproduce the problem.Please take a look at the fiddle I attached and see what the problem really is.
In my example there is a validation on “First Name” cell (value is required). If you delete the “Nancy” value, then a tooltip indicating the error should be displayed. It is not, instead a javascript error can be seen in the browser console.
Regards,
IoanaMarch 24, 2015 at 10:25 am in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #69071O, I apologize. This should be ok: https://jsfiddle.net/ioana_v/2ms4f6u4/3/
Regards,
IoanaMarch 24, 2015 at 10:12 am in reply to: Keyboard Input with 2 Digit Year Format Keyboard Input with 2 Digit Year Format #69068Hi Peter,
I do not think that this is a duplication, in http://www.jqwidgets.com/community/topic/jqxdatetimeinput-culture-and-formatstring-issue/#post-69058 I only made an extra observation about the MMM d, ”yy formatString.
The initial question was about the combination of culture and formatPattern.
Regards,
IoanaMarch 24, 2015 at 9:59 am in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #69066March 24, 2015 at 9:52 am in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #69064Hi Peter,
I did not mean that the format MMM d does not work, but the MMM d, ”yy. It is not the same format.
regards,
IoanaMarch 23, 2015 at 4:03 pm in reply to: Keyboard Input with 2 Digit Year Format Keyboard Input with 2 Digit Year Format #69020Hi Nadezhda,
I have the same problem for a MMM d, ”yy formatString.
I am using jqWidgets 3.7.0.Any updates on this?
Regards,
IoanaMarch 23, 2015 at 3:58 pm in reply to: jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug #69019Hi Dimitar,
thank you, I will try to figure out how to implement it.
Regards,
IoanaMarch 23, 2015 at 3:55 pm in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #69018Hi Peter,
:(, too bad you think this is not a limitation, cause the widget is quite cool otherwise.
Except the fact that it has no support for format patterns like MMM d, ”yy .Regards,
IoanaMarch 23, 2015 at 12:35 pm in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #68999Hi Peter,
I figured out you will say this :). This is a limitation from my point of view, and it is not specified (or it is unclear) in the documentation that the only supported formatString is one of the patterns from the Globalize file used (or specified in the culture).
Regards,
IoanaMarch 23, 2015 at 11:03 am in reply to: jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug #68988Hi Dimitar,
What I need is: instead of setting the cellsformat: “dd.MMM.yyyy”, I need a function that will return this value, depending on the cell. Each cell can be different in my implementation, and each cell can have a different cellsformat. The format is defined in a JSON structure.
When I create the Grid, I need to check the json value for “format”, depending on the row and column.
Something like:cellsformat:retrieveCellFormat .... var retrieveCellFormat= function (row, columnfield, ..........) { if (row===1 && columnfield==='col1') { return 'dd.MM/yyy'; } else { return 'dd/MMM.yyyy'; } }
March 23, 2015 at 8:12 am in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #68969Hi Peter,
My scenario is a bit more complicated. After the Grid is rendered, the user can change the date format for the entire application.
It means at that moment the localization file should be changed (this is your suggestion if I understood right). This is of course not practical. Instead it would be great to set the properties for the jqxDateTimeInput. Like: formatPattern, localization (not culture).Regards,
IoanaMarch 23, 2015 at 8:09 am in reply to: jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug jqxDateTimeInput (''dd.MMM.yyyy' format) in GridElement bug #68968Hi Dimitar,
thank you.
I need to determine the cellsFormat, so I need a function (like for cellsrenderer). Can you please let me know what are the parameters for this function?
For example for cellsrenderer are: row, columnfield, value, defaulthtml, columnproperties.Regards,
IoanaMarch 23, 2015 at 7:21 am in reply to: jqxDateTimeInput, culture and formatString issue jqxDateTimeInput, culture and formatString issue #68962Hi Peter,
Thank you for the quick answer.
Actually I did look at the file.
I need the german culture so that in the datepicker I get the correct i18N names for months and days.
Yet, the date format pattern can be changed by the user, and one of this format patterns can be the specified one, which is not supported by the culture.
Which is why I asked if it is possible to set the language for the datepicker in any other way?Regards,
Ioana -
AuthorPosts