Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
BRH 12
#DOTNET 10
#LINQ 6
LINQ 5
#ASP.NET 4
#DATAACCESS 4
ASP.NET 3
DOTNET 3
.NET 2
WCF 2

Archive · View All
July 2010 5
August 2010 4
June 2011 3
October 2010 1

How to make same height of cell across tables

Aug 31 2010 4:44PM by IBhadelia   

We always have this case specially using DataList control in ASP.NET as if its asked to use Table format; it creates table in which height of cell goes off.

image

You can see that column are repeated for each set of data and in which first cell is messing around with the design. By some reason height of that cell gets increased, most of the time content of that cell is larger than adjacent cells.

I found solution with JQuery, which search for given cell and set the maxing height to all Cell. Following is function which allow us to get rid of this issue.

function MakeSameHeight(className) {
    var maxheight = 0;
    $(document).ready(function () {
        $(className).each(function () {
            if ($(this).height() > maxheight) {
                maxheight = $(this).height();
            }
        });
        $(className).each(function () {
            if ($(this).height() != 0)
                $(this).height(maxheight);
        });
    });
}

For this to work fine, you have to assign some fake class to those table cell which you need to consider to have same in height. So create fake class and assign this to all required table cell.

image

And following code to call MakeSameHeight function.

MakeSameHeight('.accessories_nametd');

Note: Its using JQuery hence you need to include appropriate js file from jquery.com

Tags: #DOTNET, BRH, #ASP.NET, ASP.NET, .NET,


IBhadelia
159 · 1% · 299
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]