Jump to content

Sherzod

Moderators
  • Posts

    19814
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Можете сделать тестовый случай?
  2. Добрый день, Можете ли Вы уточнить вопрос? Как мы можем воспроизвести этот случай?
  3. 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'); }
  4. OK, sorry, I realized what you want I will try...
  5. Sorry, What do you mean by saying "when I switch....." ?
  6. Hi, How do you create in runtime? Can you give a sample code, and do you also assign a name to the component?
  7. 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;
  8. ajaxRequest(this, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);
  9. I couldn't reproduce this issue
  10. Yes, I see the issue Please report to support portal with this testcase
  11. 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
  12. I did not change anything
  13. 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)); } }; }
  14. Which build are you using?
  15. Hi, https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  16. Hi, Have you tried to search answers on the forum? What options are set on the grid?
×
×
  • Create New...