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
Inlined edit example
23/09/2008
18:14
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

Does someone have an example of using inline editing to update a database and return the updated data to the grid?

I have been reading through the examples and although there is quite a bit of good information, I can't determine from the examples how to pass the changed values to the server and then update the grid with the new values. If someone has a simple example they could post, it would be helpful.

I looked at both the rowedex1 and rowedex4 examples and I can't see how the data in parsed by the server for update and how the new values populate the grid.

Thanks

Pete

23/09/2008
19:06
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

Never mind.  I think I have the basic sequence figured out, although a fully functioning demo that shows editing, update with the roundtrips to the server would be helpful.

As far as I can tell. Editing the example to this:

     onSelectRow: function(id){
        if(id && id!==lastsel3){
            $('#workTimes').saveRow(lastsel3);
            $('#workTimes').editRow(id,true);
            lastsel3=id;
        }
    }

Allows the data to be written to the grid.  The editurl call will handle the update part at the server (still figuring out how to pass the cell contents but that shouldn't be too hard).  The return data from the editurl should be linked up with sucessfunc passed in saveRow so you can determine if all was well at the server end.

I think I have it figured out now.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
35 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