Forum


16:21

03/02/2009

Hi
Could someone kindly let me know how I can achive the below.
1. When I click on the add icon on the grid a form is open with all the fields that are editable, but when I click the submit button it requires an url to be set. I donot want to submit it to an url. I want the data to be added to the grid on the client itself instead of submitting it to an url. How can I achieve this ?
2. Also, if there is a way to do the above how would I be able to get the newly added row as an array of new data added to the grid ?
3. When I change a cell data it changes the cell to be dirty indicated by a red corner. How do I change the cells to their normal state at the client itself, since I donot want to submit it to the server as part of the cell save url, but instead I want to do some data manipulation at the client and submit it later as part of some webservice. But inthe mean time I want to have a way to clear the red colored indicated from the cells ?
Regards
Nirmal
01:44

Moderators
30/10/2007

Hello,
Currently you can define existing dummy file when you submit data. Also I will make the needed changes for using form editing with local data, but not in the upcomming release.
To disable the marker dirty you simple can disable this feature using the optins for cell editing - read the docs.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
19:33

03/02/2009

Thanks for your reply Tony. I did scan thru the documentation, but couldn't get hold of how to get rid of the dirty marker from the cell. Could you kindly let me know how this can be done or atleast point me to the documentation.
I do need the dirty marker, but I must be able to make the cell clean as and when I need it, without reloading the grid.
Could somebody help me out here ?
Regards
Nirmal
02:28

Moderators
30/10/2007

Hello,
Sorry it is my bad. The option is for filterGrid.
Also when the cell is edited and saved I use addClass("dirty-cell")
When you wan to remove this you can removeClass("dirty-cell")
also you can use hasClass too to determine if the cell is dirty.
To get these cells use getChagedCells('dirty') method
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66