Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
checkOnSubmit undefined
01/11/2009
17:41
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

hi

i use checkOnSubmit: true, and when i click submit in edit, i get a heading of undefined and 3 buttons with undefined. do i have to set some text or msg somewhere? it does not state this in the wiki. many thanks

Wish i knew more about jqGrid

02/11/2009
05:09
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

does anyone know where the docs are for this function? they are not in the wiki that i can see. many thanks

Wish i knew more about jqGrid

02/11/2009
12:18
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

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

02/11/2009
12:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

02/11/2009
14:30
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

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>

undefinedImage Enlarger

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

04/11/2009
03:16
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

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

04/11/2009
03:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

04/11/2009
09:21
Avatar
ploppy
Member
Members
Forum Posts: 38
Member Since:
28/10/2009
sp_UserOfflineSmall Offline

tony

i have downloaded the latest file. i think it is nowember? still not working. FYI, if i put

checkOnSubmit: true,
 saveData:"Data has been changed! Save changes?",
 bYes:"Yes",
 bNo:"No",
 bExit:"Cancel",

in the page, it works. all the best

Wish i knew more about jqGrid

04/11/2009
23:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information