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

  • SEARCH
  • Home
  • 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 3963330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:12:08+00:00 2026-05-20T03:12:08+00:00

I use the following line at the $(document).ready( $(#stSearchTermsGrid).setCell(2, 2, ”, {color:’red’}) ; but

  • 0

I use the following line at the $(document).ready(

$("#stSearchTermsGrid").setCell(2, 2, '', {color:'red'}) ;

but it doesn’t work. Did I write it in a wrong way or placed it in the wrong place.

I know this question has been asked more than once before and this is how I got the first line. But I am still not able to do it and not knowing where the problem is.

  • 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-05-20T03:12:09+00:00Added an answer on May 20, 2026 at 3:12 am

    You are right you are not the first person who ask the question. To clear the situation with the cell color I made the demo

    enter image description here

    for you which change the text color of the cell or the background color of the sell in different ways:

    loadComplete: function() {
        // 2 is zero-base index of the column 'name' ('Client'). Every from the options
        // multiselect:true, rownumbers:true and subGrid:true will increase
        // the index by 1 because the option inserts additional columns
        $("#6 td:eq(2)", grid[0]).css({color:'red'});
    
        grid.jqGrid('setCell',"12","name","",{color:'red'});
        grid.jqGrid('setCell',"10",'name', '', 'my-highlight');
        grid.jqGrid('setCell',"8",'name', '', 'ui-state-error ui-state-error-text');
    
        grid.jqGrid('setCell',"4","name","",{'background-color':'yellow',
                                             'background-image':'none'});
        grid.jqGrid('setCell',"3","name","",'ui-state-highlight');
    }
    

    where

    <style type="text/css">
        .my-highlight { color: red; }
    </style>
    

    and “3”, “4”, “6”, “8”, “10” and “12” are th rowid of the rows where the color of the corresponding column will be changed.

    By the way my personal favorites are the ways using ‘ui-state-highlight’ or ‘ui-state-error ui-state-error-text’ classes which are the part of the jQuery UI Themes.

    UPDATED: To understand the difference of the usage of different methods in case of the usage of another jQuery UI Theme I added one more demo used La Frog Theme where the same table as above look like the following:

    enter image description here

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

Sidebar

Related Questions

I have the following line of jQuery but it seems like overkill to use
I just made my first .net website. I'm trying to use the following line
I use SmartGwt and I have the following line: formItem.getForm().getField(report_date).getValue().toString(); This returns something like
I am trying the run the following code: $(document).ready({ $(#menu-nav a).hover( function () {
I have the following code $this->addScript('<script type=text/javascript> $(document).ready(function() { alert(dsf); }); </script>'); Is it
I use following style attribute so when i will start typing in text box
I use following code: Create a retry policy, when error, retry after 1 second,
I just use following code to add an image to my project, var paper
When i use following: var child:DisplayObjectContainer = dso.getChildAt( dso.numChildren -1 ) as DisplayObjectContainer; trace(child);
for example i use following command to find a record SELECT `users`.`mail` FROM `users`

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.