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

How i can add and delete row from client side in telerik MVC Grid

0 Answers 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hasibul
Top achievements
Rank 1
Hasibul asked on 15 Jan 2013, 06:56 PM
Hi, I need your help. I can bind telerik mvc grid from client side like following.

My grid control
=============
@{
    Html.Telerik().Grid<Item>().Name("ItemGrid").DataKeys(key=> key.Add(c=>c.ItemId)).Pageable().Sortable().Selectable().BindTo(Model).Render();
}
and my binding is like following
$.ajax({
           url: '/Item/ClientIndexData',
           data: null,
           type: 'POST',
           contentType: 'application/json;',
           dataType: 'json',
           success: function (result) {
               var dgv = $('#ItemGrid').data('tGrid');
               dgv.dataBind(result);
           }
       });

Now I want to add a row from client side;
---> How i can do that. 
Another one is how i can delete a single row.
---->delete may be done by delete button on every row.
or a single delete button which will delete selected row.

Need your help very much. 
Thanks in advance.

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