- var cellclass = function (row, columnfield, value)
-
{
-
-
//alert("row==>"+row+"column==>"+columnfield+"value===>"+value);
-
var oldValue="";
-
-
//alert(valueOfPrevious);
-
if (row == "0") {
-
oldValue=value;
-
colorValue='red';
-
return colorValue;
-
}
-
else
-
{
-
colorValue='red';
-
var data = $('#new_grid_data2').jqxGrid('getrowdata', row - 1); ///
-
var valueOfPrevious=data.ips;
-
//alert(valueOfPrevious);
-
var currValue=value.substr(0,value.lastIndexOf(".")+1);
-
//alert(value+"=====>"+currValue);
-
var previousValu=valueOfPrevious.substr(0,valueOfPrevious.lastIndexOf(".")+1);
-
-
if (currValue==previousValu)
-
{
-
-
if(colorValue=="red")
-
{
-
//colorValue="red";
-
return 'red';
-
-
}else {
-
-
colorValue="";
-
return '';
-
-
}
-
}
-
else {
-
if(colorValue=="")
-
{
-
colorValue="red";
-
//return '';
-
-
}else {
-
colorValue="";
-
//return 'red';
-
-
}
-
//colorValue="";
-
return colorValue;
-
-
}
-
}
-
-
if (value < 20) {
-
return 'red';
-
}
-
else if (value >= 20 && value < 50) {
-
return 'yellow';
-
}
-
else return 'green';
-
}
10 1312
what problems do you experience?
i am comparing ips which are in a single column
see the below structure here Ref_ip & Ref_irl are two coloumns
Ref_ip Ref_url
1.1.1.1 1
1.1.1.2 1
1.1.1.3 1
1.2.2.1 1
1.2.2.2 1
1.2.2.3 3
so as you can se i have ips like this if i have ip's like this those are same i have want to change the colur of the row ..i am only comparing 1.1.1 & if they are same then colur should be chaged to red
so as you can se i have ips like this if i have ip's like this those are same i have want to change the colur of the row ..i am only comparing 1.1.1 & if they are same then colur should be chaged to red
sorry, I didn’t understand that explanation. can you elaborate?
form image you can see tht there is column called REFERRING IP it contains some ip addresses but from filter when i give some value for eg 2 then all ips having same ips adgreses except last address shoule come one below anothe and their colour should change to red
exmple:- 101.101.101.111
101.101.101.112 these ip row color sholud change to red
this is screen shot.... refer it
can you upload that in a better resolution? it’s hardly readable.
fere are the images.... find the files
those are as small and unreadable as the previous one.
i am using ubuntu so the images are as it is please do something
Nothing can be done if there's no good information to work with. If the screenshots are too small, try typing out the data instead.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: raju |
last post by:
hi
can we compare two integers without using relational operators (== != <
<= > >=)
thanks
rajesh s
|
by: hiteshmangal |
last post by:
Hi,
How I can compare 2 xml files using c#.net.
Thanks,
Hitesh
|
by: Spoogledrummer |
last post by:
Hi, I'm working on a report that uses a gridview to display the information, I've got to the rowdatabound part where I need to blank out some repeated fields if the values are the same as that of the...
|
by: fishjelly |
last post by:
How to open new window through linkButton without using javacript?...
|
by: ronakinuk |
last post by:
how to insert multiple rows in excel using vba
how to insert multiple rows in excel using vba
how to insert multiple rows in excel using vba
|
by: johnson1314310 |
last post by:
duplicate rows occurring when using inner join,i want to join a table value to another table..
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |