﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - Not able to loop throgh the Intersoft controls in runtime to change their properties dynamically</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Not-able-to-loop-throgh-the-Intersoft-controls-in-runtime-to-change-their-properties-dynamically/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Not able to loop throgh the Intersoft controls in runtime to change their properties dynamically</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Not-able-to-loop-throgh-the-Intersoft-controls-in-runtime-to-change-their-properties-dynamically/</link><pubDate>Thu, 16 May 2013 23:46:19 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi naga,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Not able to loop throgh the Intersoft controls in runtime to change their properties dynamically</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Not-able-to-loop-throgh-the-Intersoft-controls-in-runtime-to-change-their-properties-dynamically/</link><pubDate>Thu, 16 May 2013 08:27:37 GMT</pubDate><dc:creator>naga</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;pre&gt;                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&lt;/pre&gt;
</description></item></channel></rss>