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,
Looking over the samples, the RenderControl method looks like the appropiate choice for this. I need to reset some controls visibility after the grid refreshes/sorts. I have a button that's initially invisible and want to turn it visible during the InitializePostback event when the action matches sort/refresh.
<asp:Button id="btnInc" runat="server" Text="Increment Vessel" OnClick="btnInc_Click" Visible="false" />
And my handler declaration...
protected void InitializePostback(object sender, PostbackEventArgs e) { btnInc.Text = "Dummy"; btnInc.Visible = true; wgTest.ClientAction.RenderControl(btnInc); }
This is not working as is... what am I missing?
Thanks
As far I know, when you set Visible=false at page load, you could not change it directly into true in FlyPostBack. Visible state properties only can be used fully if the page do FullPostback because Visible properties contains some informations of the control state besides rendering process. I suggested you to hide the button by setting display style into none. When FlyPostBack request, add display="" in the style.
protected void WebGrid1_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e) { Button1.Style.Add("display", ""); WebGrid1.ClientAction.RenderControl(Button1); }
Regards,Handy
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