error handling has nothing to do with jqGrid. is from XMLHTTPRequest (xhr in your call back function). Explore its properties like:
|
1 |
<span style="color: #003366;font-weight: bold">var</span> err <span style="color: #339933">=</span> <span style="color: #000066;font-weight: bold">eval</span><span style="color: #009900">(</span><span style="color: #3366cc">"("</span> <span style="color: #339933">+</span> xhr.<span style="color: #660066">responseText</span> <span style="color: #339933">+</span> <span style="color: #3366cc">")"</span><span style="color: #009900">)</span><span style="color: #339933">;</span><br /> |
you may render each cell as Iframe, and put its src to your URL if I understand you correctly otherwise give more details to understand what exactly you'd like to achieve.
success is a call back function. do you have an URL for your ajax post? and if yes what are you sending back form your server?
Check the documentation for :
edittype: 'select', editoptions: { dataUrl: yourURL' }
it must be the same way as calling a web service. it sends a dictionary collection with key, values that you can browse to get all parameteres sent by jqgrid, and send back in the appropriate data.
I think you can hide or show delete button on onSelectRow: function(id){}. Personally I control editing row with this event, and if the row is editable I call $(“#gird”).editGridRow(id,{}); in my form I added the Delete button instead or navigation buttons.
Sorry, I don't understand what you're asking. Do you talk about
try
.navGrid('#jqPager1', { edit: false, add: false, del: false, search: true, refresh: true }
in
did you make server.php? have hou exactly the same structure of file/folder as the sample? in other words
First try in afterShowForm(form) event, then you can use jquery selector something like:
$('#serv_descr',form).attr('disabled','disabled');
I am curious to know
Why don't you just filter your grid, and return the only record with your ID? in your case you don't need pagination.
Does your alert($(“#id384”).val()); is showing each time you're changing your dropdown?
according to document :
|
1 |
dataEvents: list of events to apply to the data element; uses<br />$("#id").bind(type, [data], fn) to bind events to data element<br /><br />Should be described like this dataEvents: [<br /> { type: 'click', data: { i: 7 }, fn: function(e) { console.log(e.data.i); }<br /> }, { type: 'keypress', fn: function(e) { console.log('keypress'); } }<br />]<br /><br /><span style="text-decoration: underline"><strong>The event(s) are called only once when the element is created</strong></span><br /><br />if you know your jquery object (the dropdow id etc ) you might be using live event of jquery.<br /> |
Tony,
it can be added at loadComplete something like $('select.ui-pg-selbox').remove(); should remove the rowlist
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top