Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 防止在剑道网格中打开弹出框_Php_Javascript_Jquery_Kendo Grid - Fatal编程技术网

Php 防止在剑道网格中打开弹出框

Php 防止在剑道网格中打开弹出框,php,javascript,jquery,kendo-grid,Php,Javascript,Jquery,Kendo Grid,我想在某些情况下停止打开弹出框。我的意思是,在特定的条件下,我应该打开,有时它不应该在剑道格网。我正在为此使用javascript和jquery。我正在使用剑道的JS1.7.1 $('.k-grid-Add').on("click", function () { if(val==-1) { alert('Please select agent'); //here i want to prevent popup-box } }); 使用返回假 此代码的目的是什么

我想在某些情况下停止打开弹出框。我的意思是,在特定的条件下,我应该打开,有时它不应该在剑道格网。我正在为此使用javascript和jquery。我正在使用剑道的JS1.7.1

$('.k-grid-Add').on("click", function () {
if(val==-1)
{
                alert('Please select agent');
//here i want to prevent popup-box
}

});
使用返回假


此代码的目的是什么?请解释一下。
$('.k-grid-Add').on("click", function (e) {
if(val==-1)
{
  alert('Please select agent');
  return false;
}
});
grid.find("div.k-grid-header").find("div").find("table thead tr").find('th').each(function () {
   $(this).find('.k-filter').click(function () {
   $(this).css("display","none");
   });
});