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

2 posts, 0 answers
  1. Christian
    Christian avatar
    1 posts
    Member since:
    Jul 2013

    Posted 05 Aug 2015 Link to this post

    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

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1086 posts

    Posted 10 Aug 2015 Link to this post

    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
Back to Top