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

Setting textbox values and doing a TableView.Rebind?

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 08 Sep 2011, 03:49 PM

 

 

Can someone show me how to set values on a tableview and make them show up from javascript?

I have been trying to do this, but it doesn't seem to work:

function ClientSelectedIndexChanged(sender, eventArgs) {
  
var item = eventArgs.get_item();
  
var item1 = item._attributes._data;
  
tableView._data._columnsData[2].value = item1.username;
  
tableView._data._columnsData[3].value = item1.firstname;
  
tableView._data._columnsData[4].value = item1.lastname;
  
tableView.rebind();
  
}

Regards,

Dan

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 13 Sep 2011, 04:18 PM
Hello Daniel,

RadGrid is a databound control and it will display consistently only the data that it is bound to. If you would like to make changes on the client and then persist them on the server, you can consider using the approach from the following demo:
Client Edit with Batch Server Update

Regards,
Tsvetina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or