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

How to set control's left style in RadGrid's OnFilterMenuShowing event

1 Answer 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 24 Nov 2010, 02:28 PM
OnFilterMenuShowing event of RadGird sets "Left" css style as "this.Control.style.left=e.clientX+document.documentElement.scrollLeft+document.body.scrollLeft+5+"px";"
This will make the filter menu appear next to the current mouse pointer. We are in need of showing the filter menu before the current mouse pointer. Please suggest us how can we override "this.Control.style.left " property.

Attached a rad grid page with filter options enabled in grid header. If the user clicks on the right most filter menu the page is going out of scope. We where tring to show this filter menu before the mouse pointer. Is there a way to do that? Kindly help.

filtermenu_outofscope.jpg 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 29 Nov 2010, 08:48 AM
Hello Saravanan,

RadGrid for ASP.NET AJAX supports adjusting the position of the filter menu based on the viewport bounds. You can refer to the RadGrid Basic Filterin Demo. If you shrink the width and height of your browser window and click on a filter icon close the bottom right edge you will see the position of the filtering menu adjusted. If you are using an older version of RadControls, consider upgrading to the latest to benefit from advanced functionality, better support and constant improvement.

Greetings,
Veli
the Telerik team
Browse the vast support resources we have to jumpstart 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.
Tags
Ajax
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or