I created a treegrid using GXT 3.now iwant to change background color of selected row and also i want to change the background of root node(leaf row i.e Parent row).
iam using GXT 3.0 and eclipse 3.7
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was also having the same problem, I wanted to color the background of a row depending on some condition. In the end, I found a solution:
You need to create a
GridViewConfigand override thegetColumnStylemethod to return the color want, it took me a while to find out, but overriding thegetRowStylemethod doesn’t do the trick, at least not for me.Note: Modify CSS file accordingly.