Telerik MVC Grid:条件行颜色
在我的 Telerik 网格中,我有一个列,其中有一个 html.actionlink 指向删除功能。现在,我不会立即删除它,它会一直保留到用户明确表示保存更改为止。是否可以根据行中的值改变行的颜色?以便用户知道要删除哪些元素?
编辑 我还发现能够在列中添加条件是可以接受的,这样我就可以检测当前元素是否将删除字段设置为 true,将命令文本设置为取消删除或其他内容。
In my telerik grid i have a column that has an html.actionlink pointing to a delete function. Now, i dont delete it right away, it stays until the user explicitly says save changes. Is it possible to have the color of the row change depending on a value in the row? So that the user knows which elements are to be deleted?
Edit
I will also find it acceptable to be able to have a conditional in the column so that i can detect if the current element has a delete field set to true, set the command text to un-delete or something.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系。找到了我正在寻找的演示
http://demos.telerik.com/aspnet-mvc/grid /customformatting?Grid-page=3
Never mind. Found the demo for what im looking for
http://demos.telerik.com/aspnet-mvc/grid/customformatting?Grid-page=3