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

RadGrid User Control Dynamically Loaded

5 Answers 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 25 Aug 2011, 09:01 PM
I have a RadGrid that was working fine.  I then turned it into a user control and inserted into my page and it worked fine.  I then dynamically loaded the same user contorl and it loads fine, but if you try to sort or page through data the RadGrid disappears.  The paging and sorting worked fine until I dynamically loaded the control.

5 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 26 Aug 2011, 08:14 AM
Hello Brian,

Please check out the following documentation article which explains how to load dynamically user control which contains RadControls and let me know if it helps you:
http://www.telerik.com/help/aspnet-ajax/ajax-load-user-controls.html
Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Brian
Top achievements
Rank 1
answered on 26 Aug 2011, 01:11 PM
Thank you for your reply, but the page you referenced is exactly how I dynamically loaded the user control into the panel.  As I said, the RadGrid loads fine, but if you click on a column to sort or try to page through data, the page reloads and the control goes away.

0
Radoslav
Telerik team
answered on 31 Aug 2011, 09:49 AM
Hello Brian,

I am sending you a simple example which demonstrates how to achieve the desired functionality. Please check it out and let me know if it helps you.

Looking forward for your reply.

Best wishes,
Radoslav
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Stephanie
Top achievements
Rank 1
answered on 09 May 2012, 09:23 PM
Can I see this example in vb.net please.
0
Radoslav
Telerik team
answered on 14 May 2012, 11:33 AM
Hello Stephanie,

You can use our free converter: http://converter.telerik.com/  to convert a C# code into VB.

Kind regards,
Radoslav
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
Brian
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Brian
Top achievements
Rank 1
Stephanie
Top achievements
Rank 1
Share this question
or