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

Access data on server-side that has been bound on client-side

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 05 Aug 2015, 01:30 PM

Hey there,
I'm currently facing following problem:
On an ASP.NET page there is a RadGrid that gets filled on client-side using a SignalR connection.
The databinding is done like this:

var table = $find('blablatableid');
var tableView = table.get_masterTableView();
tableView.set_dataSource(viewModels);
tableView.dataBind();

The grid is filled and the data is displayed correctly. 

During a postback caused by a button click I need to access the data in the server-side code but the grid seems to be empty. The grid doesn't have a datasource and the ItemsCollection is empty. Did I forget something or is this scenario not supported?

 

Best regards,

 

Christian

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 10 Aug 2015, 07:00 AM
Hello Christian,

I have to say that the described behavior is expected. When client-side binding is used the grid data can be accessed only on the client and is not available on the server. If extracting some information from the grid items on the server is mandatory I recommend switching to server-side binding.

Regards,
Angel Petrov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or