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_Related Related Topics sp_TopicIcon
Costum form to edit single cell
18/08/2011
19:05
Avatar
DonMizzi
Member
Members
Forum Posts: 3
Member Since:
18/08/2011
sp_UserOfflineSmall Offline

hi everyone, I'm new of jqGrid and this is a great work. I have a question.

I would like to create a form that allows me to customize the input box for a single cell

my grid is simple:

category1 | value1 | value2 | ….

category2 | value1 | value2 | ….

 I need two different form to add/edit category or value.

And not only the value of the cell but also other meta data (es. category and description, or value1 and comment)

then i will save the data on remote database.

someone could help me by directing me towards the right path?

thanks a lot

bye Don

19/08/2011
14:57
Avatar
DonMizzi
Member
Members
Forum Posts: 3
Member Since:
18/08/2011
sp_UserOfflineSmall Offline

very good, something happened

ondblClickRow: function(rowid,iRow,iCol,e) {
        $(this).jqGrid('editGridRow', rowid,
        {        
            recreateForm: true,
            beforeShowForm: function(formID) {

                // understand html code

                //var html = jQuery(formID).html();
                //alert(html);

                jQuery('tr',formID).hide();
                $('#tr_cat',formID).show();

               jQuery('#tr_cat', formID).after('<tr rowpos="33" class="FormData" id="tr_32"><td class="CaptionTD">32</td><td class="DataTD">&nbsp;<input type="text" id="32" name="32" role="textbox" class="FormElement ui-widget-content ui-corner-all"></td></tr>');

          }

        });

}

19/08/2011
17:24
Avatar
DonMizzi
Member
Members
Forum Posts: 3
Member Since:
18/08/2011
sp_UserOfflineSmall Offline

now I have another question.

maybe i choosen a difficult way, would be more simple if i could configure edit form only for one cell? is it possible?

otherwise, how i can open form only if a determinate iCol is double clicked?

for istance, i can stop opening form if iCol <=1?

thanks

Don

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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