Solved the problem.
Within the navGrid, I added “editData:{id:value}” in the add, edit options.
jQuery("#contacts").jqGrid('navGrid','#pager',
Thanks for the quick reply, Oleg.
Your solution helped me very much.
Do you think that there's a similar solution for the 'editurl'?
Thanks again,
John
I just added a parameter to the end of editurl, like…
appGrid.js
editurl:"_editContacts.php?parameter=56″
then accessed it from a $_GET
_editContacts.php
$parameter = $_GET['parameter'];
John
Hello,
Where exactly did you edit this? What file?
I'm have a similar problem.
Thanks guys.
I should have read the documentation a little better. D'oh (Homer Simpson moment)
John
Thank you for replying.
I've heard that 'onSelectRow' is disabled when the cell is editable.
I'll look more into this though.
Thanks again.
John
I've changed my thinking.
Instead of changing select options based on the value of another cell in the next column, I'm changing the select options based on the value of the current cell.
I'm still having problems trying to set the select options prior to displaying the grid.
Tony,
Thanks for all your help.
The addition of “edittext” to my grid solved the issue.
My users need me to hold their hand.
Thanks again.
John
Tony,
Thanks for the help it works.
I updated to the current grid today.
Thanks again.
John
Solved on my own.
Just updated all jqGrid files from github.
Note to all:
Remember to do this ever so often. It helps.
Thanks for the update, Tony.
John
To answer: How is it possible to pre-select a value in a input-field of type “select” ?
I've used this in a grid I'm currently working on.
Within the colModel, I have a row (states).
To set a default value for a select just use the 'editoptions' property and the 'defaultValue' option.
{name:'state',index:'state', width:50,
Hi,
You mean like a default selection?
John
Thanks and will do.
Sorry, your right.
I didn't change the code before pasting to forum. I've solved the problem.
Thanks.
John
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top