Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I applied columnfilter on datatable and everything is working fine . But the thing is i dont want filters for specific set of columns . say i just need a filter to a column Beside search box Left to it just to filter records using from & to of Date Picker .

I tried like this but its not working .!
                      <th>Lead Id</th>
                      <th>Contact Name</th>
                      <th>Contact Address</th>
                      <th>Lead Source</th>


                        {  },
                        {  },
                        {  },
                        {  },
                        { type: "date-range" }

I just need filter on top which does filter via date picker .

PICTURE : click here for sample picture
or you can try this also

Updated 11-Apr-14 9:07am
Guruprasad.K.Basavaraju 11-Apr-14 10:43am    
Sunil, Guess I couldn't get the issue. Could you please explain ?
sunil gutta 11-Apr-14 12:10pm    
yes i will :) thanks for stopping by n looking into it .
Actually when we use column filter on datatable i am getting textboxes , dropdown or etc what ever in footer . but i dont want this functionality i want to customize like just i want to place the date range filter that too on HEAD or below or beside search box which we get by default . So just need this { type: "date-range" } .. As metioned in the code above if i keep empty {} still i am getting textboxes where i tought i wont ? ? i just need to add one filter on top which does my work strictly date filter . if more clarity required please dolet me know i will give a drawn screeshot ..
sunil gutta 11-Apr-14 15:08pm    
posted exact requirement of my question in picture attached
sunil gutta 14-Apr-14 2:31am    
Guys i done this . Thank you for your support mates . glad you are here . But i facing small issue which i hope please look into it FNRENDER ISSUE :


Share this answer
sunil gutta 12-Apr-14 1:49am    
yes that one useful link but once see the question i attached some image to it .. you can get clear idea what i am looking at . thank you
Download "DataTables v1.9.4" From[^]

Here many type of data table You can select any one.
Share this answer
sunil gutta 12-Apr-14 3:58am    
actually i using 1.9 only thing is i am confused and donno how to set the things excatly to my requirement . Regards . i hope you checked my image ty

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900