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

[Solved] GridDateTimeColumn filter boxes too tall

2 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Nov 2009, 05:53 PM
screenshot

I have dynamic filtering set on my grid, so users can turn it on or off.
In IE8 upon first rendering with filters off they look normal, but will hide automatically.

However when calling the rebind, all the date filters double in size.

I cookie the filter choice so it carries over to the next grids they view.

here is my javascript code.  i sure wish there was a server side event for this that would happen in Ajax !

 <script type="text/javascript">  
 
                function pageLoad(sender, eventArgs) {  
 
                    var filter = getCookie("filter");  
                    if (filter != "on")  
                        $find('<%=rgSO.ClientID %>').get_masterTableView().hideFilterItem();  
                        $find('<%=rgSO.ClientID %>').get_masterTableView().rebind();  
 
                }  
 
                function showFilterItem() {  
 
                    var masterTable = $find("<%= rgSO.ClientID %>").get_masterTableView();  
                    masterTable.showFilterItem();  
                    masterTable.rebind();  
                    setCookie("filter", "on", 7);  
 
                }  
                function hideFilterItem() {  
 
                    var masterTable = $find("<%= rgSO.ClientID %>").get_masterTableView();  
                    masterTable.hideFilterItem();  
                    masterTable.rebind();  
                    setCookie("filter", "off", 7);  
                }   
            </script> 




2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Nov 2009, 02:44 PM
Hi David,

I don't know which RadGrid version you are using, but this looks like a problem that we have fixed in the latest versions. Please try using the following CSS rule to prevent the textbox expansion:

.riTextBox
{
       height: auto  !important;
}


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 30 Nov 2009, 05:23 PM
Simple - that did the trick !   - we are 1 version behind on the release code.


Thank You !
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Dimo
Telerik team
David
Top achievements
Rank 1
Share this question
or