Filtering a column
Filtering a column
Kumar
Posts: 10Questions: 0Answers: 0
Hi,
A.I want to filter column where rows doesn't contain any values(i.e blank), and rows contain some value(i.e values might be anything if rows contain value it should not get filter, if rows doesn't contain value that has to be get filter) presently I am using oTable.fnfilter("",columnindex).please keep me in getting this issue resloved.
B.I want to edit my existing table if my condition match for that How to get my datatable individual row to edit for oTable.
A.I want to filter column where rows doesn't contain any values(i.e blank), and rows contain some value(i.e values might be anything if rows contain value it should not get filter, if rows doesn't contain value that has to be get filter) presently I am using oTable.fnfilter("",columnindex).please keep me in getting this issue resloved.
B.I want to edit my existing table if my condition match for that How to get my datatable individual row to edit for oTable.
This discussion has been closed.
Replies
I have one Question that fnfilter(); doesnot perform operation exactly on data of column,
Example:
I have 4 rows
123.12
123.12.34
123.12.34.5
123.12.34.6
My Question is If i use oTable.fnfilter('123.12');
result: I am getting all 4 rows instead of 1 row, Means filter doesnot happening exactly what we required.
Thanks,
Kumar
Allan
Kumar
kumar shop
Kumar slpshop
kumar warshop
kumar kkpshop
If i filter "kumar shop", I am getting all 4 rows instead of one row(kumar shop).
Its not filter on particular word.
Thanks,
Kumar N
where shopName is dynamically
if shopName has (1.kumar shop, 2. kumar KMPshop, 3.kumar MOAshop)
if I filter based on "kumar shop", I am getting all three records like (1.kumar shop, 2. kumar KMPshop, 3.kumar MOAshop).
Kindly help me out in resolving this issue.
Thanks,
Kumar N
where shopName is dynamically
if shopName has ("kumar shop", "kumar KMPshop" , "kumar MOAshop")
if I filter based on "kumar shop", I am getting all three records like ("kumar shop", "kumar KMPshop" , "kumar MOAshop").
Kindly help me out in resolving this issue.
Thanks,
Kumar N
http://live.datatables.net/ujibug/7/edit
(P.s. should the regex not contain \s for whitespace?)
Profit ($)
kumar (shop)1000
kumar (slpshop)2000
kumar warshop3000
kumar kkpshop4000
Made above change and try to filter "kumar (shop)", It wont work.
Checked in ur live example.
Please let me know the solution for this.
Thanks,
Kumar N