resize and postback

  • Thread starter Thread starter B G
  • Start date Start date
B

B G

I have a grid, which unfortunately does not allow me to set its width
to 100%. I need to specify the pixels. But as the grid is build up
from many parts, I am unable to set the width on the clientside. So I
would like to do this on the server side.

So when the client is resized AND "the mouse button is up!!" I need a
postback with the new size of the client. How would I do this? Just
taking the onresize event is not enough as this event is triggered
many times during resizing. So I want to know for sure that in the
onresize event the mouse button is up, which most likely means that
the user finished resizing. Is this possible, is this the way to do
this? Any other method (and how do I do this postback?)
 
Why can't you set it to 100% , I found that DataGrid's have a problem with a
100% width so I set them to 99%.
 
The grid is in a div, and I want it to stay in there. So when I set
the grid to 100% I'll would have expected it to take the width of the
div, but it does not, it extends the width of the div, probably
because of the minimum size of the columns. DOnt know why. Have tried
many things...
 
Hi,

Use the style of the div to set the size that you want, secondly, check the
id of the object in the source code generated in your browser. Once you have
it, you can create a javaScript function in the and call it in the onload of
the page to set the sizes of the object.

Joaquin Corchero
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top