Forum


21:20

30/12/2009

I'm wondering how to approach this with jqGrid.
I want to do something midway between in-row editing and form-based editing. When the user clicks on certain text fields, which have been custom formatted to contain just an icon indicating that content is present, an edit form is brought up.
I have this working for a single field; onCellSelect for the grid points to a dispatch function that determines which column name was selected, and calls the appropriate function to generate a popup. Clicking on columns without entries in this function table don't do anything except select the row clicked on.
This works fine, but there are two columns I'd like to treat this way. I can set up the dispatch table such that I get the form popup when either field is clicked on, but if I just set each column to editable and set form options the popup will show textareas for _both_ of the columns.
Is there a simpler way to handle this that I'm missing?
21:24

30/12/2009

To clarify, right now the function that's dispatched to when I click on a field in the column in question is attached. I was almost expecting that I could pass into editGridRow a list of fields to show. Or maybe hiding unwanted columns during the duration of editGridRow, though I'd expect that would change the grid display as well, which would be confusing.
theGrid.editGridRow(rowid, {
top: 25,
left: 25,
width: 400,
});
}
21:51

30/12/2009

It's really a cell editor I'm looking for, except that I want a pop-up textarea lartger than the dimensions of the cell on the screen to do it in, and a "save" button required to save any edits. Perhaps there's a way to get this to happen using a custom element with the cell editing, but I couldn't figure out how to get it to do anything that pops up above the confines of the cell it's placed in. It's likely this is a misunderstanding of how to integrate my own CSS with jqGrid's operation, but I could still use some guidance.
09:33

Moderators
30/10/2007

Hello,
There is ready for this situation solution.
One possible solution is to write your own custom pop up cell editor and the just use getCell and setCell to get and save the new content.
Regards
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:
25 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