Hi Betty,
I posted recently on the stackoverflow the answer
Hi Thomas,
I think it's you who posted the same question on the stackoverflow. I answerd it recently here. See the demo. which displays the following picture:

I think the example could be interesting for other users of jqGrid. I think that one can extend the code of jqGrid based on the example to implement the same functionality as the part of standard jqGrid code.
Best regards
Oleg
Hi DigitalForster,
I suppose that you use Internet Explorer. It's remind me about the old answer. I made an official support request to Microsoft and Microsoft confirmed that rows.namedItem
Hi mohsin,
I would interpret your original question like Tony did: loading local JacaScript data. If you do need to load data from some public server then you should typically use JSONP. See the answer, this one, this one
I don't understand your question about grid.jqueryui.js. It's just one from modules of jqGrid. If you download jqGrid you can unselect (remove) some modules which you definitively not use. Per default all module are selected, so grid.jqueryui.js is inside of jquery.jqGrid.min.js or jquery.jqGrid.src.js.
The demo which you posted seems to me independent from your question. You use sortable: true option in the grid which implementation is inside of grid.jqueryui.js
Sorry, but it's not what I would recommend you. Could you post more full code which you use: at least one line of input data is required. You should post the colModel definition too where you use
Sorr, but I don't understand what you don't understand.
If you need to change the style of the cell like in isDebt example then you should use cellattr. The main advantage is that you can still use some predefined formatter for the column. For example you can use formatter: “number” or formatter: “date”. So the number can be displayed with thousand separator and decimal separator defined in locale. You still can access to the whole data of rows using third parameter of cellattr
I recommend you don't include index in colModel. You should specify the property only if you have datatype: “json” or datatype: “xml” and you don't use loadone:true and if you want to have alternative name of columns which should be send to the server instead of the value of name property of colModel. Only in the case you should include index
Look at the answer
Sorry, but I can't full follow your last arguments. You don't need to define can define cellattr or rowattr as anonymous function. You can use function statement or save anonymous function to variable and use the name of function/variable as the value of cellattr or rowattr. In other words you can do almost the same what you do with formatter property, but use cellattr instead. The implementation of cellattr
I think it's not good to use custom formatter to change CSS of the cell. jqGrid provide cellattr for the purpose. One can use additionally rowattr to set CSS on the whole row of grid instead of changing the style of the cell only. It allows to use some formatter (like formatter: “currency”) to format the content of the cell and use cellattr
It seems to me that I answerd almost the same question here. I hope it will solve your problem too.
Hi,
the correct code should have delOptions inside of formatoptions:
{ name: 'Acciones', formatter: 'actions', width: 100, sortable: false, align: 'center',
You don't need to specify the opton imgpath. The option don't exist in jqGrid since version 3.5 (see the documentation). If you still use some hystorical retro version of jqGrid I would strictly recommend you to update it to the correct version which is now 4.5.2.
Best regards
Oleg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top