How do you implement the Drag and Drop feature in a UltraWeb Grid?
I remember a demo page with this functionality but I am unable to find it again :)
It was an example of moving pieces of a picture around a grid like a puzzle probably with in a webdatagrid
The reordering is done on the grid level and does not affect the ordering in your data base.
thedukenj said: The reordering is done on the grid level and does not affect the ordering in your data base.
Interesting...but what about a real world enterprise application that needs this new order to be persisted...a user reorders the list closes the app and returns at a later date...to find....nothing was saved.
Well, data base operations ( with the exception of data from data sources like SqlDataSource ) are performed manually. Therefore, if you want to reorder your records, keep track of the row's positions and modify your data base when the user saves or through some other event.
thedukenj said: Well, data base operations ( with the exception of data from data sources like SqlDataSource ) are performed manually. Therefore, if you want to reorder your records, keep track of the row's positions and modify your data base when the user saves or through some other event.
SqlDataSource is currently the method in place....since this is the only method that has worked to this point with the UltraWebGrid, WebHierarchicalDataSource....
Thanks for your help.
Does anyone have a solution for persisting the data?
"I put <div tags around "everything" fields, rows, columns the whole nine yards and I then tell the DaD framework that they are valid targets for dropping. On Drop I use ajax and loop through the grid information saving the data layout, object types etc. to the database. (by userid) "
Can you supply code of how you do this?
Also, our grid is hierarchical (3 bands), and I've tried to use the example for this with some luck but " 'Node' is null or not an object" after a few moves, and then all is bad....
Thanks
Could someone give a better example of what they are looking for?
I am doing this right now and do not have a problem with this, so I am trying to understand what it is you guys are looking for?
Here is what I do (and yes I use the new release drag/drop framework) in a form builder.
I put <div tags around "everything" fields, rows, columns the whole nine yards and I then tell the DaD framework that they are valid targets for dropping. On Drop I use ajax and loop through the grid information saving the data layout, object types etc. to the database. (by userid)
Then when it loads (grid/row init) I rebuild the information.
I do this not only for the grid but for adding comboboxes,text fields, radios etc. to a form (including tabs).
So if someone can explain a little better what they want I can just throw up some sample code on how i do it.
Hello czmelton,
I too have been looking for a solution for persisting "state" in the UltraWebGrid between user sessions.
My UltraWebGrid implementations are very user "configurable".
Including:
Moving column order
Resizing column width
Resizing row height
Sorting
I would like to be able to return the UltraWebGrid to the user exactly how they left it.
In the past I used the LoadLayout and SaveLayout methods to write the "state" (ie layout) to a xml string for an individual user and then write the string to a database. Then when the user started another session, the app would simply load the "state" (ie layout) from the xml string in the database. It worked fairly well, but unfortunately, it has been deprecated.
I requested the feature be reimplemented but have not seen it to date.
Thanks,Jeff
Can someone give an example of a hierarchical grid with the ability to Insert a row anywhere in the grid (like to Excel) at the parent band[0] level, move rows up and down using a template column (or other option)....and persist the reordering in a database.
Currently using: 3.5 v9.1
UltraWebGrid, WebHierarchicalDataSource, SqlDataSource
Thank you.