I have searched your documentation for a long time trying to find how to implement a custom grid filter rather than use the built in filters.
I am thinking along the lines of having some text and combo boxes above the grid, together with a "Filter" Button.
Eg. First Name: TEXTBOX Last Name: TEXTBOX Country: COMBOBOX FILTERBUTTON
When the user clicks the FILTERBUTTON, the grid will display records according to the contents of the the above.
I am sure the answer must be somewhere in the documentation as I imagine this is a common requirement, however I just can't find it.
It would be great if you could give me an example or, failing that, point me in the in the right direction.
22 Answers, 1 is accepted
the Telerik team
This works if everthing is to be ANDed but what do I need to do if I want to OR things together? I imagine it must be something to do with setting the LogicalOperator but what ?
As described in the documentation article I have pointed in my previous message, in order to set OR operator, you should use the logic option of the filter descriptor. For example:
Or in your case, you make the following change:
the Telerik team
KendoUI is good enough to buy :-)
Needless to say, I have come across another problem.
How do I filter on a Date field using a Datepicker as one of my filter boxes ?
After several hours trying to work it out, I am beginning to suspect this is more complicated than it would first seem.
I look forward to hearing from you again.
Field_A = 100
(Field_A < 100 AND Field_B = true)
Hoping you notice my question about how to filter on the output from a Datepicker :-)
So, I will create another thread to ask the filter question.
Thank you for your thread. It answers me how to use "and" , "or" for filtering.
However, I still wonder about the complex filter setting.
Meerkat, what is the exact issue you are facing with the DataPicker widget filtering? Here is a simple test page which demonstrates such functionality.
Jan, you can have multiple nested filter descriptors, for example:
the Telerik team
The problem seems to lie in the days and the months being reversed.
I have tried using an en-GB culture but what I did did not seem to work.
It would have been simple to explain if I could have attached my test project but you only allow 2MB.
I wonder if I could ask you to create a project using the code shown below.
I am trying to search on, and display all dates in British format ( 20/06/1997 = 20th June 1997 )
I expect I am missing a setting or something and I am hoping you are going to be able to let me know what I am doing wrong.
Many thanks for your time and patience.
Thus, in order this to work, you should modify the code to use the DatePicker API:
the Telerik team
Many thanks Rosen for your help and explanation of the problem.
Everything works fine now.
I am getting the following error: dataSource is null actually the grid object itself is undefined....
My grid is inside a TabStrip. can you help me on this please.
Also i have a checkbox column in the grid and its by default disabled. How can i enable it.
Thanks in advance
I am still stuck with my problem.
Its really amazing that even the kendo people havent bothered to post a reply of probe for more details regarding my problem.... its bee one week... i am trying each and every one example i came across
The below statements don't work:
var grid = $("#grdName").data("kendoGrid");
the grid is returned as undefined. I urgently need help....
Kendo team can u please step in and help me.....
My grid is inside a tabstrip. I tried using the datasource also. But the data in the dataSource doesnt contain any data that i am retrieving.
Hello, as is probably obvious, I am relatively new to programming and to Kendo UI and am just starting to try to my head around the so called documentation.
From a personal point of view, I feel you have not given anything like enough information for anyone to be able to help.
I suggest you at least include some code that can be reviewed, in order to help someone help you.
As I say, this is only a suggestion, and I may very well be talking a load of rubbish.
If this is indeed the case then please ignore my feeble attempt at trying to help.
I implemented your soluciotion and worked fine, but with a input text outside from the grid.
Could you modify the column header to Eg. First Name: TEXTBOX Last Name: TEXTBOX Country: COMBOBOX FILTERBUTTON as you mention in your first post? and how?
Hope this helps.
Yes, it works, but I need to put the elements txtFirstName, txtLastName,cboCountry inside of the column header, Could you do that? or these elements are outside of the grid?
If I understand your question correctly, you want the textboxes etc to be part of the Column header.
If that is the case then I am afraid I do not know how to do this, although I suspect it is possible.
All I can do is suggest you start a new thread and ask someone far more experience than I am.
Most of the time the people at KENDO UI are very helpful but if you are unlucky, please come back I will try to look into this further for you.