jQWidgets Forums
Forum Replies Created
-
Author
-
November 28, 2017 at 4:17 pm in reply to: grid destroy in an iframe grid destroy in an iframe #97598
yea, right, it does not go to the catch block since the if block is handling it. My issue is, the if block is not there in destroy() method. I tried overriding the destroy() method by adding the if blocks similar to what we have during addHandler() and it works fine. Is this something you can do?
November 27, 2017 at 9:58 pm in reply to: grid destroy in an iframe grid destroy in an iframe #97583Sorry for getting back on this old ticket. However, upon further digging into the issue, what I noticed is that when adding the event handler in _addHandlers() method, the code is wrapped in a try/catch block along with additional checks for document.location.host before adding the handler on ‘mouseup.grid’ event. I think this takes care of the iframe situation while adding the handler. However, in the grid’s destroy() method, before removing the handler for ‘mouseup.grid’ event, 1) Its not wrapped in try/catch block. 2) No additional check is done for document.location.host that causes the cross domain error and grid destroy fails.
Hope I made a valid point here and request you to have a closer look at this issue before dismissing it as normal behavior.
Thanks Stanislav for your response.
setting sortable to false makes the column unsortable. However, my requirement is only when the column doesn’t have any values, then it shouldn’t be sortable. If it has values, then it can be sorted.
Yes, I tried setting the type as ‘string’ but that breaks the sort on that column. If I set it to ‘date’ then I face the issue we discussed above.
Hi Hristo,
The fiddle shared by you still converts the date/time to local timezone. My requirement is to avoid this and show the date in the same timezone as I receive it.Thanks,
ShakeelThanks for your response. However, as I commented before, I have already set the format in the datafield(same as what you also suggested) but I still see the date conversion happening. Please have a look at this updated jsfiddle,
http://jsfiddle.net/sGGZ3/608/
so basically, my date input, cellsformat and format are all in the same format and I would like the same to be displayed on the grid.July 31, 2017 at 2:12 pm in reply to: date with timezone converting to local timezone date with timezone converting to local timezone #95224Please reply to my query. I am stuck on this.
To add to the above issue, I have also set the format in the datafield as the same format ‘MM/dd/yyyy hh:mm tt zzz’.
Hi,
I have the date string as ’07/26/2017 03:38 PM EDT’ and I have set the type as ‘date’ and the cellsformat as ‘MM/dd/yyyy hh:mm tt zzz’. However, its still converting the date to my machine’s timezone. I would like to see the date displayed in the same format and timezone in the grid as ’07/26/2017 03:38 PM EDT’. Is the format that I have set correct?
Here’s the fiddle,
http://jsfiddle.net/sGGZ3/607/Thanks,
ShakeelFebruary 24, 2017 at 11:30 pm in reply to: grid print converting integer to decimal grid print converting integer to decimal #91872However, if we think about it I still see the issue. Why is it displaying as an integer in the grid and as a decimal in the print window. Shouldn’t it be the same? Not sure why the link isn’t showing up in my first post.
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/printing.htm
February 24, 2017 at 10:59 pm in reply to: grid print converting integer to decimal grid print converting integer to decimal #91871I found that having the cellsformat atrribute set to ‘n’ in the grid layout for that particular column will render it in integer both in th grid as well as the print window.
-
AuthorPosts