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

FilterMenu loses its style on customization

2 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anup
Top achievements
Rank 1
Anup asked on 20 Mar 2012, 07:12 PM
Hi,

I have been trying to customize the FilterMenu items for different columns in a RadGrid. I want it based on the Data Field associated with the column. I am able to implement it but the problem is with the behavior of the menu items. Items seem to be clipped inside the menu. I mean the hover effect is not properly setting the background color of the current item. Although, on removing the javascript code (to hide the filter functions), the filter menu behaves as expected.

I am attaching the snapshots. I have used the code used in this demo :
http://www.telerik.com/help/aspnet-ajax/grid-reducing-filtermenu-options.html

I want to customize the FilterMenu items based on the column name, Left align them and have a constant look and feel(as described in snapshots) for the hover effect.
Any form of help will be appreciated.

Regards,
Anup

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 23 Mar 2012, 05:20 PM
Hi Anup,

It is something that we seem to have missed in the example - when the menu items are hidden, the menu needs to be repainted, so it can recalculate its width based on the new widest item. Just add a call to menu.repaint() at the end of the MenuShowing function. 
We will add this in the next upload of our documentation.

Regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Anup
Top achievements
Rank 1
answered on 26 Mar 2012, 12:16 PM
Hey Tsvetina,

Thanks alot. This worked. :)
Tags
Grid
Asked by
Anup
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Anup
Top achievements
Rank 1
Share this question
or