Hello,
If you use the buil in jqGrid formatter:'currency' jqGrid will do the job for you if you edit the value. Since I suppose you value is formatted server side you can look here in order to do the things.
http://www.trirand.com/blog/?page_id=18/help/custom-format-function-and-edit-actions/page-1
Regards
Tony
Hello,
Not in 3.5 release, but in the next.
Regards
Tony
Hello Marcel,
If you use custom formatter you should custom unformat the value when you edit. If you use the inline editing I think the best place for this is to use datInit event in edit options in colModel.
dataInit : function (elm) {
// here the code to remove the span if available in the input elm value
}
Also I found a little bug, so you will need to download the latest code from GitHub.
Best Regards
Tony
Hello,
In FireFox, Safari and Chrome browsers I see wrong German charcters (umlauts and others), which mean that you server side code does not send the appropriate headers.
In IE is not working at all.
Also please be sure.
1. html page is utf-8
2. your database is utf-8 and before the query you do (in MySQL)
SET NAMES utf8
3. use the header in php to send the utf 8
Best Regards
Tony
Hello
or null or ' ' 😉
Regards
Tony
Hello Romyn,
Thanks again for your investigationns.
Also you are right there is a problem when we want to insert rowid = 0 in addRowData method. Also corrected in GitHub. Thanks.
Now about your problem.
IMHO it is a good idea in your case to have a global counter for the length of the rows in the grid. That is after you insert the data you can do
mycounter = myarray.length, where the myarray is a data added in the grid.
Then you can use afterSubmit event like this
afterSubmit : function (data, postdata) {
mycounter++;
return [true,””,myconter];
}
This way you will have in all cases uniquie id instead that you delete something from the grid.
Best Regards
Tony
Hello,
Not sure what you do, but the exactley same example is on the demo page and it works ok. Also could you please post the entry colModel?
Where you check that _search paremeter is false – server side or in FireBug?
Regards
Tony
Hello,
Thanks Shuki. This will be the first thing for the release after 3.5. Maybe I will ask you to thest some thinds if you want of course.
Regards
Tony
Hello,
This will not work if you settings reloadAfterSubmit is set to true. It is some task for you why is this happen 🙂 (it is all connected with the way that you call trigger in afterSubmit)
I recommend you to use afterComplete event in form editing to sort the new inserted row – i.e call trigger(“reloadGrid”) in this event
Regards
Tony
Hello,
How do you construct the grid when you destroy and load it agin. Do you use gridImport?
You should not comment anything. Be a sure that you have the right css file and this file is loaded correct.
Regards
Tony
Hello,
Check the parameters for the addRow, delRow and searchGrid methods. There is such option. Also if you want this to be globally you can set these in the language file using extend.
Regards
Tony
Hello,
This is one of the bugs in 3.4 version. Also I recommend you to switch to 3.5, where this behaviour is corrected.
Regards
Tony
Hello,
Yes, only one page is dispalyed. That is the main purpose of the pager.
Also local paging currently is not supported.
Hello,
These methods are in grid.custom.js – enable this module in the loader
Regards
Tony
Hello,
If you use 3.5 check the install.txt, if you use 3.4 check the installition notes in the documentation page.
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top