Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:47:05+00:00 2026-06-06T20:47:05+00:00

I created a treegrid using GXT 3.now iwant to change background color of selected

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:47:06+00:00Added an answer on June 6, 2026 at 8:47 pm

    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 GridViewConfig and override the getColumnStyle method to return the color want, it took me a while to find out, but overriding the getRowStyle method doesn’t do the trick, at least not for me.

    grid.getView().setViewConfig(new GridViewConfig<Model>() {
    
        @Override
        public String getColStyle(  Model model, 
                                    ValueProvider<? super Model, ?> valueProvider,
                                    int rowIndex, int colIndex)
        {
            if ("Other2".equals(model.getName())){
                return "bold";
            }else if ("Other".equals(model.getName())){
                return "red-row";
            }
            return null;
        }
    
        @Override
        public String getRowStyle(Model model, int rowIndex) {
            return null;
        }
    });
    

    Note: Modify CSS file accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a new project using the play console now, by default I got
Created a group of related providers using the provider pattern. Now would like to
Created a simple jquery-nivo-like slider using wpf and want to add an animation between
I created a python server on port 8000 using python -m SimpleHTTPServer . When
Created a simple Webapp using maven: mvn archetype:generate -DgroupId=com.kids -DartifactId=kidsMaven -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false My POM
Created basic C++ DLL and exported names using Module Definition file (MyDLL.def). After compilation
Created using Sphinx 0.6.5. I know Python's documentation uses reStructuredText , but it has
Created a profile using content provider. After running it correctly, added 3 fields to
Created a phonegap application using jQuery Mobile. Everything is working great for the most
Created a data frame: simpleDF<- structure(list(vals = c(NA, NaN, 2)), .Names = vals, row.names

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.