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 approach--different pop-up forms when clicking on different fields
30/12/2009
21:20
Avatar
kozmikyak
Member
Members
Forum Posts: 3
Member Since:
30/12/2009
sp_UserOfflineSmall Offline

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?

30/12/2009
21:24
Avatar
kozmikyak
Member
Members
Forum Posts: 3
Member Since:
30/12/2009
sp_UserOfflineSmall Offline

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.

function cellEditMarketNotes(rowid) {
  theGrid.editGridRow(rowid, {
    top: 25,
    left: 25,
    width: 400,
  });
}
04/01/2010
21:51
Avatar
kozmikyak
Member
Members
Forum Posts: 3
Member Since:
30/12/2009
sp_UserOfflineSmall Offline

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.

06/01/2010
09:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information