0

I am using ListView of extjs to insert a list of values, after creating the list and when i try to modify the listview, i surprised seeing a blank row added to the list at last. Code:

var listView = new Ext.list.ListView({
  id: "listView_values",
  autoScroll : true,
  height:80,
  reserveScrollOffset: true,
  hideHeaders : true,
  singleSelect : true,
  store: store,
  multiSelect: false,
  columns: [{
     dataIndex: 'value'
  }]
});

PLease help in solving this issue.

sha
  • 17,824
  • 5
  • 63
  • 98

1 Answers1

2

After adding this piece of code in my java class, i achieved the above functionality.

lValuesList = lValuesList.substring(0, lValuesList.length() - 1);