iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
Is there a way to collapse a pane on the server side?
These are WebPaneManager web panes.
Eric
Yes, easy. We have a panel with 2 panes. One is the main pain, and the other pane is seconday.
We have an options page that can allow them to turn that pane off (hide it).
Since the options are stored in a cookie, we need a way to collapse that pane if needed.
Hi Eric,
Maybe for this scenario we can trigger click action on WebPaneManager's grip by using this code on server-side:
ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script language='javascript'>window.setTimeout(function (){document.getElementById('ws_WebPaneManager1_Pane0_V_grip').click();}, 10);</script>");
ws_WebPaneManager1_Pane0_V_grip is Id that you can get from grip's image from WebPaneManager. The collapse progress start when image inside splitter between two have been pressed. So we can trigger the javascript from client-side in server side by using that code. But this just a workaround regarding your problem. We currently enhance WebPaneManager to support HTML5 and it is better if we have elegant method from server-side regarding this matter. If you want, I'll make this as feature request to our developer team. Hope this helps.
Regards,Bernard
Ok really need your help. We want to try this, but i cant seem to find the element Id of that grip.
I have added here the raw html, so if you can tell me how to tell what the grip is, i will test this.
Sorry for my lack. I couldn't find the button from your html that you sent to me. To make this button appear first you must set AllowCollapse property inside the pane that you want to collapse. Then when you run the website, you can see the button in the middle of splitter that shown as an image with ID. You can replace the ID in from the code that I mentioned above with the ID of your splitter button. I also attach the screenshot here. Hope this helps.
hi
your not correct, the splitter is there but it doesnt appear the way you described.
I have enclosed the picture of the screen along with the exact source dump, and the file.
I couldn't find the images in your source dump. Actually you can find the ID by using developer tools in your browser. Then you can select the image element in the middle of splitter (children of td element) beside the Pane that you want to collapse. In image element there's ID that you can put inside this code
ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script language='javascript'>window.setTimeout(function (){document.getElementById('/*change with image ID*/').click();}, 10);</script>");
Here's the screenshot of your source dump when I run it in IE. Sorry for my lack. Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname