Customize GridView Paging panel

4 posts, 1 answers
  1. British
    British avatar
    12 posts
    Member since:
    Jul 2014

    Posted 06 Mar Link to this post

    hi

    i use paging in my winform grid view.everytrhing is ok.

    but i wanna customize the panel paging. for example disable ShowFastBackButton and ShowFastForwardButton in panel paging.

    in this page it said that :

    There are a number of properties, which allow you to customize the paging panel to your specific needs. You can access these properties through the RadGridView.GridViewElement.PagingPanelElement.

    i want change these properties in design time not by code, but i cant find any of these properties in property grid or in property builder.

    i have another question and that is about TextBoxStripElement in paging panel. iwant localize that and put my text intead of page and of in TextBoxStripElement.

    is there any solution for these two question?

    Best Regard

     

  2. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 08 Mar Link to this post

    Hello ,

    Thank you for writing.

    You can access the RadGridView.GridViewElement.PagingPanelElement only programmatically. It is not possible to customize which button elements to be displayed at design time.

    As to the question about localizing the TextBoxStripElement, feel free to use the RadGridLocalizationProvider and specify the RadGridStringId.PagingPanelPagesLabel and RadGridStringId.PagingPanelOfPagesLabel texts. Additional information is available here: http://docs.telerik.com/devtools/winforms/gridview/localization/localization

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. British
    British avatar
    12 posts
    Member since:
    Jul 2014

    Posted 08 Mar Link to this post

    Hi

    Thanks for reply.

    in did all you said and work fine.

    but here i have question:

    page number text box content in StripElementTextBox is align to left but i wanna align to middle center

    i try the code below but not worked:

    1.MyGridView.GridViewElement.PagingPanelElement.PageNumberTextBox.TextAlignment = ContentAlignment.MiddleCenter;

    thanks in advanced
  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 08 Mar Link to this post

    Hello ,

    Thank you for writing back. 

    In order to center the text of the PageNumberTextBox, you can use the following code snippet:
    this.radGridView1.GridViewElement.PagingPanelElement.PageNumberTextBox.TextBoxElement.TextAlign = HorizontalAlignment.Center;

    I hope this information helps. If you have any additional questions, please let me know.

    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top