ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 4 replies, has 2 voices, and was last updated by  anhnhoktvn 1 year, 8 months ago.

  • Creator
    Topic
  • #13389

    anhnhoktvn
    Participant

    How do I :
    – 1. Move the toolbar to the bottom of the gridview?
    – 2. Change the pager from input to range of numbers like this image:
    http://pasteboard.co/XZ4ekYA.png
    huh

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #13415

    Hi,

    First, you have to overload datagrid module with requirejs configuration. In your bundle create requirejs.yml where define mapping:

    That says: all modules that requires original datagrid will get customized datagrid, but customized datagrid will get original datagrid.

    Create your own module for custom datagrid (‘mydatagrid/js/datagrid/grid’) where override template property:

    Same for pager. You have to overload orodatagrid/js/datagrid/toolbar
    module and define own pagination control.

    #13463

    anhnhoktvn
    Participant

    Thank you!
    I’ve tried extending the datagrid bundle and followed your guide. And it worked! 🙂
    However things are more complicated with filter extension because it belongs to another bundle with complex logic.

    I got stuck in customize filter extension. How do i change the filter extension template & how do i change the way the filter placeholder rendered? I’d like to remove the ‘manage filters’ html element, add a custom search input to do my own query. This maybe like the image below:
    http://pasteboard.co/14eSyb3V.png

    #13476

    anhnhoktvn
    Participant

    I tried overwriting all ‘yml’ file in the ‘Resources/config’ folder. And it’s worked. Not sure it’s right way. Another problem is i can not add a new filter type although i followed the guide in document. Could you explain more about how to add new filter type?

    #13478

    anhnhoktvn
    Participant

    Well, somehow i think it worked, same as the DataGridBundle.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.