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
How to edit a cell on ClientSide-Grids (without AJAX)
10/11/2009
10:37
Avatar
cimodev
Guest
Guests

Hello

i have a grid with datatype "clientSide". There is NO Ajax, no Backend-Server, nothing to do via the grid itself while editing.

I add the rows programmatically in JavaScript and want give the user the ability to edit within the cells without any Ajax-Calls.

But after pressing Enter there comes still the following Error-Message "No url is set".

So, I dont want to set an URL. I want to handle the Input programmatically on client Site with JavaScript on a later time.

What can i do?

Thank you very much for any help

My Grid-Definition is the following:

[CODE]

$(self.tblID).jqGrid({
            datatype: 'clientSide',
            cellEdit: true,
            height: '200px',

            // Column-Headers               
            colNames: ['Datum', 'Lfd. Beitrag', 'Sonderzahlung', 'Rentenanspruch', 'Anspruch bfr.', 'Anspruch Baustein', 'Anspruch Sonderzhlg.', 'Überschußbtlg.', 'Kapital'],

            // Column-Model
            colModel: [
                    { name: 'Datum', index: 'Datum', width: 129, sorttype: 'date', align: 'center', editable: true, editrules: { required: true, date: true} },
                    { name: 'Beitrag', index: 'Beitrag', width: 120, sorttype: 'float', align: 'right', editable: true },
                    { name: 'Sonderzahlung', index: 'Sonderzahlung', width: 120, align: 'right', sorttype: 'float', editable: true },
                    { name: 'RentenAnspruch', index: 'RentenAnspruch', width: 120, align: 'right', sorttype: 'float' },
                    { name: 'RentenAnspruchBfr', index: 'RentenAnspruchBfr', width: 120, align: 'right', sorttype: 'float' },
                    { name: 'RentenAnspruchAusBeitrag', index: 'RentenAnspruchAusBeitrag', width: 120, align: 'right', sortable: false },
                    { name: 'RentenAnspruchSZ', index: 'RentenAnspruchSZ', width: 120, align: "right", editable: false },
                    { name: 'RentenAnspruchGA', index: 'RentenAnspruchGA', width: 120, align: "right", editable: false },
                    { name: 'Kapital', index: 'Kapital', width: 120, sortable: false, editable: false }
                    ],
            pager: jQuery(self.pagerID),
            rowNum: 20,
            viewrecords: true,
            imgpath: gridimgpath,
            afterEditCell: function(rowid, cellname, value, iRow, iCol) {
            }
        });

[/CODE]

10/11/2009
10:46
Avatar
cimodev
Guest
Guests

it seems, that the error message "no url isset" in every case occurs, even if i define the editurl-property.

the used version of jqgrid is the 3.5 3.5 beta (buld6- build11)

11/11/2009
03:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

11/11/2009
03:52
Avatar
cimodev
Guest
Guests

Thanks a lot tony!

I didnt know the existence of this wonderfull wiki-article. just tried out your example-pages...

The concrete solution for my problem described above gives the following line:

cellsubmit: 'clientArray'

Regards, cimodev

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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