Guest User

Untitled

a guest
May 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. {
  2. xtype: 'gridpanel',
  3. store: 'TimeStore',
  4. border: true,
  5. width: 800,
  6. cls: 'm-grid',
  7. margin: '10 0 0 0',
  8. selType: 'cellmodel',
  9. plugins: [
  10. Ext.create('Ext.grid.plugin.CellEditing', {
  11. clicksToEdit: 1,
  12. ptype: 'cellediting',
  13. listeners: {
  14. 'edit': function (edytor, data, event) {
  15. ...
  16. data.grid.view.refresh();
  17. data.grid.getStore().commitChanges();
  18. }
  19. }
  20. })
  21. ],
  22. features: [ { ftype: 'summary' } ],
  23. columns: [
  24. {
  25.  
  26. .m-grid .x-grid-cell-selected{
  27. background-color: transparent !important;
  28. }
  29.  
  30. {
  31. align: 'center',
  32. width: 80,
  33. dataIndex: 'F_NUM',
  34. editor: {
  35. xtype: 'textfield',
  36. allowBlank: false,
  37. maskRe: /[0-9,]/
  38. },
  39. renderer: function(value, meta) {
  40. meta.style = "background-color:lightgray;";
  41. return value;
  42. }
  43. },
  44. {
  45. xtype: 'checkcolumn',
  46. align: 'center',
  47. width: 80,
  48. dataIndex: 'F_CHCK',
  49. editor: {
  50. xtype: 'checkboxfield'
  51. }
  52.  
  53. renderer: function(value, meta) {
  54. meta.style = "background-color:lightgray;";
  55. }
Add Comment
Please, Sign In to add comment