且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么loadComplete在gridComplete之前触发?

更新时间:2023-12-05 12:58:46

loadComplategridComplete之间存在细微差别,但是在准备好网格包含之后,两者都将被称为.因此,您不能只修改loadComplatedata来更改网格包含.

There are small differences between loadComplate and gridComplete, but both will be called after the grid contain is prepared. So you can't just modify the data of the loadComplate to change the grid contain.

您没有发布网格的定义,因此很难准确回答您的问题.您可能想要解决的问题与自定义格式程序有关您可以为customerSite列定义.在格式化程序功能内,您可以访问rowObject,您可以在其中找到构建customerName +'/'+ siteDescription的源信息.

You don't posted the definition of your grid, so it is difficult to answer on your question exactly. What you probably want can be solved with respect of the custom formatter which you can define for the customerSite column. Inside of formatter function you have access to rowObject where you find source information to construct the customerName + ' / ' + siteDescription.