When using the method that comes with datagrid to load the list, when an error is encountered in the background, how to prompt an error in the foreground

 When using the method that comes with datagrid to load the list, when an error is encountered in the background, it cannot pass

jsonResult.Data = new ExceuteResult(ExceuteResultType.Error, "Parameter error!");

to return an error,

Because datagrid has a default return format, it needs to be changed to the corresponding format below, which must have total and rows

     jsonResult.Data = new

                {

                    total = 0,

                    errorMsg = "Parameter error!",

                    rows = ""

                };

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324874171&siteId=291194637