Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have grid, which is inside a table,grid is for billing, we can add data,if we want to edit any one of rows, in left side there is an edit button and delete button, now the tick update and cancel image are hidden after click the edit button the update and cancel button is enabled, at this time the grid is moving top, after click the cancel or update button grid is moving down, i dont want that up and down movement of grid . please help me, I am strugling on this for 1 week. help me.............
Posted
Comments
[no name] 16-Dec-11 0:06am    
What do you mean the grid is moving up and down? Do you mean it is changing position, such as moving to the top or bottom of your page?

1 solution

Try to reserve the space for update and cancel buttons even though they are not visible.

Don't know how you are doing it, but placing both the buttons in a div and setting its visibility style to hidden, will hide the buttons but the DIV will reserve the space required to display them.

In this way, when you show the div containing the buttons, your UI will not look like shifting around.


<div id="hiddenButtons" style="visibility: hidden;">
<input type="button" />
<input type="button" />
</div>


To display the buttons,

<div id="hiddenButtons" style="<b>visibility: visible;</b>">
<input type="button" />
<input type="button" />
</div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900