View Full Version : [CLOSED] How does TableLayout() object works ??;

Oct 16, 2008, 12:48 PM
hi everybody

i have been working with the coolite controls in code behind i found examples and i still find out how does this object (pnlNorth.Content = new TableLayout()) work? because in HTML code itīs like this

<ext:Panel ID="pnlNorth" runat="server" Height="80" Border="false" Header="false" BodyStyle="background-color: transparent;">
<div id="settingsWrapper">
<div id="settings">
<li id="itemAddContent"><a href="#">Add contet</a></li>
<li id="itemComments"><a href="#">Coment</a></li>
<li id="itemActivities"><a href="#">Activities</a></li>
<li id="itemContacts"><a href="#">Contacts</a></li>

<div id="pageTitle">example page


and works great i want it to do the same in the code behind but i donīt understand how can i put code in the content because this //pnlNorth.Content = new TableLayout() is commented

code behind

// Make Panel for North Region

Coolite.Ext.Web.Panel north = new Coolite.Ext.Web.Panel();
north.ID = "NorthPanel";
north.Title = "North";
north.Height = Unit.Pixel(45);
north.Border = true;
north.Header = false;
north.BodyStyle = "background-color: transparent;";
north.Html = "Example";

//north.Content = new TableLayout();

THe question is how can i place code into that object or how does it work?

if anybody has some info about this i will appreciate it a lot or if you have any link it will be fine too

Oct 16, 2008, 1:01 PM
Hi heysol,

The following ViewPort example is a good demonstration of how to add Controls from code-behind, see http://examples1.ext.net/#/ViewPort/Basic/Built_in_CodeBehind/

We have a <ext:TableLayout> sample which has not been added to the Examples Explorer, so I'll clean it up and post online shortly.

Hope this helps.

Oct 16, 2008, 2:20 PM
Two new TableLayout examples have been added to the explorer. Same Layout done in both markup and C#.


Hope this helps.

Oct 16, 2008, 3:53 PM
Thanks geoffrey

i appreciate your help it was good enough. Let me try it. by the way do you have some an example with a radio button running on server cause i want to fiil a combobox with a radio i thought it was the same as a button but i canīt make it run

Coolite itīs really awesome !!!