Dynamically adjust table column widths on an aspx page

S

sljones

Hi There,

I can't seem to find any information from my keyword searches, but I
was wondering whether it is possible for browser to allow a user to
dynamically change the width of a table column?? I have a client who
has these reports which have been written in ASP.Net. They want the
ability for a user to manually adjust the size of the report columns
on the browser (ie. click and drag)

Anyone know if this can be done?

Cheers,
Steve
 
N

Nathan Sokalski

Yes, it can be done. My recommendation would be to use JavaScript events
(onmousedown, onmouseup, onmousemove) which change the width by setting the
CSS width property. You may also want to have the JavaScript store the
widths in Hidden fields so that they can be saved for the next time, but
that part all depends on the particular design your application has. Good
Luck!
 

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

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top