Hi,
Im using a WebDataGrid, trying to implement Batch Update. Issue that Im facing is after editing a row , I couldn't able to apply styles to the respective row.The styles need to be applied BEFORE POSTBACK. The reason why this need to be done is the grid will contain 50 records and the end user need to be aware of the changes. Is this possible? Im using 11.1V infrgistics.
Thank you Petar for the solution. Its working as expected.
Hello Nitin,
Please feel free to contact me if you have any further questions regarding this matter.
Applying a row style could be achieved by handling the CellValueChanging event of the grid's Editing core:
<style> tbody > tr.editedRow > td { background-color: green; } </style> <script type="text/javascript" id="igClientScript"> function WebDataGrid1_Editing_CellValueChanging(sender, eventArgs) { eventArgs.get_cell().get_row().get_element().className = eventArgs.get_cell().get_row().get_element().className + " editedRow"; } </script>
Please note that BatchUpdating has been added as a feature to WebDataGrid in versions after 11.2, therefore you may want to consider upgrading to a newer version.
Do not hesitate to contact me with any updates or questions.