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

Adding to dataitems on client side then retrieving them on postback

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ruban
Top achievements
Rank 1
Ruban asked on 04 Jun 2010, 11:07 AM
HI,
I have added a new item to the dataitems array on client side but on postback I don't see it in the items collection. 
Any ideas how I can get this working?

 

function RebindGrid() {

 

 

var grid = $find(gsGridId);

 

 

var masterTableView = grid.get_masterTableView();

 

 

var dataItems = masterTableView.get_dataItems();

 

 

var item = dataItems[4];

 

Array.add(dataItems, item);

masterTableView.set_dataSource(dataItems);

masterTableView.dataBind();

}

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 04 Jun 2010, 02:17 PM
Hello Ruban,

Our system indicates that you have opened a forum post, covering the same topic as a support ticket.
To avoid duplicate posts, we can continue our communication in the related support ticket.

Regards,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Ruban
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or