Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8736
Enabling individual checkbox cell(s) in WebGrid
posted

Hello,


Frequently Asked Question:  How to enable individual checkbox cells in WebGrid based on selection changes in the other cell.


 

Parents
No Data
Reply
  • 8736
    posted

    Solution:


    One possible approach is to use SelectedCellsChange on server side. In this event based on value of the current cell it is possible to enable the adjacent cell.


    I have attached sample that demonstrates the above functionality. Run the sample on your machine and uncheck checkbox in “flag1” column. It will cause post back and enable the editing for adjacent cell of “flag2” column. I have tested the sample using Windows 7 and version the 10.3.20103.2082 of Net Advantage for .NET’s toolset, Visual Studio 2010, C#.NET.


    Hope this helps.


    Thanks,


    Bhadresh

Children
No Data