Anybody worked with Coolite toolkit?
Ho开发者_如何学编程w to add a Coolite child control in a Coolite window?
In ASP.NET(C#) of course!!!
You put the controls in the <Body>
element. Here is an example of a window with an accordion panel and in the first panel there is a color picker.
<ext:Window ID="Window1" runat="server" Title="Child Control Test" Height="300px"
Width="500px" BodyStyle="padding: 6px; background-color: #fff;" Collapsible="True"
Modal="True" Icon="Application">
<Body>
<ext:Accordion ID="Accordion1" runat="server" Animate="true">
<ext:Panel ID="Panel1" runat="server" Border="false" Title="Item 1">
<Body>
Panel 1 Content
<ext:ColorPalette ID="ColorPalette1" runat="server" Width="400" Height="200"></ext:ColorPalette>
</Body>
</ext:Panel>
<ext:Panel ID="Panel2" runat="server" Border="false" Collapsed="true" Title="Item 2">
<Body>
Panel 2 Content
</Body>
</ext:Panel>
</ext:Accordion>
</Body>
</ext:Window>
Here is a screen shot of the result:
Coolite Window with Child Controls http://ryanscook.com/Files/CoolliteChildControl-screen1.jpg
精彩评论