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

Two Refresh Buttons to display different set of data in Grid

2 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Soumya
Top achievements
Rank 1
Soumya asked on 19 Jul 2012, 07:16 AM
I need to have 2 refresh button in the Radgrid.On clicking one Refresh button I need to show a set of data in the grid and on clicking the other refresh button,need to show another set of data.
How can I accomplish this by giving 2 refresh buttons in the radGrid.?

Also ,in the Grid,I have given filter with below properties in one of my column 'Name'.
"AutoPostBackOnFilter="true" ShowFilterIcon="false" CurrentFilterFunction="Contains""
If I enter a name and press enter,records with given name is fetched.But if I remove the name and click on refresh button,the grid is not refreshed with whole data.It is showing the 1 record with that name itself.Can I refresh the Grid as in normal case/

Please help me on the above two issues.
Thanks,
Soumya.


2 Answers, 1 is accepted

Sort by
0
Soumya
Top achievements
Rank 1
answered on 19 Jul 2012, 08:52 AM
Anyone knows the answer?
0
Radoslav
Telerik team
answered on 24 Jul 2012, 08:53 AM
Hello Soumya,

To achieve the first functionality you could try using the MasterTableView.CommandItemTemplate where you could place two refresh buttons:
<MasterTableView CommandItemDisplay="Top">
                <CommandItemTemplate>
                   
                </CommandItemTemplate>
 

However please note that the RadGrid structure could be changed only on PageInit event. More information you could find here:
http://www.telerik.com/help/aspnet-ajax/grid-changing-structure-dynamically.html

Regarding the described issue with filtering. I tried to reproduce the described issue but to no avail. I am sending you a simple example. Please check it out and let me know what differs in your case.

Looking forward for your reply.

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
Soumya
Top achievements
Rank 1
Answers by
Soumya
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or