Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > it is showing white space when the gridview is hide from javascriptin asp.net 2.0

Reply
Thread Tools

it is showing white space when the gridview is hide from javascriptin asp.net 2.0

 
 
santosh
Guest
Posts: n/a
 
      12-05-2007
Dear all i want to make grid visible true and false in client side so
i am writting following code for it.

<script language="javascript" type="text/javascript">

PageLoad();

function PageLoad()
{
//
document.getElementById("grdOpenProj").style.visib ility="hidden";

document.getElementById("grdClosedProj").style.vis ibility="hidden";

document.getElementById("grdBidding").style.visibi lity="hidden";

document.getElementById("grdDeclined").style.visib ility="hidden";

document.getElementById("grdNotAwarded").style.vis ibility="hidden";

document.getElementById("grdPending").style.visibi lity="hidden";

}

</script>


It is hiding the grid the but showing the white space when grid is
hide. but when i make it visible true then and visible false the white
space is get removed.

following is the code for showing hided grid


function Hide(btnConrtol, divControl)
{

var vImgsrc = document.getElementById(btnConrtol).src;
var vSplitVal = vImgsrc.split("/");

if(vSplitVal[vSplitVal.length-1]=='home_icon_down.gif')
{
document.getElementById(btnConrtol).src="images/
home_icon_right.gif"

document.getElementById(divControl).style.position ="absolute";//
absolute

document.getElementById(divControl).style.visibili ty="hidden";
}
else
{
document.getElementById(btnConrtol).src="images/
home_icon_down.gif"

document.getElementById(divControl).style.position ="relative";//
relative

document.getElementById(divControl).style.visibili ty="visible";

}
return false;
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any programs to trim white space/ remove all white space in HTML file? Ben C HTML 6 01-28-2007 11:41 PM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57