Replies
Thanks Stamen, this works nicely.
Also, thanks for your very detailed analysis on this issue. This information is very helpful.
Thanks,
Paul
Hi Stamen,
Thanks for the update. Everything is working as expected in the test solution after adding your scripts. We'll update this in our production product and let you know if we have any more issues.
One minor thing we encountered is that setting ExcelNavigationMode to true in the GridUpdating feature does not appear to work anymore. When Enter is pressed after editing a row, the next row is not edited as expected. This is not a big deal and we can live without this feature if there is not an easy way to fix this.
Also, we were able to get the original solution working again after uninstalling and reinstalling Microsoft.AspNet.Mvc.
Thanks,
Paul
Sorry, I sent the wrong code. Instead change it to the following:
product.Field1ReadOnly = i % 2 == 0;
product.Field2ReadOnly = i % 2 == 1;
After doing this, click on row #1, Field2. Then click on row #2, Field1. Change the value in Field1 and the Done button will remain disabled.
Thanks,
Paul
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;
Thanks,
Paul
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).
Thanks,
Paul
Hi Tsanna,
Sorry, but I can't seem to get this to work. Where should I be adding this logic? If I add it to iggridupdatingeditrowstarting, then I get a console error (I think because the editor is not yet initialized). If I add this to iggridupdatingeditrowstarted, then it doesn't seem to do anything and I still have the same issue with the scrolling.
Thanks,
Paul
Hi Tsanna,
Thanks for your solution. This works nicely and I was able to get validation to work as well. The only issue I'm having now is that when "grid.igGridUpdating("option", "columnSettings", updatingFeature.options.columnSettings);" is called, the scrolling resets to the top for the grid. This appears to be because I'm using virtualization in my main solution.
I couldn't get the solution that you sent me to work (I did integrate this code successfully in our main solution though). To duplicate the scrolling issue, just uncomment the //Virtualization section in the HomeController. I also added 50 more rows to the grid: