Exapaning Sliding Zone from Server Side

9 posts, 0 answers
  1. Shathish Kumar
    Shathish Kumar avatar
    5 posts
    Member since:
    Dec 2005

    Posted 13 Nov 2007 Link to this post

    hai
    on postback i wan to show the radslidingpane expanded. but i couldnt find any server side properties for that
    is it possible to do this at all
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 13 Nov 2007 Link to this post

    Hi Shathish Kumar,

    I prepared an example which demonstrates how to achieve the desired functionality. You should register client script at page's post back event and expand the sliding pane via javascript function. Please, find the example attached.

    Let me know if you need further assistance.

    All the best,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shathish Kumar
    Shathish Kumar avatar
    5 posts
    Member since:
    Dec 2005

    Posted 14 Nov 2007 Link to this post

    Hi Sophy
    Thanks for the speedy reply
    i did as written in ur sample code-but the $find doesnt seem to work
    when i try this 
        var slidingZone = $find("<%= RadslidingZone1.ClientId %>");
        alert(slidingZone);

    i am getting a null value
    because slidingZone is null the rest of the code is not working
    am i missing some directives to make $find work-cos i havent used $find before
  5. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 14 Nov 2007 Link to this post

    Hello Shathish Kumar,

    var slidingZone = $find("<%= RadslidingZone1.ClientId %>"); may return null value for the slidingZone if RadSlidingZone1 has not been rendered on the page. For example, if you execute this script before RadSlidingZone has been loaded.

    One thing I noticed in the line var slidingZone = $find("<%= RadslidingZone1.ClientId %>"); is the letter 's' in RadslidingZone1 being in lower case. Does the sliding zone at the page have 'RadslidingZone1' as id?

    Would you please check how you have registered the script which expands the sliding pane when a post back event occurs? You need to use Sys.Application.add_load(expandSlidingPane); when registering the script as it is shown in the ExpandedSlidingPaneOnPostBack.aspx.cs page.  When testing the page I had sent you do you experience the problem slidingZone having a null value or you experience it only with your own project?

    In case you are not able to find the reason for experiencing the problem by yourself, please, send me your application and I will do my best to help you.

    Best regards,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Shathish Kumar
    Shathish Kumar avatar
    5 posts
    Member since:
    Dec 2005

    Posted 14 Nov 2007 Link to this post

    hai
    your page works
    so i looked carefully at my page and realized whats the difference
    i have a grid and the grid has a hyperlinkcolumn-when the link is clicked i want to show the sliding pane with the details of the grid item in the controls within the sliding pane
    all the details are being filled in the correct controls-except the pane is not showing in expaned mode
    but i realized that clicking a hyperlink is not a postback but a new page request
    will that fact have any effect in the code u send me
    thanks
  7. Shathish Kumar
    Shathish Kumar avatar
    5 posts
    Member since:
    Dec 2005

    Posted 14 Nov 2007 Link to this post

    hai
    your page works
    so i looked carefully at my page and realized whats the difference
    i have a grid and the grid has a hyperlinkcolumn-when the link is clicked i want to show the sliding pane with the details of the grid item in the controls within the sliding pane
    all the details are being filled in the correct controls-except the pane is not showing in expaned mode
    but i realized that clicking a hyperlink is not a postback but a new page request
    will that fact have any effect in the code u send me
    thanks
  8. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 15 Nov 2007 Link to this post

    Hello Shathish Kumar,

    Would you please open a support ticket and send me a simple running project with your scenario and I will do my best to modify it so that the sliding pane is expanded when the hyperlink is clicked? For your convenience I have attached a screenshot containing instructions on how to open a support ticket.

    Best wishes,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 13 Jun 2012 Link to this post

    Exact same problem..
    (This would work, done it before, but the linked grid breaks it...)
    Was this resolved?
  10. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 13 Jun 2012 Link to this post

    Replying to my own post, because I just found a
    wrokaround.

    The idea came, because since Q2 2011, the tooltip caught this same uncurable disease:
    it needs a JS setTimeout.
    (Version in use at the time of this post: 2012.1.411.35)

    function dockSlidingPain(slidingZoneClientID,clientID) {setTimeout(function () {$find(slidingZoneClientID).dockPane(clientID);;}, 20);}
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017