Hello,
Which version of jQuery is used?
Can you please try with the last one.
Regards
Hello Oleg,
I want to merge the formatter requests, but I do not want to make all the cahnges that you have made, since they contain changes that I do not want to be included.
Will see how to do these.
Regards
Tony
Hello Oleg,
Thanks again.Right now I have time to look at the new “u” option added in 5.2.2
This tiime I think you have misunderstud the “u” option.
With few words the u option is equal to getMilliseconds javascript function and it can not be used separatley.
In order proff my concept I have creatted simple test in PHP:
echo date(“U”);
echo date(“u”);
The second echo return in my demo “000000”. I asked myself why?
My investigations go to the following equvalent of date(“u”) = > microtime()
(note that at PHP site you have point for the date function we have a note:
Note:
Since this function only accepts integer timestamps the u format character is only useful when using the date_format() function with user based timestamps created with date_create().
)
Having this I have two numbers from the following expressins:
echo date(“U”); ====>1330249977
echo microtime( true); ====>1330249977.874
Now I pass the numbers to the following expression
var timestamp1 = new Date (1330249977);
var timestamp2 = new Date (1330249977.877);
Both of these return
Date {Fri Jan 16 1970 11:30:49 GMT+0200 (FLE Standard Time)}
Now doing
var timestamp1 = new Date ( parseFloat(1330249977)*100);
var timestamp2 = new Date ( parseFloat(1330249977.877) *1000);
both of these return
Date {Sun Feb 26 2012 11:52:57 GMT+0200 (FLE Standard Time)}
With simple words I think
Sorry forgot the adition:
Addlink too should be changed
function
Thanks,
I do suggest you to use this function for unformatting:
function
Hello,
We need the whole code related to Grid and the inline edit.
Simple testcase full code would be Ok too.
Regards
Hello,
You can use this discussion :
http://www.trirand.com/blog/?p…..38;ret=all
as base to solve your problems.
Regards
Thanks Oleg,
Can not confirm right now, but the expression maybe should look like this:
..
timestamp = new Date( parseFloat(date)*(String(format) === “U” ?
Hello,
Thanks. This is allredy fixed:
https://github.com/tonytomov/jqGrid/commit/3ea69a09343340433daee55af069de4a6c97e0b2
Regards
Hello,
You can find here a lot of posts regarding this:
By example you can search with “depend listbox” and etc
Regards
Hello,
Please look at end of this page:
http://www.trirand.com/blog/?page_id=6
There are some older releases.
Regards
Hello
Try to solate the problem. I think it is in your content. Some things are with conflict. Please use only the grid files and css and then add the other in order to determine where is the problem.
Regards
Oleg,
Your code is correct. The formatter first add spaces and separators and the prefix and suffix
Hello,
Thanks Oleg for the example – I will see if I can include it.
The reason for these settings is simple – using the current approach the sorting can be changed dymamically with just a simple command
$(“#grid”).jqGrid('setColProp', 'colname', {soratable: false});
I find this feature more important than not to have sortable cursor.
In the Oleg's link here there is some very simple solution
th.unsortableclass {
cursor: default;
}
Apply this cass to the not sortable columns.
Regards
Hello,
If you use outr commertial PHP component, please post your problem here:
Kind Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top