Jump to content

Recommended Posts

Posted
  grdWorkSheet.ClientEvents.UniEvents.Clear;
  MyScript:= 'pagingBar.afterCreate=function pagingBar.afterCreate(sender)'+
             '{ '+
             '  sender.add( '+
             '  [ '+

...

             '    { '+
             '      xtype: ''tbseparator'' '+
             '    }, '+

             '    { '+
             '      xtype: ''label'', '+
             '      id: "gridLabelid", '+
             '      text: ''abc'', '+
             '      color: ''red'', '+
             '      margin: ''0 0 0 10'', '+
             '    }, '+

             '    { '+
             '      xtype: ''tbseparator'' '+
             '    }, '+

...

             '  ]); '+
             '} ';
  grdWorkSheet.ClientEvents.UniEvents.Add(MyScript);

I tried color: 'red' which compiles and runs without error but does not change the label's text color, please advise - thanks.

Posted
17 minutes ago, andyhill said:

Could you please show me

{
    xtype: 'label',
    id: 'gridLabelid',
    text: 'abc',
    style: 'color: red;',
    margin: '0 0 0 10'
}

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