Hello,
I have a grid with a column containing booleans. I am using the new 9.1 feature and display a checkbox in this column header. What I want to have is the datasource being updated immediatly after the user click on a checkbox in a cell or in the header.
I have been able to reach my first goal (cell update) by handling the CellChange event and calling in the handler "e.Cell.Row.Update();"
Yet I can't seem to be able to update the datasource when the user click on the checkbox in the header. I have tried to handle the AfterHeaderCheckStateChanged event and call "this.ugFields.UpdateData();" but the edit symbol is still shown in the row headers. I have seen that in the sample the update is not performed immediatly either! The only way to commit the changes is to click on every row and leave them... That's definetely not convenient, at least in my scenario...Am I missing something here?
Thanks in advance.
Regards,
Damien
Hello Damien,
In a recent change, we altered to order in which the BeforeHeaderCheckStateChanged and AfterHeaderCheckStateChanged events fire relative to the cell synchronization. Currently, the synchronization occurs after the AfterHeaderCheckStateChanged event fires. However to accommodate situations like yours, we decided to have the synchronization occur before the firing of the AfterHeaderCheckStateChanged event.
Once the service pack containing this change is available, you should be able to call Update() on each UltraGridRow in the RowsCollection provided in the AfterHeaderCheckStateChanged event. I have forwarded this information to our Developer Support department, so a support case will be generated and you will be automatically notified when the service pack is available.
If there is anything else you need assistance with, feel free to ask.
Thanks,
Chris.
Hello Chris,
Iguess I just have to wait now! Thanks for your answer and the "synchronisation" with the support department (really appreciated).
Best regards,
How to get the latest service release - Infragistics Community
can you tell us which is this SERVICE RELEASE?
Marova
I just wanted to say I have received the Service Release today and everything works now!
Thanks again for your help.