Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing color of particular row #1427

Open
anilpomar opened this issue Jul 24, 2014 · 4 comments
Open

Changing color of particular row #1427

anilpomar opened this issue Jul 24, 2014 · 4 comments

Comments

@anilpomar
Copy link

I need to change the background of certain row in jtable. Where and how should i proceed .

The exact scenario in am binding data from database to jtable where data has active and inactive records and now i have check box to get inactive records in jtable

@Webmaster-OT-Martigues
Copy link

Hello, ( sorry for my english, I'm french )

It requires an amendment to a CSS file. jtable.css at line 285

div.jtable-main-container > div.jtable-title .jtable-close-button {
left: 8px; <- LEFT OR RIGHT
top: 8px;
bottom: 8px;
position: absolute;
opacity: 0.5;
filter: alpha(opacity=50);
background: url('../../metro/close.png') no-repeat;
width: 16px;
height: 16px;
}

Voila ;)

@anilpomar
Copy link
Author

anil_pomar@dell.
On Jul 24, 2014 8:36 PM, "ZeCrusher" notifications@github.com wrote:

Hello, ( sorry for my english, I'm french )

It requires an amendment to a CSS file. jtable.css at line 285

div.jtable-main-container > div.jtable-title .jtable-close-button {
left: 8px; <- LEFT OR RIGHT
top: 8px;
bottom: 8px;
position: absolute;
opacity: 0.5;
filter: alpha(opacity=50);
background: url('../../metro/close.png') no-repeat;
width: 16px;
height: 16px;
}

Voila ;)


Reply to this email directly or view it on GitHub
#1427 (comment).

@Webmaster-OT-Martigues
Copy link

  • Did you find the solution ?

@hikalkan
Copy link
Member

Hi,

Use rowInserted event (http://jtable.org/ApiReference/Events#event-rowInserted). Check data.record and manipulate data.row.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants