HOW TO CREATE RESPONSIVE GRID IN EXT JS?

Linda Perla

Total Post:13

Points:93
Posted by  Linda Perla
 1158  View(s)
Ratings:
Rate this:
I am new in Ext JS environment. I have a need to make Ext JS grid responsive.
I want to make stretchable grid across the width of the browse window.
Below is my grid code:
Ext.create('Ext.grid.Panel', {
    title: 'This is Stretchable Grid',
    height: 250,
    width: 500,
    renderTo: Ext.getBody()
});
Please tell me having any idea to do it. Thanks.
  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to create responsive grid in Ext JS?

    Below I have modified your code. Now your panel is stretchable.
    change your code with this to the difference.
    Ext.create('Ext.grid.Panel', {
        title: 'This is Stretchable Grid',
        height: 250 ,
        width: '100%',
        renderTo: Ext.getBody()
    });
    [Happy Coding]

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!