Hi Ugur ,
Thanks for the Example it is what i needed, But there is a small problem, i have binded to list using odata services.
i am reading the odata service and setting the data to a array variable as u can see in the below code:
Code:
var data = odata.results; |
var jsonmodel = new sap.ui.model.json.JSONModel(); | |||
jsonmodel.setData(data); | |||
sap.ui.getCore().byId("List_ID").setModel(jsonmodelUV); |
now when i add and remove items empty items are getting appended,Please find the image useful.
thanks
Rohit