Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > custom cell widths - datalist webpart View modes: 
User avatar
Member
Member
tjadoon-gmail - 9/8/2010 11:00:02 AM
   
custom cell widths - datalist webpart
Hi, I have 2 columns specified for the datalist webpart. These are showing but how can i put custom widths for both the cells?

Thanlks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/9/2010 2:24:00 AM
   
RE:custom cell widths - datalist webpart
Hi,

I am not sure how your transformation looks like. In general you can enhance your tag with class property. Then you can define width of column in CSS file (Site Manager - Development - CSS stylesheet).

.myclass
{
width=13px;
}

If you need further help, show us your transformation code please.

Best regards,

Ivana Tomanickova

User avatar
Member
Member
tjadoon-gmail - 9/9/2010 4:17:12 AM
   
RE:custom cell widths - datalist webpart
<p><b><%# Eval("Greet") %> <%# Eval("FirstName") %> <%# Eval("LastName") %></b><br>
<%# Eval("Title") %><br>
<%# Eval("Institution") %><br>

<i><%# Eval("Description") %></i>
</p>

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/10/2010 2:27:19 AM
   
RE:custom cell widths - datalist webpart
Hi,

You can modify your code following way:

<p class="myclass"> 
<b><%# Eval("Greet") %> <%# Eval("FirstName") %> <%# Eval("LastName") %></b><br>
<%# Eval("Title") %><br>
<%# Eval("Institution") %><br>
<i><%# Eval("Description") %></i>
</p>


and add into css file following code:

p.myclass
{
color: blue;
width: 30px;
}

Best regards,
Ivana Tomanickova