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

DetailTable and EmptyRow in the pages

5 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lasly
Top achievements
Rank 1
Lasly asked on 04 Oct 2011, 02:59 PM
Hi,

I've a radgrid with two Details table.
I've set the ParentTable Relationship via ASPX and via C#, but when i'm going to open the detail, sometime my detail table shows three page or more, but one or more of that is empty.

My solution is populate the datasource detail table in runtime mode into detailtable_databind event, but i don't like this.

How can I do?

Thanks
best regards

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Oct 2011, 04:34 PM
Hi Lasly,

I suggest that you examine this online demo and see what is difference in your case. If the problem persist you can send us your grid declaration and data-binding logic.We will look through them and try to find any possible causes of the issue.

Looking forward for your reply.

Best wishes,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Lasly
Top achievements
Rank 1
answered on 05 Oct 2011, 07:54 AM
In your demo there aren't the pager in the details table.
I need to use the pager because my details are a lot.
0
Pavlina
Telerik team
answered on 05 Oct 2011, 09:42 AM
Hello Lasly,

Can you please verify that you have no DataBind() calls somewhere in your code? Note that  For advanced features like hierarchy presentation RadGrid requires advanced data-binding through its NeedDataSource event:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

Additionally, hierachy grid with declarative relation and paging is available here:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodemixed/defaultcs.aspx

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Lasly
Top achievements
Rank 1
answered on 05 Oct 2011, 10:23 AM
Thanks for the reply.
We have analyzed with attention the second link you have posted, and we have saw the EnabledLinqExpression is set to False.

We done the same and the redgrid works successfully.
Note: the "bug" is solved, but we don't understood the reason.

I don't know the relation between this property and the empty page in the radgrid, maybe the radgrid uses linq to build the final datasource?

Can you confirm this incompatibility between the detail pager and Linq?
If yes, why? How we able to resolve this problem?

PS = we have the last internal build
Best Regards
0
Accepted
Pavlina
Telerik team
answered on 08 Oct 2011, 11:52 AM

Hello Lasly,

In case you use .NET 3.5 or later, you should set the EnableLinqExpressions property of the RadGrid control to false or use Linq syntax for the grid Expression. 
 
All the best,

Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Lasly
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lasly
Top achievements
Rank 1
Share this question
or