Problem with offsetY using server side

2 posts, 0 answers
  1. Martin
    Martin avatar
    13 posts
    Member since:
    Nov 2010

    Posted 25 Oct 2011 Link to this post

    Hi, I have a page with 2 notifications object! Here the scenario, a page with three notifications objects. I have a link button, and by server side i call show of three objects.
    How can i calculate offset for each object is necessary?
    I've implemented "OnClientShowing" and "ONClientHidden", and works fine, but only If i used show notification from client side.
    Any workaround?
  2. Marin Bratanov
    Marin Bratanov avatar
    3563 posts

    Posted 26 Oct 2011 Link to this post

    Hi Martin,

    If you show them all from the server then they will be shown in the same time on the client - when the response is received. This means that you can set the OffsetY server property on the server according to the order you wish them to have. Please note that in order for this to take effect you need to also update the RadNotifications in the AJAX request (if you are not using a full postback). An alternative is to execute a JS function from the server and use your existing client-side logic.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top