Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Apply Style to row after editing [Before postback]
posted

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.

Parents
No Data
Reply
  • 49378
    posted

    Hello Nitin,

    Applying a row style could be achieved by handling the CellValueChanging event of the grid's Editing core:

        <style>
            tbody > tr.editedRow > td
            {
                background-colorgreen;
            }
        </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.

Children