Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
How to Change SkinId for Controls inside WebSplitter
posted

Hi, Im using Infragistics v2009.1

i have websplitter as shown below

 

<ig:WebSplitter ID="WebSplitter1" runat="server" Height="200px" Width="300px"
            Orientation="Horizontal">
            <Panes>
                <ig:SplitterPane runat="server" Size="50%">               
                    <Template>
                        <asp:Button ID="btnAdd" Text="Add" SkinID="Add" BackColor="Red" runat="server" />
                    </Template>
                </ig:SplitterPane>
                <ig:SplitterPane runat="server" Size="50%">
                </ig:SplitterPane>
            </Panes>
        </ig:WebSplitter>

 

i Need to change the SkinID of btnAdd to "Save". Change of SkinID is possible only in the Page_PreInit Event. During the Page_PreInit event i can get the WebSplitter control. But i cannot get the Asp button by using WebSplitter1.Panes[0].findControl("btnAdd").

When debugged i found that WebSplitter1.Panes[0].Controls.Count is 0.

Help me please.... :-).