Jump to content

Recommended Posts

Posted

Hi,

 

Try this:

 

1. afterrender:

function afterrender(sender, eOpts)
{
    var me=sender;
    if (me.editingPlugin.isRowEditor) {
        me.editingPlugin.editorCfg.cls = "_roweditor"
    };
}

2. CustomCSS:

._roweditor .x-panel-body {
    background-color: green;
}


._roweditor .x-grid-row-editor-buttons {
    background-color: green;
}

Best regards,

  • 11 months later...
  • 1 year later...
  • 6 months later...
Posted
On 8/9/2017 at 10:26 PM, Sherzod said:

Hi,

 

Try this:

 

1. afterrender:


function afterrender(sender, eOpts)
{
    var me=sender;
    if (me.editingPlugin.isRowEditor) {
        me.editingPlugin.editorCfg.cls = "_roweditor"
    };
}

2. CustomCSS:


._roweditor .x-panel-body {
    background-color: green;
}


._roweditor .x-grid-row-editor-buttons {
    background-color: green;
}

Best regards,

Hi Sherzod,

Following from version 1508 to 1519, the button panel (?) not changing color as shown in the attachment.

I followed the exact CustomCSS and dbGrid->ClientEvents->ExtEvents->"ext.grid.Panel"->afterrender

 

Thanks,

Frances

 

roweditor_color.png

Posted
1 hour ago, fraxzi said:

Following from version 1508 to 1519, the button panel (?) not changing color as shown in the attachment.

Hello,

Try this:

function afterrender(sender, eOpts)
{
    var me=sender;
    if (me.editingPlugin.isRowEditor) {
        me.editingPlugin.editorCfg.cls = "_roweditor";
        me.addCls('_roweditor');
    };
}

 

Posted
27 minutes ago, Sherzod said:

Hello,

Try this:


function afterrender(sender, eOpts)
{
    var me=sender;
    if (me.editingPlugin.isRowEditor) {
        me.editingPlugin.editorCfg.cls = "_roweditor";
        me.addCls('_roweditor');
    };
}

 

Hi Sherzod,

Thanks for the mod.. but it seems the dbgrid background was affected.

 

Thanks,

Frances

roweditor_color2.png

Posted
10 minutes ago, Sherzod said:

OK, I will check.

What theme are you using?

Hi Sherzod,

I tried almost all the theme, the carbon theme has different effect (opposite).

Thanks,

Frances

roweditor_color3.png

Posted
18 minutes ago, fraxzi said:

This is from uniGUI demo it has same effect as my project.. I used it as test case.

Can you try?

._roweditor .x-grid-row-editor .x-panel-body {
    background-color: green !important;
}


._roweditor .x-grid-row-editor-buttons {
    background-color: green;
}

 

Posted
8 minutes ago, Sherzod said:

Can you try?


._roweditor .x-grid-row-editor .x-panel-body {
    background-color: green !important;
}


._roweditor .x-grid-row-editor-buttons {
    background-color: green;
}

 

Hi Sherzod,

Amazingly beautiful! it works on carbon and other themes.

Glad we have a superman in the house.

 

Thanks,

Frances

roweditor_color6.png

roweditor_color7.png

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...