This touches on "conditionally hiding checkboxes in a column full of checkboxes in a DevExpress ASPxGridView" and the disabling of checkboxes may be done in largely the same way. In the Foo_CommandButtonInitialize C# method one would disabled checkboxes with...
e.Enabled = false;
...instead of:
e.Visible = false;
And in the DoSomethingInJavaScript function this blob of code...
if (checkBoxSanityCheck != ' ')
Foo.SelectRowOnPage(i);
...could be replaced with this blob of code so that both hidden and disabled checkboxes are not selected when one checks the special checkbox to check all checkboxes.
if (checkBoxSanityCheck != ' ') {
if (checkBoxSanityCheck.indexOf('savedtabindex') == -1) {
Foo.SelectRowOnPage(i);
}
}
No comments:
Post a Comment