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

Filter Row not getting collapsed

2 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Niraj
Top achievements
Rank 1
Niraj asked on 06 Jan 2011, 08:27 AM
Hi,

I have a problem with collapsing the filter row.  I have set the filter item row visibility to hidden as well as to collapsed. The filter item gets hidden but the containing row still exists. Could help me out with this?


Thanks and Regards,
Niraj Khose

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 06 Jan 2011, 02:54 PM
Hi Niraj,

You can try hiding the filter item in the grid on the client (using the hideFilterItem() method from its client-side API as in this demo). Note that you can invoke these methods intercepting the OnGridCreated client event (for example).

Please examine the code snippet below and see if it helps:
ASPX
<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");
}

Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Niraj
Top achievements
Rank 1
answered on 07 Jan 2011, 04:09 AM
Pavlina,
 Thanks a lot. It worked just fine.

Regards,
Niraj Khose
Tags
Grid
Asked by
Niraj
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Niraj
Top achievements
Rank 1
Share this question
or