andyhill Posted February 1 Posted February 1 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. Quote
Sherzod Posted February 2 Posted February 2 17 minutes ago, andyhill said: Could you please show me { xtype: 'label', id: 'gridLabelid', text: 'abc', style: 'color: red;', margin: '0 0 0 10' } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.