Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you should verify <code>routes.MapRoute</code> which you added to the route table. Do you really use <code>IdMaster</code> parameter or you should rename it to <code>Id</code>? It can be that you just forget to add the custom rule.</p> <p>Another problem which I could see is the syntax error: you use </p> <pre><code>.navGrid(pager, {... </code></pre> <p>instead of</p> <pre><code>.navGrid('#pager', {... </code></pre> <p>(the variable <code>pager</code> in undefined).</p> <p>Another possible problem is possible id duplicates. Be sure that ids of the detail grid has <em>another values</em> as the ids from the master grid. Because ids are strings you can for example use prefixes for the ids: like <code>'m_'+ch.Id</code> for the master grid and <code>'d_'+bah.Id</code> for details grid.</p> <p>Some more remarks:</p> <ul> <li><code>sidx</code> and <code>sord</code> should not be included in the JSON response of the server. Instead of that <code>total</code> should be included. See <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data" rel="nofollow noreferrer">here</a> for more information.</li> <li>I recommend you to use <code>datatype: "local"</code> instead of <code>datatype: "json"</code> for the details grid definition. It will prevent attempt to load data at the grid initialization.</li> <li>I recommend you to use <code>pager: '#pager'</code> instead of <code>pager: jQuery('#pager')</code>.</li> <li>I recommend you to use <code>key: true</code> in the <code>'Id'</code> column. In the case you will don't need to send <code>Id</code> values twice. If you would use additionally <code>jsonReader: {cell:''}</code> you can remove <code>cell</code> property like <code>id</code> property from the <code>rows</code> data. So you can use about the following <code>from ch in ms select new { new string[] { ch.Id.ToString(), ch.Descripcion }}).ToList()</code>. See <a href="https://stackoverflow.com/questions/3054463/jqgrid-3-7-does-not-show-rows-in-internet-explorer/3061669#3061669">here</a> or <a href="https://stackoverflow.com/questions/5764709/jqgrid-not-loading-data/5766189#5766189">here</a> for example.</li> <li>I recommend you to use error handling on the jqGrid at the beginning of your code. See the UPDATED part of <a href="https://stackoverflow.com/questions/5500805/asp-net-mvc-2-0-implementation-of-searching-in-jqgrid/5501644#5501644">the answer</a> with <a href="http://www.ok-soft-gmbh.com/jqGrid/jqGridDemoVS2010.zip" rel="nofollow noreferrer">the demo project</a>. Displaying of error messages can save many time of your debugging. The demo could be interesting for you as a ASP.NET MVC code example which use jqGrid.</li> </ul>
    singulars
    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. This table or related slice is empty.
    1. This table or related slice is empty.
    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