Solved!
Solution:
$(“#list1″).jqGrid('setGridParam',{ url: '@Url.Content(
//type of data
datatype: 'json' }).trigger(“reloadGrid”);
Thank you.
Regards,
Micheale
micnie2020 said:
Hi All,
Please advise.
Thank you.
Regards,
Micheale
Hi,
Finally found alternative solution to solved my issue. Here you go:
,beforeSubmit: function(postdata, formid){ //more validations if ($('#NoProcessor').val()==””){ $('#NoProcessor').addClass(“ui-state-highlight”); $(“#reqfield”).css(“display”, “inline”); return [false,'Processor: Field is required']; //error }else if ($('#RAM').val()==””){ $('#RAM').addClass(“ui-state-highlight”); return [false,'RAM: Field is required']; //error }else if ($('#Graphic').val()==””){ $('#Graphic').addClass(“ui-state-highlight”); return [false,'Graphic: Field is required']; //error }else if ($('#Size').val()==””){ $('#Size').addClass(“ui-state-highlight”); return [false,'Size: Field is required']; //error }else if ($('#HDD').val()==””){ $('#HDD').addClass(“ui-state-highlight”); return [false,'HDD: Field is required']; //error }else if ($('#HDDQty').val()==””){ $('#HDDQty').addClass(“ui-state-highlight”); return [false,'HDDQty: Field is required']; //error } return [true,'']; // no error },
Thank you.
Regards,
Micheale
micnie2020 said:
Hi All,
Please advise.
Thank you.
Regards,
Micheale
Hi,
Finally found alternative solution to solved my issue. Here you go:
,beforeSubmit: function(postdata, formid){ //more validations if ($('#NoProcessor').val()==””){ $('#NoProcessor').addClass(“ui-state-highlight”); $(“#reqfield”).css(“display”, “inline”); return [false,'Processor: Field is required']; //error }else if ($('#RAM').val()==””){ $('#RAM').addClass(“ui-state-highlight”); return [false,'RAM: Field is required']; //error }else if ($('#Graphic').val()==””){ $('#Graphic').addClass(“ui-state-highlight”); return [false,'Graphic: Field is required']; //error }else if ($('#Size').val()==””){ $('#Size').addClass(“ui-state-highlight”); return [false,'Size: Field is required']; //error }else if ($('#HDD').val()==””){ $('#HDD').addClass(“ui-state-highlight”); return [false,'HDD: Field is required']; //error }else if ($('#HDDQty').val()==””){ $('#HDDQty').addClass(“ui-state-highlight”); return [false,'HDDQty: Field is required']; //error } return [true,'']; // no error },
Thank you.
Regards,
Micheale
I manage to solved it by using
gridComplete: function () {
Hi All,
I finally figure out stupid method but work! Now, leave how to trigger Click on 'Add Button' for current dialog, my red bold section code is something wrong?
Please Help.
var dlg = $(formid).closest('div.ui-jqdialog');
Please Help.
I have change to:-
function setTrigger() {
Solved it!
Thank you.
Need to change jquery.jqGrid.src.js file.
Thank you.
Regards,
Micheale
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top