Need to refresh the data model and obj model and grid dom

605 views
Skip to first unread message

vivek gs

unread,
Sep 27, 2013, 1:52:39 AM9/27/13
to param...@googlegroups.com
HI,

I have implement row drag drop on pqgrid.

I want to refresh the data model and obj model and pqgrid dom after the changing.
For that i am calling the $("#grid_array").pqGrid(this.obj); this one making the performance issue.

So i need method which will refresh the dom element with out recreate. like it is doing in the vscroll function.

Thanks,
vivek

paramquery

unread,
Sep 27, 2013, 1:56:51 PM9/27/13
to param...@googlegroups.com
use drag helpers instead of dragging the row itself.

use splice methods to move the rows around in dataModel.data

and use refresh method to reflect the changes in view upon drop event.

vivek gs

unread,
Sep 29, 2013, 11:56:08 PM9/29/13
to param...@googlegroups.com
I checked the code. the dragging function is done only for columns not for rows..... is it possible to use same function for row drag and drop.


I use jquery UI drag and drop for row drag and drop its working fine. but after when we do the scroll in the grid. it ill revert the changes what we made in drag.

so i am shuffling the data object by splicing and by inserting the data.

but during scroll also it is reverting back to the original.


--
You received this message because you are subscribed to the Google Groups "paramquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paramquery+...@googlegroups.com.
To post to this group, send email to param...@googlegroups.com.
Visit this group at http://groups.google.com/group/paramquery.
For more options, visit https://groups.google.com/groups/opt_out.



--
Regards,
VIVEK
Software Developer
Bangalore
Reply all
Reply to author
Forward
0 new messages