DataGrid-How-to-hide-disable-Edit-Form-items-based-on-another-item-s-value:DevExtreme DataGrid,Angular,TypeScript,Vue,React,ASP.NET Core

时间:2021-05-01 11:04:48
【文件属性】:
文件名称:DataGrid-How-to-hide-disable-Edit-Form-items-based-on-another-item-s-value:DevExtreme DataGrid,Angular,TypeScript,Vue,React,ASP.NET Core
文件大小:19MB
文件格式:ZIP
更新时间:2021-05-01 11:04:48
react angular typescript reactjs datagrid DataGrid-如何根据另一个项目的值隐藏/禁用“编辑表单”项目 本示例演示了如何基于DataGrid中另一个项目的值来显示/隐藏或启用/禁用表单项目。 主要步骤是: 为必需的列定义回调函数,以在更改编辑器值后强制重新呈现项目。 使用和获取当前的编辑器值。 在表单的事件处理程序中更改项目的选项。 定义来更改所需表单项编辑器的选项。 在我们的特定情况下,我们 如果AddressRequired值为false,则隐藏“家庭住址”表单项。 如果名字形式的项目值为空禁用姓氏项目编辑器。

网友评论