Drag and Drop Rows on same Grid
Working with Grids Now we shall move on to the Next Concept is about Drag and Drop Grid Items on same Grid. A Grid component’s rows can be made draggable by applying GridDragSource extension to the component. The extended Grid’s rows become draggable, meaning that each row can be grabbed and moved by the mouse individually. By default, the drag data of type "text" will contain the content of each column separated by a tabulator character ("\t"). When multiple rows are dragged, the generated data is combined into one String separated by new line characters ("\n"). You can override the default behaviour and provide a custom drag data for each item by setting a custom drag data generatorfor the "text" type. The generator is executed for each item and returns a String containing the data to be transferred for that item. In the First Post we have Created A Pojo named Company ,A ListDataprovider,A Grid of type Company and a List of type Co...