We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to stop loosing row/text formating in batchSave()?

Thread ID:

Created:

Updated:

Platform:

Replies:

142935 Feb 26,2019 11:44 AM UTC Feb 27,2019 07:41 AM UTC ASP.NET MVC 1
loading
Tags: Grid
kalum
Asked On February 26, 2019 11:44 AM UTC

Hi,
I have a grid and Im changing the color of some rows when a cell button is clicked. The grid's edit mode is Batch. Every time i run batchSave() command it looses all the colours of coloured rows. Is there a way to keep row formatings while batchSave()?


$(args.target.closest("tr")).find('td').css("color", "red");

var obj = $("#EventItemsGrid").ejGrid("instance");
obj.batchSave();

Thank you
Kalum

Vignesh Natarajan [Syncfusion]
Replied On February 27, 2019 07:41 AM UTC

Hi Kalum, 
Thanks for contacting Syncfusion support.  
Query: “Every time i run batchSave() command it looses all the colours of coloured rows 
From your query, we understand that you are facing issue with styles applied to row while using batchSave() method. By default while performing actions like sorting, filtering, editing , DOM elements will be refreshed once the process get over. So styles applied to elements during runtime will not be maintained. Hence reported issue occurred. To overcome the reported issue, we suggest you to apply styles using queryCellInfo event or rowDatabound event. So that once the certain operations gets over we will trigger those events and apply styles again. Or else you need to manually apply styles again to rows after saving the changes.    
Refer our API documentation for your reference 
Regards, 
Vignesh Natarajan.  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon