473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can I auto span cells?

Hello All,

I have developed an application with drag and drop functionality where I am dragging elements from one table to another.

My problem is that if I want to span certain element for two columns or rows or both, is it possible?
I can't think of any idea to make this. Can the border of cells be dragged and cells hide?

I appreciate an existing code for this.

Thank You
Sandy
Jul 26 '10 #1
5 1616
gits
5,390 Expert Mod 4TB
what is the exact problem you have? of course - you could select two cells - for example click one and handle it as selected. when you click while the ctrl-button (or whatever other button) is pressed select the next one - now the cells might have a custom attribute stating that they are selected -> when now dragging just remove both of the selected nodes and add it to the drop-area together ...

you could even implement a select mode for rows and/or cells - which would add checkboxes or similar to mark the rows/cells for dragging ...
Jul 28 '10 #2
Hello Gits
Thanks for your reply.
My problem is, I am dragging a content in a table. while dropping it my client wants that it should give flexibility to span the element(textbox, checkbox whtever). that is it should be able to span for more than one cell.

How can I do that?

I thought of calling a promptbox asking for span of the column but it adds a new cell at the end of the row...and somehow changes total cellindex.

Please suggst with a piece of code
thank you again
Sandy
Jul 29 '10 #3
gits
5,390 Expert Mod 4TB
that is to vague for me to get it ... could you please exactly describe what the usecase is? what is content, where is it dragged from and where and how should it be dropped?
Jul 29 '10 #4
Hello Gits,

I have a table(Source_table) on top where i have fields..for now consider only textboxes in the cells of this table.
These text boxes i am dragging in a table(target_table) below with empty cells.
This i am done using some existing scripts and my own input to it.Refer this http://www.redips.net/javascript/dra...table-content/
Now my problem is that the client wants some of the text boxes to span more cells of the target_table while drop.

Hope you get it now.
Let me know if you want any more input.
Thanks
Jul 30 '10 #5
gits
5,390 Expert Mod 4TB
so as i understand it - you have one cell and the drop-table has a row with 3 cells for example. now you want to drag the cell to the target and while dropping 2 cells for example should be united and the dropped item should fill that area?

how should that work from a UI side of view? if it would be 2 cells it would be quite simple to define a mouseover area between them ... when moving the mouse over that area the logic for cell-combining could be triggerd. when it are 3 or more cells ... how should that work? you might open a dialog and ask for the number that should be combined.

to span the cols you would need to create a new table fragment ... then remove the old one and add the new instead with the added dropped node inside.
Jul 30 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Christopher Benson-Manica | last post by:
http://ataru.gomen.org/files/html/files/test.html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test page</title> <style...
3
by: N. Demos | last post by:
I have a single row table with fixed dimensioned cells nested inside a fixed dimensioned div, which has overflow: hidden. The div's dimensions are such that It should only display the first two...
3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
1
by: sri_san | last post by:
Hello, I have a datagrid in which the header needs to span over 2 columns. I have tried creating a tableCells and tableRow at runtime and set the columnspan property of a cell to 2. But, the...
1
by: Olav Tollefsen | last post by:
Is it possible to create a DataGrid footer to span multiple columns? Olav
0
by: Mortar | last post by:
i am trying to span header columns and am getting some problems. I have 13 columns in my datagrid (1 template, 12 bound), and for some reason, when i try to remove cells of index 11 or higher, it...
3
by: patl | last post by:
Hi all, I am trying to write a terminal emulator using Javascript + AJAX and I need to create an 80x25 table (each cell contains 1 character) in which I can update the contents of each cell...
5
by: David Housman | last post by:
Hello, I'm trying to implement a navigation bar with a ul in css. The code is a template, but i'm customizing. I can handle just text in each block, but i want the first block to have an image...
4
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto">...
3
by: samvb | last post by:
I have a round with the following CSS code which i downloaded from the inet: div#container { color: black; display:block; background: #fff url(sifakaptl.gif) top left no-repeat; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.