Jump to content

Sherzod

Moderators
  • Posts

    19685
  • Joined

  • Last visited

  • Days Won

    636

Everything posted by Sherzod

  1. UnimPanel -> ClientEvents -> UniEvents -> function beforeInit(sender, config) { config.cls = 'AbasteceTitPanel' }
  2. TClientDataset является in-memory dataset'ом, для сохранения данных Вы должны использовать SaveToFile и для загрузки LoadFromFile методы соответственно
  3. Можете сделать тестовый случай?
  4. Добрый день, Можете ли Вы уточнить вопрос? Как мы можем воспроизвести этот случай?
  5. Hi, One possible solution: 1. CustomCSS: .grid-header-vertical .x-column-header-text { -webkit-transform: rotate(270deg); -moz-transform: rotate(270deg); -o-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); /* transform doesn't work on inline elements */ display: inline-block; /* need to hard code a height for this to work */ /* you could use Ext.util.TextMetrics if you needed to dynamically determine the text size */ height: 40px; } .x-ie8 .grid-header-vertical .x-column-header-text { /* IE8 doesn't have css transform */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } 2. function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns[1].addCls('grid-header-vertical'); }
  6. OK, sorry, I realized what you want I will try...
  7. Sorry, What do you mean by saying "when I switch....." ?
  8. Hi, How do you create in runtime? Can you give a sample code, and do you also assign a name to the component?
  9. Try with this approach for now...: 1. function select(sender, record, index, eOpts) { var IDs = ""; this.getSelection().forEach(function (rec) {if (IDs == "") {IDs = rec.data[yourIDIndx]} else {IDs = IDs + "," + rec.data[yourIDIndx]}}); ajaxRequest(this, "_getSelection", ['IDs=' + IDs]); } 2. procedure TMainForm.UniDBTreeGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_getSelection' then begin ShowMessage(Params.Values['IDs']); end; end;
  10. ajaxRequest(this, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);
  11. I couldn't reproduce this issue
  12. Yes, I see the issue Please report to support portal with this testcase
  13. TColumn has a method named DefaultWidth (64), which is called in particular when the width hasn't been explicitly assigned to the column (which is true for the dynamically created grid columns). Basically, it takes the column's associated field's display width (in chars) and multiplies it by the width of the 0 character (in pixels), using the corresponding font. It then compares the result to the width of the title (in pixels) and returns the greater value. https://stackoverflow.com/questions/5446520/how-does-a-dbgrid-component-determine-initial-column-widths-to-display
  14. I did not change anything
  15. Solution for a "Stacked Bar": function chart.beforeInit(sender, config) { config.series[0].tooltip = { trackMouse: true, width: 120, renderer: function(tip, items, item) { tip.setTitle(this.getTitle()[items.getFields().map(function(obj){return obj.name;}).indexOf(item.field)-1] + ': ' + items.get('LL')); tip.update('Value: ' + items.get(item.field)); } }; }
  16. Which build are you using?
×
×
  • Create New...