I'm using v13.2 of the webdatagrid. My browser is IE11.
The grid has approx. 100 row and 20 columns.
My first column is an unboundcheckboxfield.
My problem:
When i use the 'Activation'-behaviour and i quickly check the checkboxes, it keeps unchecking some of the checkboxes.
It looks like the grid is executing a proces which isn't finished fast enough, so therefore all the checks that are done during the proces are not registered bij the grid.
When i remove the 'Activation'-behaviour the checking works perfect, but i need to be able to select a row and use the arrow-keys to browser the grid.
Please help. Thanks in advance.
Hi Rob Kroot,
Thank you for posting in our forums!
Could you please let me know what are some of the other properties and behaviors you have set on your WebDataGrid? Would you be able to provide your markup or a sample? The unfinished process you see, is likely a postback. Does it help if you set the BatchUpdating property of the EditingCore behavior to true if it is not already set?
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I set a WebDataGrid with 100 rows and 20 columns with the first column being an UnboundCheckBoxField and activated CellEditing and Activation behaviors. When I use the arrow keys and spacebar to rapidly check off columns, I do not see any instances where the checkboxes become unchecked.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using IE11 with version 13.2.20132.2028 in Infragistics for ASP.NET 2013 Volume 2.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Hi Michael,
I've adjusted the sample to my situation.
Thanks for modifying the sample. I've been able to reproduce the issue with this.
As I suspected, this is due to postbacks occurring when the changes are made to each row. Changes will commit immediately to your data source as you lose focus on the edited row. For a row to obtain or lose focus, you must have the Activation behavior enabled. Since it takes time for the postback to hit the server and come back, the state of the grid has changed by the time the response is received.
You can solve this by setting the EditingCore's BatchUpdating property to true to prevent updates from automatically occurring. This will require the user to cause a postback in some other form for the data to be committed to the server, such as with a button, or focusing off of the bottom row of the grid and triggering the postback yourself by calling commit().
For this to work, you would also need to disable the CellSelectionChanged and ActiveCellChanged AutoPostbackFlags you have set on the Selection and Activation behaviors, as these will also cause postbacks each time a cell is selected. Is there some reason you need to postback each time the cell selection/activation changes? There could be a better solution than enabling these flags.
If you have any further questions or concerns with this, please let me know. Looking forward to hearing from you.
I checked my solution and i don't need the postbacks. Enabling te batchupdate workt perfect.
Thanks for the help!