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,
I have a problem making stack buttons invisible at runtime.My code blog is like this-->
i can catch both buttons, there is no exception thrown, but while i can set buttons visibility to collapsed, i cannot do that at stackbuttons.
i could remove them by this code
but.StackButtons.RemoveAt(0);
Hi Berkay,
First of all, may I know on which side do you want to perform this action? Does it from server side (FullPostBack) or client side?
From what I see on your code, it seems that you are trying to do this on server side, please correct me if I am wrong. However, if we call any FullPostBack action, I am pretty sure that the WebFishEye will re-render again and the stack button will be automatically collapsed.
It would be different it you are using FlyPostBack Manager. So, could you kindly give me more specific information regarding your scenario and I will investigate it furthermore. Thank you and have a nice day.
Best Regards,
Andi Santoso
The Problem is obvious, which is;
While I can set the visibility of Buttons to Visible by the same code, why can't I do that to stack buttons.
WebFishEyeButton.Visibility=Visibility.Collapsed works
but
WebFishEyeStackButton.Visibility=Visibility.Collapsed doesn't work
Based on my discussion with the developer, StackButton visibility property will not work because it is only the control model, in order for the visibility property to work you will need to set it to the control element.
My test show modifying visibility will work during WebFishEyeButton click event handler. However, there will be an empty space where the stackbutton resides. Here is the snippet if you would like to try it yourself:
private void FishEye1_ButtonClick(object sender, ISNet.Silverlight.WebAqua.WebFishEyeButtonEventArgs e){ if (e.Button.ItemName == "btnSearch") { Storyboard toolbarDelay = new Storyboard() { BeginTime = TimeSpan.FromSeconds(0.1) }; toolbarDelay.Completed += (s, evt) => { ((WebFishEyeButton)e.Button).StackButtons[0].GetButtonElement().Visibility = System.Windows.Visibility.Collapsed; }; toolbarDelay.Begin(); }}
For such scenario we suggest removing the stackbutton in order to display the stackbutton correctly.
If you are interested, we will release WebUI Studio 2010 R1 RC that will inlcude new version of our Silverlight product soon. Please check http://www.intersoftpt.com regularly for further details regarding our RC.
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