Hello Tony!
I made some more tests and improved my suggestion to have full support of the DateTime .NET format used by Microsoft for serialization in WFC, ASP.NET MVC or ASMX Web Services (so in all kinds of JSON DateTime serialization). The serialized format of DateTime class is described in the section “DateTime Wire Format” of http://msdn.microsoft.com/en-us/library/bb412170.aspx.
The corresponding changes in the jquery.fmatter.js can be following. The lines 142-146
if(date.constructor === Number) {
Look at edit form settungs. I recommend you to change the settings for all edit/add form dialogs in the following way:
jQuery.extend(jQuery.jgrid.edit, {closeAfterAdd: true,closeAfterEdit: true,recreateForm: true});
Best regards
Oleg
The pager
![]()
has LAGRE icons 32
Hi Elie,
in the answer from the second link which I posted you before I do almost the same thing which you asked me. The code like the following
var cm = grid.jqGrid('getColProp','email');
cm.editable = false;
cm.sortable
Yes in the way you can receive what you need. Just to verify my suggestion I included in my other jqGrid example the following CSS
jqGrid just used elements which the CSS classes ui-icon,ui-icon-seek-first,ui-icon-seek-prev,ui-icon-seek-next and ui-icon-seek-end
editurl as a function is not supported. You should use 'clientArray' in case of inline editing. Form editing had not full support of local editing. Probably now?
Sorry jdege,
but I don't agree with your statements about the complexity. If you rename one file so that it has just correct extension ASMX, you code
[WebMethod()]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static MyData getMyData(Dictionary postData)
{
Sorry dm,
but the information which you posted is not sufficient to make any tests. I am enable reproduce your problem based on the information. You should prepare full example and not post only the definition of one column, some of jqGrid parameters and no test data. Till now I don't know which version of jQuery UI you use. Moreover I recommend you to use more
Consider to use get/set of the data parameter of the jqGrid. It holds all the data of the local grid. The corresponding code can be about following
var mydata = $('#list').jqGrid('getGridParam','data');
After modification of the grid data with respect of $('#list').jqGrid('setGridParam','data',mydata) refreshing of the internal grid's indexes with the code $(“#list”)[0].refreshIndex() can be needed (see this for more detailes).
Best regards
Oleg
Hello Klaus,
I personally don't like to use addRowData method because it makes impossible to use gridview:true
Hello Joris,
The predefined formatter showlink is not perfect. It is very easy to write your own custom formatter which produce exact HTML code fragment for the link format which you need.
In both cases the function which you can call in the way must be global. If you prefer concept of unobtrusive JavaScript you can use predefined formatter
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top