How to have multiple VirtualItemCount in radgrid? In my radgrid table that have a hierarchy structure. It has a parent and child and child below child. I want paging in radgrid differ based on the level. I am already paging the parent, but the problem is the child paging also follow the parent page. Example:
Image below shows that POST contains 8 items and has 2 pages. It is correct, but the COMMENTS's paging also follow the post one. It is wrong. Actually the comments for that post only contain 2 items and the page for comment should have only one.'To calculate the total items of post by this code:
protected void countData()
{
string sql = "SELECT * FROM VIEW_POST";
DataTable dtTotalData;
objDBInterface.strConn = mag.ConnStr();
dtTotalData = objDBInterface.getResults(sql);
totalDataIs = dtTotalData.Rows.Count.ToString();
VirtualItemCount = Convert.ToInt16(totalDataIs.ToString());
pageNeeded = Convert.ToInt16(totalDataIs) / FBGrid.PageSize;
return;
}
And set the radgrid VirtualItemCount by this code on page load:
FBGrid.VirtualItemCount = VirtualItemCount;
Please anybody help me how to handle this situation. Thanks in advance.
Image below shows that POST contains 8 items and has 2 pages. It is correct, but the COMMENTS's paging also follow the post one. It is wrong. Actually the comments for that post only contain 2 items and the page for comment should have only one.'To calculate the total items of post by this code:
protected void countData()
{
string sql = "SELECT * FROM VIEW_POST";
DataTable dtTotalData;
objDBInterface.strConn = mag.ConnStr();
dtTotalData = objDBInterface.getResults(sql);
totalDataIs = dtTotalData.Rows.Count.ToString();
VirtualItemCount = Convert.ToInt16(totalDataIs.ToString());
pageNeeded = Convert.ToInt16(totalDataIs) / FBGrid.PageSize;
return;
}
And set the radgrid VirtualItemCount by this code on page load:
FBGrid.VirtualItemCount = VirtualItemCount;
Please anybody help me how to handle this situation. Thanks in advance.