I want to implement the possibility to allow the user to chose the page size for GridView. My Idea is to add a textbox or dropdownlost next to the textbox with the current page number.
How can this be done? I have tried but didn't find the solution by myself.
Thank you
2 Answers, 1 is accepted
0
Dimitar
Telerik team
answered on 21 Oct 2016, 11:11 AM
Hello Andrea,
The following snippet shows how you can achieve this:
public Form1()
{
InitializeComponent();
CommandBarDropDownButton button = new CommandBarDropDownButton();
int pageSize = Convert.ToInt32(((RadMenuItem)sender).Text);
radGridView1.MasterTemplate.PageSize = pageSize;
}
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.