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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.