473,785 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resize and postback

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?)
Nov 19 '05 #1
3 2052
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%.

"B G" <go****@geerdes .nl> wrote in message
news:fd******** *************** ***@posting.goo gle.com...
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?)

Nov 19 '05 #2
B G
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...

"jfleeson" <ja***********@ roseheartinn.co m> wrote in message news:<uJ******* *******@TK2MSFT NGP10.phx.gbl>. ..
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%.

"B G" <go****@geerdes .nl> wrote in message
news:fd******** *************** ***@posting.goo gle.com...
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?)

Nov 19 '05 #3
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
"B G" <go****@geerdes .nl> wrote in message
news:fd******** *************** ***@posting.goo gle.com...
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...

"jfleeson" <ja***********@ roseheartinn.co m> wrote in message
news:<uJ******* *******@TK2MSFT NGP10.phx.gbl>. ..
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%.

"B G" <go****@geerdes .nl> wrote in message
news:fd******** *************** ***@posting.goo gle.com...
> 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?)

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3406
by: Peter Mrosek | last post by:
Hello, I have the following declaration in an header file (abbreviated version): typedef struct { unsigned char rgbBlue; unsigned char rgbGreen; unsigned char rgbRed; unsigned char rgbReserved;
3
3270
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the parent that holds my user control is resized, I resize my image so that it uses the maximum available space. Note: It takes about 2 seconds to regenerate the
3
2987
by: Guadala Harry | last post by:
Here's the functionality I'm after: I need for a page to display a photo. When users click on other links within the page, the photo changes. I'd like to swap out the photo without doing a Postback of the entire page. I initially implemented this with an aspx page that contains an IFame which displays only the picture (gif). The behavior was what I wanted, but the problem is that the IFrame does not resize with the photo......
4
3490
by: Rob Richardson | last post by:
Greetings! I have a form with a listview, a menu, and a few text boxes, labels and command buttons. I want to resize the listview when the form is resized to that the widths of the spaces between the borders of the listview and the borders of the form remain constant. I am finding this to be unexpectedly hard. For one thing, I initialized some values in the form's Load event, and I'm doing the control resizing in the form's Resize...
15
5366
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
12
14458
by: Maxwell2006 | last post by:
Hi, I declared an array like this: string scriptArgs = new string; Can I resize the array later in the code? Thank you, Max
2
2666
by: mrbrightsidestolemymoney | last post by:
Hi, I'm having a problem resizing a (very big) nested vector. It's not the most streamlined piece of code ever but I need this array to avoid having to recalculate the same quantity millions of times! The (relevant) snippets of code are below : since it's relevant though L=28,T=96 (so TasteProps weighs in at a hefty 8*96*28*28*28*96=1,618,477,056 doubles )
3
2476
by: Jim Langston | last post by:
I really am not sure if this question belongs in this newsgroup, but not sure where else to ask it. There is someone working on a game that I tested, and it was taking >30 seconds to load. He stated that everyone else was taking 2 or 3 seconds. Then he found one other person taking >30 seconds, and it turns out the common denominator was both of us have Intel chips (Celeron) where the other people have AMD. I had him send me his code...
1
2040
by: | last post by:
I'm creating a user control where the size always needs to be divisible by three. In the resize event within the custom control I'm having no problem maintaining the height to be the same as the width, but as soon as I try to add some code to make sure that the width is always divisible by three, VS crashes. How can I force the width 9and height) to always be a factor of three? Thanks. J
0
9484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.