I'm looking to change the row highlight color after a user has made an edit.
How would I go about doing that? Additionally, I'm not trying to be a jerk, but the online help is rather worthless in the context of building client-side functionality. :(
This doesn't tell me what *.getCell() is or returns.... of if it does, I don't know how to find it. http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/
Hello AnthonyAlmighty,
Let me know if you have furhter questions about your initial post.
Hello HartigenAnthony,
The following link shows the styling guide for "WebDataGrid" -
http://community.infragistics.com/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
You can use it see how the CSS files are applied to the different grid elements.
Alright--getting closer! Cell backgroundColor and Color changes using the below syntax; I can't seem to get the cell color to change though.
/* Does not set background color of the row */
var row = e.getCell().get_row().get_element();row.style.backgroundColor = "#F3E88E";
/* Works!! */
var cell = e.getCell().get_element();cell.style.color = "#800000";
Hi HartigenAnthony,
I tend to agree with you on the tag system, although I feel that way about most forums because it is up to the submitter to tag his post. But I have alerted someone to your feedback.
As to your actual post. This will actually be implemented by default in 11.2. We are adding full batch updating. When rows are edited, added, or deleted, they will get an extra css. So if you can wait, you could do so. If not, I would handle cell value changed or row updating or exited edit mode client event. Respectively off the editing core, editing core, and cell editing. Or templated closed if you're using the row edit template. Then get a reference to the row object and add a css class to the element. The first three events will have a reference to the cell object off the event args. Then just do cell.get_row(). The last one will have a ref to the row. Let me know if you need more help.
-Dave
I'd like to change the class on the row to indicate that a change has occurred in the grid. Users are allowed to inline edit data, sometimes hundreds of rows (time series data). It would be helpful to them to know which rows they changed prior to submission.
Just some quick feedback about these forums, because I know I have your ear. The "tag" system doesn't work too well. At least, I haven't seen how it has improved my ability to find information. You should also open up a "How To" sub-forum for each product. Allow the community to share with each other what they have accomplished. This would be a much more efficient way of finding the code/functionality that I want to implement than posting a question and waiting to hear back.