This is a migrated thread and some comments may be shown as answers.

Custom filtering interface without icons ?

4 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pat
Top achievements
Rank 1
Pat asked on 18 Jan 2011, 07:58 PM
I just want to have a few textboxes for allowing users to search.  But from javascript, I'm not allowed to set the filter unless I also turn on filtering which then shows the icons.

How can I hide the filtering icons?

4 Answers, 1 is accepted

Sort by
0
Pat
Top achievements
Rank 1
answered on 18 Jan 2011, 08:10 PM
Never mind, figured it out.

In order to use the javascript 'grid.filter()' function, it seems Filterable() needs to be set at the server.  But I was able to say in javascript grid.filterby='custom filter clause' and that worked.  The ajax action got the request with the filter criteria.
0
Matt
Top achievements
Rank 1
answered on 29 Apr 2011, 01:55 AM
Pat,

Are you able to send over your JS, I would like to do the same operation to include additional parameters in the ajax request call to the server.

Cheers
matt.
0
Dimo
Telerik team
answered on 29 Apr 2011, 07:41 AM
Hello,

If needed, the filter icons in the Grid header can be hidden easily with CSS:

.t-grid .t-grid-filter
{
      display: none;
}

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pat
Top achievements
Rank 1
answered on 29 Apr 2011, 06:39 PM
My files are too custom for my app

In javascript
1) I get the grid control: 

    grid = $("#InvoicesGrid").data("tGrid");


2) Then I build up a filter string: 

    filter="InvoiceDate~ge~'1/1/2011'";


3) Then I set it and I have the grid go back to page 1

    grid.filterBy = filter;

    grid.pageTo(1);


I really hate pasting into forums....... Text always gets messed up.

Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Pat
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or