datagrid中idField的作用

datagrid 中idField属性定义:Indicate which field is an identity field. 

<table id="table" idField="stuId"></table>如columns属性值 field:'stuId',则表示stuId列为id标识列;这在edatagrid的删除除行时,调用的destroyUrl(定义:A URL to post 'id' parameter to server to destroy that row.)属性,将默认发送行Id的请求参数就是以此字段作为依据,不然此方法不能发现id数据!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章