AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

Trigger code behind function in vb.net (and passing parameters) #151

Open gabryk91 opened 6 years ago

gabryk91 commented 6 years ago

Sorry, I'm not very good at javascript, I'm using this plugin and I need to trigger a code behind when user drag items to one panel to another. Items are populated from db and basically I have to save the item state, question is: how can I get a reference to the involved item? I have:

$(window).load(function () {
            $(".container").shapeshift({
                minColumns: 3
            }).on('ss-added', function (e, selected) {
                alert($(selected).index());
            });
        });//]]> 

This returns the item index whitin the container but I don't know how can I get the reference to the db record (rapresented by the dragged item). Any help? Thank you