Multiple RadPanelBar Problem

6 posts, 0 answers
  1. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 29 Feb 2012 Link to this post

    Hi,
    I have a page which is designed with multiple RadPanelBars.its working fine in all aspects except one scenario.

    Problem :
    If I am in bottom of page, and in Last panel bar,If i do a post back then the page focus will go to first radpanelbar or top of page.

    how can I persist the position or focus in bottom of page even after post back

    Ex this is what i want

    Panel A
    ********
    *
    *
    *********
    Panel B
    **********
    *
    *
    **********
    Panel C
    **********
    *
    *
    **********
    Panel D
    **********
    *
    *
    **********
    Button

    As of now when I click on button page focus is going to panel A,even though I was working on Panel D.

    I need focus to be in Panel D ,after post back also

    Thanks,
    A2H
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Mar 2012 Link to this post

    Hello,

    Check the following demo.
    PanelBar / Persist State in Cookie

    Thanks,
    Prinicy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 05 Mar 2012 Link to this post

    Hi Princy,
    Thanks for ur reply.

    I have gone through the link which you provided.But Unfortunately I am not able to understand how will I map this scenario to my req.

    In the examble they are getting the selected item from radpanel bar and displaying it in a label.What I want is I need the focus should be in current panel even after post back.
  5. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 15 Mar 2012 Link to this post

    Hi,
    Anyone pls help me.

    Thanks,
    A2H
  6. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 19 Mar 2012 Link to this post

    Hi A2H,

    One way I could think of is to safe the value of the currently selected RadPanleItem in a separate variable. Then on pageLoad you can get this value and use the focus() method to return the focus to the desired item.

    Regards,
    Kate
    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.
  7. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 16 Apr 2012 Link to this post

    Hi ,
    Thanks for your Support.
    achieved the functionality using a javascript method called "ScrollintoView" methods.
    I have to get reference of a control in panel item thorugh javascript code and set the above property.Works like charm :):) 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017