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

Exapaning Sliding Zone from Server Side

8 Answers 92 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Shathish Kumar
Top achievements
Rank 1
Shathish Kumar asked on 13 Nov 2007, 03:36 PM
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

8 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 13 Nov 2007, 04:48 PM
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
0
Shathish Kumar
Top achievements
Rank 1
answered on 14 Nov 2007, 11:22 AM
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
0
Sophy
Telerik team
answered on 14 Nov 2007, 01:20 PM
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
0
Shathish Kumar
Top achievements
Rank 1
answered on 14 Nov 2007, 02:27 PM
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
0
Shathish Kumar
Top achievements
Rank 1
answered on 14 Nov 2007, 02:27 PM
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
0
Sophy
Telerik team
answered on 15 Nov 2007, 08:06 AM
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
0
Nicolaï
Top achievements
Rank 2
answered on 13 Jun 2012, 06:48 AM
Exact same problem..
(This would work, done it before, but the linked grid breaks it...)
Was this resolved?
0
Nicolaï
Top achievements
Rank 2
answered on 13 Jun 2012, 07:26 AM
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);}
Tags
Splitter
Asked by
Shathish Kumar
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Shathish Kumar
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Share this question
or