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

Extract values client side - multiple pages

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 17 Nov 2010, 01:43 PM
I am trying to figure out how to be able to access all of the cells in a radgrid client-side, even if there are multiple pages on the grid.  The code i have now to access values only works on the first page, and is included below.  But i would like to be able to do something similar and extract values from all pages, without actually visibly changing pages on the browser so the client can't see.  Thanks.

 

    var panelbar = $find("RadPanelBar3");
    var item = panelbar.findItemByText("Step 3: View Query Results");
    var qgrid = item.findControl("grdQResults");
    var masterTable = qgrid.get_masterTableView();
    var qapi = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[0], "Location").innerHTML;
    var numrows = masterTable._dataItems.length;
          
        var intxv = 0;
        var strfields="";
        for (intxv = 0; intxv <= numrows - 1; intxv++) {
        strfields = strfields + masterTable._dataItems[intxv]._element.all[1].innerHTML + "|"
}

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 22 Nov 2010, 02:17 PM
Hi Mike,

RadGrid only knows about the current page of items it is showing. When paging is enabled, data in other pages is not known until the respective page is loaded. This means you also cannot access the data on the client.

Veli
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or