Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created draggable and resizable div run time on button click using Jquery and MVC 5. Now I want to store the final size and coordinates of each div in collection in below a format:-
C#
{DivId="1",Height="200px",Width="200px",X_Pos="100",Y_Pos="100"},
{DivId="2",Height="200px",Width="200px",X_Pos="150",Y_Pos="150"},
{DivId="3",Height="200px",Width="200px",X_Pos="200",Y_Pos="200"}


So, Next time I can load same layout as user save previous.
I am able to retrieve all values but Don't know how to create and store values in Collection<list> in jquery. If this possible then my next logic is to send this collection list to the controller. Please help me.

Thanks in Advance.
Posted
Updated 6-Oct-15 0:52am
v3

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