禁用特定行的jsgrid编辑和删除按钮

时间:2017-06-20 13:31:06

标签: c# jquery asp.net jsgrid

我想禁用(不隐藏)jsgrid中列出的特定记录的编辑和删除按钮。例如,当ID为3(从下拉列表中选择)时,应禁用按钮。是否可以为特定记录设置配置。

1 个答案:

答案 0 :(得分:3)

是的,重新定义#include <iostream> #include <cmath> template < typename T > class Exponential { T m_base; public: Exponential(T base) : m_base{base} {} template < typename R > decltype(auto) operator()(R exponent) { return std::pow(m_base,exponent); } }; Exponential<long double> operator "" _E(long double base) { return Exponential<long double>{base}; } int main() { std::cout << (5.123_E(3)) << std::endl; } http://js-grid.com/docs/#rowclick)配置,以便在项目可编辑时调用默认实现:

rowClick

这是工作小提琴:http://jsfiddle.net/1s9rpr1y/