Forum


12:18

28/10/2009

sorry for the rant, but why is there such a lack of response here? have i asked a question that is unacceptable? 24 hrs and not even a hint of help? what is the point of a great product such a jqgrid, when the docs are sparse and you tend learn more looking at other peoples post, but sometimes you need an answer to a specific problem. oh well, rant over and feel free to chip in if i am out of order. cheers
Wish i knew more about jqGrid
12:58

Moderators
30/10/2007

Hello,
This is a open source software and you expect answer whitin 24hours? Wow? Did you have answer whitin 24hr on product that you pay? If you want presto support within 24 hours there is a menu support and this page and you can use it.
Now to the problem.
Could you please post your entry html page with the code?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
14:30

28/10/2009

tony
thanks for reply. yes, i appreciate it is open source software and with all due respect, other forums that i use, respond well within 24 hours. people use a forum such as this because it gives them a direct line to the developers and contributors and whilst they are learning to use the software, advice from forums such as this is invaluable.
but all that aside, the software is truly inspirational and you are to be congartulated on offering this product for free. here is the html code.
<link rel="stylesheet" type="text/css" media="screen" href="./css/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./css/all.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./css/jquery.searchFilter.css" />
<script src="./js/jquery.js" type="text/javascript"></script>
<script src="./js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<script src="./js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="./js/jquery.jqGrid.js" type="text/javascript"></script>
<script src="./js/jqDnR.js" type="text/javascript"></script>
<script src="./js/jqModal.js" type="text/javascript"></script>
<script src="./js/grid.formedit.js" type="text/javascript"></script>
<script src="./js/formatter.js" type="text/javascript"></script>
<table> Filter by:
<tr><td>Title</td><td><input type="text" id="search_title" onkeydown="doSearch(arguments[0]||event)" /></td></tr>
<tr><td>Director</td><td><input type="text" id="search_director" onkeydown="doSearch(arguments[0]||event)" /></td></tr>
<tr><td>Year</td><td><input type="text" id="search_year" onkeydown="doSearch(arguments[0]||event)" /></td></tr>
<tr><td>Bond</td><td><input type="text" id="search_bond" onkeydown="doSearch(arguments[0]||event)" /></td></tr>
</table>
<table id="list2" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager2" class="scroll" style="text-align:center;"></div>
<hr />
<script type="text/javascript">
// This is the actual grid
jQuery("#list2").jqGrid({
scrollrows : true,
url:'json.php',
datatype: "json",
width: 1024,
height:'auto',
colNames:['ID', 'Title','Director', 'Year', 'Bond','Budget'],
colModel:[
{name:'id',index:'id', width:30, hidden:true, editable:false},
{name:'title',index:'title', width:150, editrules:{required:true}, editable:true, editoptions:{size:30}},
{name:'director',index:'director', width:95, editrules:{required:true}, editable:true, editoptions:{size:30}},
{name:'year',index:'year', width:60, align:"left", editrules:{required:true}, editable:true, editoptions:{size:30}},
{name:'bond',index:'bond', width:90, align:"left", editrules:{required:true}, editable:true, editoptions:{size:30}},
{name:'budget',index:'budget', width:60, align:"left", editrules:{required:true}, editable:true, editoptions:{size:30}}
],
pager: jQuery('#pager2'),
rowNum:10,
rowList:[10,20,30],
imgpath: 'themes/sand/images',
sortname: 'year',
mtype: "POST",
viewrecords: true,
sortorder: "desc",
loadonce: false,
multiselect: true,
shrinkToFit: true,
editrules: { required: true },
editurl: 'edit.php',
caption: "James Bond movies"
});
// jqGrid Form tune
jQuery.jgrid.edit = {
bSubmit: "Submit",
addCaption: "Add Record",
editCaption: "Edit Record",
closeAfterAdd: true,
closeAfterEdit: true,
checkOnSubmit: true,
bottominfo: "This can be used for many things.",
bCancel: "Cancel",
msg: {
required:"This Field is required",
number:"Please enter valid number",
minValue:"value must be greater than or equal to ",
maxValue:"value must be less than or equal to"
},
processData: "Processing...",
editData:{myname:"myvalue"},
height:250,
top:0,
left:0
};
jQuery("#list2").navGrid('#myvalue',
{edit:true,edittext:"Edit",add:true,
addtext:"Add",refresh:true,refreshtext:"Refresh Data",del:true,
deltext:"Delete",search:false,searchtext:"Search"
})
var timeoutHnd;
var flAuto = true;
// Live search
function doSearch(ev){
if(timeoutHnd) {
clearTimeout(timeoutHnd); }
timeoutHnd = setTimeout(gridReload,500);
}
// Send the data and refresh the grid
function gridReload(){
var title_mask = jQuery("#search_title").val();
var director_mask = jQuery("#search_director").val();
var year_mask = jQuery("#search_year").val();
var bond_mask = jQuery("#search_bond").val();
jQuery("#list2").setGridParam({url:"json.php?title_mask="+title_mask+"&director_mask="+director_mask+"&year_mask="+year_mask+"&bond_mask="+bond_mask,page:1}).trigger("reloadGrid");
}
</script>
result after submit when in edit.
all i want to know, is there any properties or options for checkOnSubmit. many thanks once again tony.
Wish i knew more about jqGrid
03:16

28/10/2009

ok guys. i guess there is no answer to this bug. though i have to wonder why this forum is here. Tony, no disresepct to you or your great product, but i have to say that if you are not going to offer support here, then the docs should be updated to reflect that. by the time an answer is given here, there is probably an update which makes the answer redundant. all the best with a great prodyuct. cheers
Wish i knew more about jqGrid
03:57

Moderators
30/10/2007

Hello,
I will not comment.
IMHO the problem is that you have old language file. Please update to the latest grid.locale-en.js (or used from you language file)
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
23:27

Moderators
30/10/2007

Hello,
Downloading the last does not mean that you use them.
Please be asure that you copy the file to the right palce and see in FireBug if you load them.
Also clearing the cache after this operation is recommended.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66