- 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 1331 Dormilich 8,658
Recognized Expert Moderator Expert
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
Dormilich 8,658
Recognized Expert Moderator Expert
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
Dormilich 8,658
Recognized Expert Moderator Expert
can you upload that in a better resolution? it’s hardly readable.
fere are the images.... find the files
Dormilich 8,658
Recognized Expert Moderator Expert
those are as small and unreadable as the previous one.
i am using ubuntu so the images are as it is please do something
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 previous record in the table, my question is how exactly do I compare rows in a datatable? I was going to solve the problem with SQL but the database is so poor that it just wasn't viable.
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |