Hi,
I am trying to drag and drop a row in listgrid.
The jsp code snippet is:
<bjsf:listGrid id="listGrid" width="100%"
binding="#{myBackBean.listGrid}" value="#{myBackBean.projects}" var="list" editable="true"
behavior="b:drag"
pageSize="20"
sortListener="#{myBackBean.sort}"
dragListener="#{myBackBean.dragRow}"
dropListener="#{myBackBean.dropRow}">
binding="#{myBackBean.listGrid}" value="#{myBackBean.projects}" var="list" editable="true"
behavior="b:drag"
pageSize="20"
sortListener="#{myBackBean.sort}"
dragListener="#{myBackBean.dragRow}"
dropListener="#{myBackBean.dropRow}">
I expect the dragRow(Dragevent) method to be called when the a row is dragged. But this isn't happening.
public void dragRow(DragEvent event){
int rowIndex = Integer.parseInt(event.getDragBag());
System.out.println("row index::"+rowIndex);
}
public void dropRow(DropEvent event){
System.out.println("drop event called*****************");
}
int rowIndex = Integer.parseInt(event.getDragBag());
System.out.println("row index::"+rowIndex);
}
public void dropRow(DropEvent event){
System.out.println("drop event called*****************");
}
How do I get this method be called? Is the behavior attribute value("b:drag") is correct? Are there more attributes to be included in the <bjsf:listGrid component?
Jay

dragDrop Row in listGrid
24 June, 2008 - 10:33 — andysHi Jay,
The dragDrop Row in listgrid is indeed not working. Thank you for reporting this issue. I have put this problem into our issue tracking system.
Thank you
Andys