SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.showProgress  method

显示进度条。 

function showProgress (title: String, modal: Boolean, canceler: Function);
Returns
Void
Parameters
title - String. 默认值为""Load data"".
modal - Boolean. 默认值为false.
如果为true,就会通过显示符合网格大小的掩码,阻止用户点击鼠标。(ver 1.3.5)
canceler - Function. 默认值为undefined.
将会被调用在用户点击"Cancel"按钮时的回调函数。

function ();


如果没有指定该回调,就不会显示"Cancel"按钮。 如果在该回调函数中,中止进行中的操作并返回true,就会关闭进度条窗口。 或,需要通过直接调用closeProgress,关闭窗口。
(ver 1.3.5)
Code -1
    $('#showBar').click(funciton () {
        grid.showProgress("Loading...", true, function () {
            stopTask();
            return true;
        });
    }
See Also
closeProgress
setProgress
Examples
进度条
Excel异步导出