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

How to refresh modalpopupextender?

2 Answers 156 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
ashwini
Top achievements
Rank 1
ashwini asked on 24 Feb 2009, 06:38 AM
 

            Hello All,

                         I am using modalpopupextender in which i am using product gridview and this gridview having pages
                         when i did change pageindex to 5 and close that modalpopupextender and again open that window 
                         then 5th page will be shown but i want to show 1st page of grid view.How i can try this.
 

                          Please help me..
                          Thanx in advanced..



              Regards,
              Aswini.....

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 Feb 2009, 10:44 AM
Hello ashwini,

In order to achieve your purpose, you need to reset the CurrentPageIndex property of your RadGrid upon showing the popup. However, the CurrentPageIndex of RadGrid can only be changed on the server. Therefore I suggest that you try opening the popup from code behind and reset the grid pager as below:

RadGrid1.MasterTableView.CurrentPageIndex = 0;  
RadGrid1.Rebind(); 

Check it out and let me know if this helps.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
ashwini
Top achievements
Rank 1
answered on 25 Feb 2009, 12:28 PM




  Hello  Iana
the Telerik team ,


               ThankYou for giving me reply....


Regards,
..
Tags
Ajax
Asked by
ashwini
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
ashwini
Top achievements
Rank 1
Share this question
or