Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Client side manipulation
02/02/2009
16:21
Avatar
ncoonghe
Member
Members
Forum Posts: 29
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

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

03/02/2009
01:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

03/02/2009
19:33
Avatar
ncoonghe
Member
Members
Forum Posts: 29
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

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

04/02/2009
17:33
Avatar
ncoonghe
Member
Members
Forum Posts: 29
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

Could somebody help me out here ?

05/02/2009
02:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

05/02/2009
12:40
Avatar
ncoonghe
Member
Members
Forum Posts: 29
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

Thanks so much Tony. I shall try it out.

Regards

Nirmal

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information