Jump to content

[Question]Has any idea to make filters on same row?


zhyhero

Recommended Posts

Hi,

 

One possible solution I guess 

 

UniDBGrid -> ClientEvents -> ...

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) 
{
    var me = sender,
        maxY = 0;


    me.columnManager.columns.forEach(function(el) {
        if (el.fedit && el.fedit.getY() > maxY) {
            maxY = el.fedit.getY()
        }
    });


    if (maxY > 0) {
        me.columnManager.columns.forEach(function(el) {
            if (el.fedit) {
                el.fedit.setY(maxY - el.fedit.getHeight());
                el.fedit.setX(el.fedit.getX() - 5);
            }
        });
    }
}
Link to comment
Share on other sites

 

Hi,

 

One possible solution I guess 

 

UniDBGrid -> ClientEvents -> ...

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) 
{
    var me = sender,
        maxY = 0;


    me.columnManager.columns.forEach(function(el) {
        if (el.fedit && el.fedit.getY() > maxY) {
            maxY = el.fedit.getY()
        }
    });


    if (maxY > 0) {
        me.columnManager.columns.forEach(function(el) {
            if (el.fedit) {
                el.fedit.setY(maxY - el.fedit.getHeight());
                el.fedit.setX(el.fedit.getX() - 5);
            }
        });
    }
}

I have test with these codes and .....column title missing.

post-704-0-95427300-1527728728_thumb.png

 

And If  not every column has filter  shows like this(with out these codes).

post-704-0-21339800-1527728736_thumb.png

 

DBGrid (With codes) Shows

post-704-0-63539200-1527728742_thumb.png

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...