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

Hide Filter Row

1 Answer 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anumeha
Top achievements
Rank 1
Anumeha asked on 14 Sep 2010, 08:18 PM
I need to hide my filter row but still enable filtering in the grid so that it can be controlled from outside the grid.
I was able to hide the filter row by using this js:

function

 

GridCreated(sender, args)
{

 

 

    sender.get_masterTableView().hideFilterItem();

 

}

However, the filter row flashes for a moment while the grid is rendering. Once the grid is rendered the row disappears. This flash of the filter row is bothering.

Could you tell me how to avoid this mometary display of the filter row.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Sep 2010, 09:53 AM
Hello Anumeha,

You can do the following:


<telerik:RadGrid  CssClass="HiddenFilter"  />


CSS

.HiddenFilter  .rgFilterRow
{
      display: none ;
}


JS

function GridCreated(sender, args)
{
    sender.get_masterTableView().hideFilterItem();
    Sys.UI.DomElement.removeCssClass(sender.get_element(), "HiddenFilter");
}


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
Tags
Grid
Asked by
Anumeha
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or