I have a 2010.3 webdatagrid with columns that include one with a dropdownprovider. The grid properties are set such that I can batch the updates with a save button to submit the changes which is working. The problem however I've come accross is a unique situation when changing the dropdown value and then clicking the save button the RowUpdating event (args) does not recognize the change value of that last column change. All other value changes preceeding it are recognized, just not the final dropdown change. If I change the dropdown value and then click in another grid cell, then click the save button it works. Is there some edit mode or something of the dropdown that is not getting updated when after making a selection it looses focus to the click of the button submitting? Any thoguhts how can I fix this to allow changing a dropdown column and proceeding to click a button to submit the changes to always work recognizing the new value?
Jeff-
I would be so grateful if you could show me how you have accomplished batch updating the user changes to the database with a save button. I have been working with tech support and they are unable to show me how to do this. I've been pointed to many examples but none have addressed what I am trying to accomplish. I want to update the database with changes to the grid using manual CRUD and a save button. It's a standard user interface pattern but I'm unable to accomplish the task using webdatagrid. AutoCRUD is no good for this project and I don't want to commit to the db as each row is changed by the user. In most cases I don't know why anyone would want to commit each row as it is changed.
As far as your problem goes.. i did see on another post that someone was having the same problem and captured the last change client side and modified the style of the row which caused the row to be dirty and fire the update event for the row properly.
Steve
I am experiencing the exact same problem. I actually have several columns (3 of them are DropDownProvider) and they all save just fine if another cell is clicked on, but if the value changes in the last one the user touches and then they immediately press the Save button, the last one th user changed does not save the value the user entered.Were you able to get this corrected? I just think it is hard to explain to a user that they will need to click on another cell before saving...but only if the last thing they changed was on a field with a DropDown.
Thanks!
Yes you need to capture the CellEditing_ExitedEditMode client event and put this line of code in. This will fire the grid rowupdated server side event as soon as the cell loses focus.
sender.get_behaviors().get_editingCore().commit();