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

Grid: after expanding child table, goes to top

2 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kanat
Top achievements
Rank 1
Kanat asked on 08 Feb 2011, 04:42 AM

Hi, 

I have a grid data of which is loaded during Page_Load. And I have also DetailTables with telerik:GridTableView which gets data from DB when the row is expanded. It works, but one thing is it the Page goes to top when the child table is loaded, I want it to stay showing expanded row. How  to resolve it?

And how to add select button in child table?

tnx

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 10 Feb 2011, 06:19 PM
Hi Kanat,

Could you please elaborate a bit more on your scenario. Do you ajaxify the RadGrid via RadAjaxManager or RadAjaxPanel? The described issue could be reproduced if you do not ajaxify the RadGrid and make full postback when the item is expanded. If this is your case please try ajaxify the RadGrid as it is shown on the following online example and let me know if the issue still exists.
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

Regarding your second question:
Into the DetailTables.GridTableView columns' you could add GridButtonColumn with command name set to "Select". Please check out the following online demo which demonstrates this.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectrowwithcheckbox/defaultcs.aspx

I hope this helps.

Best wishes,
Radoslav
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.
0
Kanat
Top achievements
Rank 1
answered on 11 Feb 2011, 04:07 AM

Hi, 

It is several days that I started to use Rad controls. And I am sorry for my that question - I had to read more docs on that initially.

It works now, I needed to put grid into telerik:RadSplitter and telerik:RadPane.

Now I am facing a really problem, I put that problem here - http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-is-not-populated.aspx#1522171

If you can guide me, 

Tags
Grid
Asked by
Kanat
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Kanat
Top achievements
Rank 1
Share this question
or