Hello,
I have a grid which I'm using editMode: "row" to edit the data. We have a requirement where the editable columns are dependent on the data. For example, we are sending an extra Field1Readonly and Field2Readonly fields with the grid data. If Filed1Readonly is true, then Field1 cannot be edited. The same goes for Field2. This can vary from row-to-row.
We had an implementation of this working in version 15.2. We are attempting to upgrade to version 17.1, but we are unable to get this functionality to work in 17.1. I couldn't find anything specifically in the release notes that indicated there was a change to the events we are using. One thing that happens now is that the Done button stays disabled most of the time. This appears to be happening because we are canceling the iggridupdatingeditcellstarting event for the fields that we don't want to edit; however, this wasn't an issue in 15.2.
Here is generally what we are doing in 15.2:
Thanks,
Paul
Ok, I changed the code, but still cannot reproduce your issue with the disabled Done button.
Hi Tsanna,
I think I see why you are unable to duplicate the disabled Done button. Your loop in ProductList isn't changing the readOnly attribute, so some of the JQuery we put in is not getting called. In the ProductList class, change
product.Field1ReadOnly = false; product.Field2ReadOnly = true;
to something like this:
product.Field1ReadOnly = i % 1 == 0; product.Field2ReadOnly = i % 1 == 1;
Paul,
The assembly error is probably due to the fact that the version of this assembly in the References folder is different than the version declared in the web.config file. Please check this in your project. Regarding the disabled Done button issue, I'm not able to reproduce it on my side.
If I can help you with something else regarding this matter, please let me know.
Regards,
Tsanna
I'm still having issues. Now the Done button remains disabled again when virtualization is used. If you are seeing something different, then please let me know as I had to merge your changes into my solution.
I've been getting an "Could not load file or assembly 'System.Web.WebPages.Deployment, Version=2.0.0.0," error with the solution you sent. I tried fixing it,but it doesn't seem worth it, so I've just been merging your changes (just so you know in case you are seeing something different).
Attached is a sample for your reference. Also if you didn't notice I modified my previous answer, because I assumed that my explanation wasn't so understandable to you.
If you need further assistance, let me know.