Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think what you want should be achievable pretty easy. I made you a quick copy-paste/steal-together demopage.</p> <p>If you click the Date column you get a calendar selector.</p> <p>If you click the Client column and delete the content you will see an autocompleter (css doesn't fit quickpastewhatever) which lists american cities (i know cities aren't client names just a demo).</p> <p>Code taken from <a href="http://www.trirand.com/jqgridwiki/doku.php" rel="nofollow noreferrer">jqGrid</a> Cell Editing demo page + <a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" rel="nofollow noreferrer">jQuery Autocomplete</a> demo page</p> <p><a href="http://jsbin.com/owatu" rel="nofollow noreferrer">http://jsbin.com/owatu</a> (append <code>/edit</code> to the url to see the code)</p> <p>Of course the demo is a bit rough around the edges</p> <ul> <li>css problems</li> <li>quick hack in afterSaveCell inserted to get jQgrid to insert the selected value from the autocompleter if user uses arrowkeys+enter key with mouse it works without hack</li> </ul> <p>I guess the afterSaveCell hack could be removed when cleanly integrating autocomplete and jqGrid with each other.</p> <p>Basically it boils down to</p> <pre><code>jQuery("#celltbl").jqGrid({ ... {name:'name', width:100, editable:true}, //e.g. ... afterEditCell: function (id,name,val,iRow,iCol) { if(name=='name') { //cities here is local json object jQuery("#"+iRow+"_name","#celltbl").autocomplete(cities); } }, afterSaveCell : function(rowid,name,val,iRow,iCol) { if(name == 'name') { jQuery("#celltbl").jqGrid('setRowData',rowid,{name:jQuery(".ac_over").text()}); jQuery(".ac_results").remove(); } } ... </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload