This is a migrated thread and some comments may be shown as answers.

deleteSelectedItems() problem

0 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 16 Jan 2013, 09:32 AM
Hi

I have a problem with method deleteSelectedItems()

I have a method in javascript

function RemoveItems() {
        var masterTable = $find("<%= gvArticlesEdit.ClientID %>");
        var selectedItems = masterTable.get_selectedItems();
        masterTable.deleteSelectedItems();
         
    }

var selectedItems is for testing to see how radGrid get selectedItems and it is working fine. But, this line:
masterTable.deleteSelectedItems(); 
delete all objects in radGrid...

If something help's , this is part of code for binding object in that grid, and that's work fine
var item = new Object();
  
        item.Name = name;
        item.Measure = unitMeasure;
        item.Items = items;
  
        allItems.push(item);
        var tableView = $find(gArticlesEditID).get_masterTableView();
        tableView.set_dataSource(allItems);
        tableView.dataBind();


No answers yet. Maybe you can help?

Tags
Grid
Asked by
Nikola
Top achievements
Rank 1
Share this question
or