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

Bind radgrid on radpanel item expand

3 Answers 61 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 10 Aug 2011, 04:40 PM
HI
I'm using radcontrols in my asp.net website.
And these controls visually and functionality wise nice.

I have one scenario .
I have radpanelbar with 4 panel items.
each item contains one radgrid.
Now I'm binding every grid with theie needdatasource event.
My problem is suppose user select first item  can go through radgrid paging at pageindex 5 and if he collapse the current panlelitem and expand other and comes expand the previous one still he will see the radgrid with pageindex 5.
So I want bind the grid while expand the panel item.

Hope u understand my problem.

please help me as early as possible.

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 11 Aug 2011, 06:27 PM
Hi Ram,

If I understood correctly, you can fire a command (Page, "First") on the GridTableView of RadGrid. Here is an article that should guide you through: http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-firecommand.html

Regards,
Nikolay Tsenkov
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
Ram
Top achievements
Rank 1
answered on 12 Aug 2011, 06:35 AM
Hi
Thanks for reply.
But I don't know when and where to call the FirePageCommand() funciton.
Can u explain me bit about this.
How to call the function when I expand the panel item.
pls tell me.
0
Nikolay Tsenkov
Telerik team
answered on 17 Aug 2011, 08:52 AM
Hello Ram,

 You can handle the ClientItemClicked event of RadPanelBar and apply the solution from the article that I previously posted in the handler.

Here is an article on ClientItemClicked event: http://www.telerik.com/help/aspnet-ajax/panelbar-onclientitemclicked.html

Regards,
Nikolay Tsenkov
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
PanelBar
Asked by
Ram
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Ram
Top achievements
Rank 1
Share this question
or