Forum


17:24

20/12/2011

Hello,
First, thanks for developping JQGrid, it's really gread plugin and good to use.
However, I have a problem with editing, doesn't know if it's bug or just something missing… so any help will be welcomed
I am using the grid in Form editing mode, data is retrieved from XML file. Then, I want to work on client side only.
As it is not possible to work on client side only (which is really a pity…) I have editurl to a dummy server page doing nothing..
In some cells, for edition, I want to use custom elements (in edit properties). It's going very fine, but when I display the form to edit the cells, the datas in the custom elements are not inserted. If I change record or open the form again, they are inserted. I don't understand why. (code is on ASP.net page and quite huge so better not to send it here, if required can send later...)
Thanks so much for any help !!
Pierre
12:32

20/12/2011

Hi again,
Just went through the source code of JQGrid to understand my problem.
I think I found out why it doesn't show data, but maybe there is something else to do to make it work ?
When the form is constructed with "EditGridRow" function, the "CreateData" function is called, which calls the "$.jgrid.createEl" function. If edittype is "custom", this method bind the HTML element but doesn't set up the value. So, this why the custom element doesn't show any data at first when the form is displayed. Should CreateEl function binds value data also or should it be done somewhere else ?
For the time being, i use the custom_element method to call custom_value and therefore set the value. Is the way it is supposed to be used ?
Thanks !!
Pierre
Most Users Ever Online: 715
Currently Online:
46 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