Hello,
Please use navbuttonAdd method and use your own code. You can disable in this case the add button (if you want to replace it)
Here is a documentation
Regards
Hello,
Ususlly if you refrech the grid and pref F5 you refrech the page and the grid is loaded with the new data.
I sugestu you to check your server side code when you refresh the grid.
Regards
Hello,
1. The file is not in UTF-8 encoded – not sure if this is the problem, but when I opened in the exported json string there was a syntax error in onselectCell function. Please check this.
Try not to use them in the export string and see if this is the problem.
Regards
Hello,
Can you please zip your final jsonstring ( which does not work) and send it to me to test it.
Regards
Hello,
Of course the way I posted this will not work. It was my mistake. Sorry.
The way to do it is to define a variable and change the variable within the function.
Here is a example
Regards
Hello,
I will say it other way- the names in colModel can not be changed dynamically.
With other words if you want to change the name by condition you will need to unload and load the grid again with the new name in colModel.
See docs for methods how unload the grid.
Regards
Hello,
Looking into the code I see there are some things which cause this not to work.
In most cases simple solutions are best one.
You can
var myname = myNameFunction(obj);
…
..jqGrid({
…
colModel : [
…
{ name : myname ,….},
…
],
…
});
where myNameFunction is the function defined from your post in colModel
Regards
Hello,
A simple source code will be greatly appretiated, we can not help in most cases if no test case is provided.
I'm not sure if this can work, but maybe you will need to set a index property of this column in colModel.
See docs
Kind Regards
Hello,
the editurl is actually a link toy your server side code where the parameters are accepted.
You should write your own server side code to update the database.
What is posted to the server you can read in this documentation
See (What is posted to the server chapter).
Also you can search the web. My first results give me this link
Regards
Hello,
Please let us know how you do this succesfully.
Thank you.
Kind Regards
Hello,
By default pager can not be added dynamically.
I see two possible solutions
1. You will create the
Hello,
Unfortunatley yes. The updatepager can be called this way.
Regards
Hello,
Ok. You will need to do more investigations and read carfully what I write you.This code workn perfectly:
var mydata = [{
Hello,
This is a remote request – i.e cross site. Such ajax request are not allowed by default.
In order to do this you will need to set dataType of the edit options to jsonp.
Search the web for tis case.
Also in grid options set
… jqGrid({
…
ajaxEditOptions : { dataType: 'jsonp'},
…
});
Or make in your local server such dummy file
Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top