ExtJS-Grid Template

Good Afternoon,

I am looking for some hopefully easy assistance,  I am populating a grid with large data sets and using  "XTemplate" to set the grid cell styling.

I am however running into a problem. Some values contain variable data such as 77_testing
What i want to have the template do is if it see's anything that is XXX_testing it will use an alternate template (cell coloring).

On Top of that i am wondering if there is any way that once the cell has been built using an alternate template we can remove the _testing portion from the string and only display the value.

Any help would be greatly appreciated.
Who is Participating?
g3k0Connect With a Mentor Commented:
Typically when I am attempting to change cell coloring or any other type of style attribute in a grid I will use a renderer on the column and test the value there.  That way you can just use javascript to change the TD element by setting the css property of the metadata parameter.  Perhaps your situation truly does require a grid, I don't know.  I may be able to help you if you post your code.
I meant to say "Perhaps your situation truly does require a template, I don't know"
Defunct-ExodusAuthor Commented:
Good Call that did work however for some other reasons i went back to a template and ended up getting it to work.

Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.