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

ClientSide Binding order to prevent System.Data.DataRowView

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 27 Dec 2010, 09:23 PM
I have a clientside RadGrid that I am doing the following:
grid.tableView = grid.get_masterTableView();
grid.tableView.set_dataSource(data.Items);
grid.tableView.dataBind();
grid.tableView.set_virtualItemCount(data.Count);
Before my RowDatabound and DataBound Events are called, I am getting a bunch of blank rows with "System.Data.DataRowView" displayed in them. 
My attempt to fix this was to default the grid to display:none and then set it back later one, but I can't find a good event to do this since RowDataBound isn't good enough as it does it on the first row and that's not good enough. Any thoughts/ideas?

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 31 Dec 2010, 09:06 AM
Hello Scott,

Given the information provided I am not certain what might be the reason for this behavior. Do you have server-bidning as well for the grid? Furthermore, take a look at out online example (here) and see how you should update the virtual item count for the grid correctly.

If the problem persists, please, paste your complete mark-up and code-behind using the Code Formatter tool of the ticket editor.

Thanks for that.

Best wishes,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jump start 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
Scott
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or