Hi,
There are two possibilities:
1. Use the option editurl which is a part from grid options.
2. Use a url when you call editGridRow – something like editGridRow(rowid, {url:”myurl”});
Regards
Tony
Hi,
If I understand right you want to set the width of the grid to given width of some element. Right?
Initially this can be done this way:
// get the width of the element
el_width = $(“elem”).width()
$(“tbl_id”).jqGrid({
// here are other parameters
….
width : el_width,
…
})
This way the grid will have the width that you want.
The missing part here is that there is no method to set the new width of the grid, but I think that this can be done
Regards
Tony
If you use this in add Mode you can set the 3 parameter to returned data
Something like
if(result[0]==”succes”) {
// do something here
return [true, ,here_the_id_from_server]
…
}
Note that this value is set automatically. If the 3 parameter is missing I add for the id the next record
Hi,
Use afterSubmit event to do that. Here is example:
(See Documentation)
afterSubmit: function(data,postdata){
var result = data.responseText.split(";");
if (result[0] == "success"){
//do something here
return [true];
} else return [false,"The Error message here"];
}
Where data is the data returned from the server and post data is the data that is posted
Regards
Tony
If you run the examples from this site with FF, do you have such problems?
I have tested such words with xml and IE6, but all is Ok.
If you use xml do you have send the approprite headers in php this is like:
header("Content-type: application/xhtml+xml;charset=utf-8")
Hi,
I prefer you to check the questionMask value.
Make alert when the value is changed – i.e – alert(questionMask)
I think that to get the value from checkbox the expression should be:
var questionMask = jQuery(‘select option:selected’,’#search_question’).val();
Regards
Tony
I think that there should be a more common way – set attributes of each individual cell – example
colModel [
{name:’name’, width:30,…,options: {align:’left’,color:’red’,colspan:’2’…}
…
]
but I’m not sure that some attributes will work.
Regards
Tony
Hi,
Let’s spouse that the fields – field1 and field2 are hidden, but you want to display this in the form.
I use beforeShowForm (in editGridRow) event this way.
….
beforeShow : function (form_id) {
$(“#field1”,form_id).parents(“tr:first”).show();
$(“#field2”,form_id).parents(“tr:first”).show();
}
Important note – There is a bug with event names – I will publish the fixed version at end of week
Regards
Tony
Hi Gerard,
Thank you. Right now I do not have IE7 by hand.
Regards
Tony
Hi Nathan,
Just disable pager with
pager : false
or do not set this option
Regards
Tony
Gerard,
1. Row numbering – if you use server side scripts you can do easy this by adding an additional column for row number and return the appropriate numbers from the server. The problem is only when we use clientSide data. I will add this in the list and will what can I do.
2. rowspan and colspan – will make some tests, but not sure that this will be easy – will add additional code (a lot) for the resizing.
3. good idea – this will show the user which columns are sortable.
Anyway thank you for the suggestions
Best Regards
Tony
Please verify, that you load correct the jqGrid.
Maybe you should look into the jquery.jqGrid.js to refine the include paths to js files.
Regards
Tony
Hi,
This is true. After day or two I will publish the fixed version.
Thank you.
Regards
Tony
Yes. Maybe the solution is to store initial index of the header and cols and put data to that index.
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top