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

Strange Hide/Show Filtering Behavior

4 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan Moore
Top achievements
Rank 1
Ryan Moore asked on 12 Jan 2009, 03:12 PM
Hello,

I implemented the code similar to the demo at http://demos.telerik.com/aspnet-ajax/Grid/Examples/GeneralFeatures/Filtering/DefaultCS.aspx in regards to the Radio buttons to hide and show filtering.  The problem is, however, that instead of hiding and showing the filtering it is hiding and showing the header columns.  Any idea as to why this could be?

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Jan 2009, 04:18 AM
Hi Ryan,

I am not sure what the problem is? Hope you are trying the same code provided in the demo site.  I tried the same code and it is hiding the entire filter row and not the column headers.

ASPX:
<div> 
            Show filtering item <input id="Radio1" type="radio" runat="server" name="showHideGroup" checked="true" onclick="showFilterItem()" /><label for="Radio1">Yes</label> 
            <input id="Radio2" type="radio" runat="server" name="showHideGroup" onclick="hideFilterItem()"/><label for="Radio2" >No</label> 
        </div> 


JS:
<script type="text/javascript" > 
function showFilterItem() 
    $find('<%=RadGrid1.ClientID %>').get_masterTableView().showFilterItem(); 
 } 
 function hideFilterItem() 
 { 
    $find('<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem(); 
          
 }  
 
</script> 


Shinu
0
Ryan Moore
Top achievements
Rank 1
answered on 13 Jan 2009, 04:22 AM
Yes, the exact same code as the demo - modified only to change the RadGrid ID to the ID we are using.  I don't know what is causing it.  It's baffling. 
0
Princy
Top achievements
Rank 2
answered on 13 Jan 2009, 06:02 AM
Hello Ryan,

I could replicate the same issue wherein my header item was being hidden rather than the filtering item since i was using an older version of RadGrid(2008.1.415.20). But i found this solved when i tried the same with the later versions. Try upgrading your RadGrid control to the latest version, it should help. You may also find the following kb article helpful while upgrading your control to another version.
Updating RadControls for ASP.NET to another version or license

Thanks
Princy.
0
Ryan Moore
Top achievements
Rank 1
answered on 13 Jan 2009, 02:14 PM
I will give that a try.  Thanks!
Tags
Grid
Asked by
Ryan Moore
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ryan Moore
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or