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
I am trying to loop through the intersoft controls controls in the code behind and changing their properties runtime depending on a condition. I have all these intersoft controls put in div tag, so I looped through the div control to get to the actual intersoft control.
I am able to get to the WebPaneManager and change its properties runtime but I am not able to get the Web Nav Pane and Web Grid.
The code below is what I am using to achieve the above scenario. Please advise me of how can I loop through other controls and set their values dynamically on runtime.
Dim myForm As Control = Page.FindControl("Form1") Dim ctl As Control For Each ctl In myForm.Controls If ctl.GetType().ToString().Equals("System.Web.UI.HtmlControls.HtmlGenericControl") Then Dim dCtl As Control For Each dCtl In ctl.Controls If dCtl.GetType().ToString().Equals("ISNet.WebUI.WebDesktop.WebPaneManager") Then If CType(dCtl, ISNet.WebUI.WebDesktop.WebPaneManager).Visible = True Then CType(dCtl, ISNet.WebUI.WebDesktop.WebPaneManager).PaneSettings.ContainerStyle.BackColor = Color.Black End If If dCtl.GetType().ToString().Equals("ISNet.WebUI.WebDesktop.WebNavPane") Then If CType(dCtl, ISNet.WebUI.WebDesktop.WebNavPane).Visible = True Then CType(dCtl, ISNet.WebUI.WebDesktop.WebNavPane).BackColor = Color.Black End If End If If dCtl.GetType().ToString().Equals("ISNet.WebUI.WebGrid.WebGrid") Then If CType(dCtl, ISNet.WebUI.WebGrid.WebGrid).Visible = True Then CType(dCtl, ISNet.WebUI.WebGrid.WebGrid).BackColor = Color.Black End If End If Next End If Next
Hi naga,
I don't think this method can be used for this scenario. If you put this method on Page_Load, our control has been created in client-side. However, you can use PreRender server side event for each our control to achieve this scenario. In PreRender you can set any configuration in our controls so it will rendered like you want. However, please consider the life cycle of our product so you can put the configuration in exact event. For example, you can use InitializeDataSource event to change the data inside WebGrid or you can use PrepareDataBinding event to change the structure of WebGrid. Please let me know if you have any further question. Hope this helps.
Regards,Bernard
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