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

2 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    1 posts
    Member since:
    Sep 2010

    Posted 24 Nov 2010 Link to this post

    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 
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 29 Nov 2010 Link to this post

    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.
Back to Top