Jump to content

Sherzod

Moderators
  • Posts

    19683
  • Joined

  • Last visited

  • Days Won

    634

Everything posted by Sherzod

  1. Maybe something like this for start: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var grid = sender; var lockedGrid = grid.lockedGrid; var fixedColLength=0; for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { grid.editingPlugin.completeEdit(); Ext.defer(function() { selModel.select(nextRecord); if (lockedGrid) { fixedColLength = lockedGrid.columnManager.columns.length; } grid.editingPlugin.startEditByPosition({ row: grid.uniRow, column: grid.uniCol + fixedColLength }, true); }, 50); } } }) } } }
  2. Please set: pnlTopClient.LayoutConfig.Flex = 1
  3. Second UniContainerPanel: Layout = hbox LayoutConfig.Pack = end LayoutConfig.Flex = 0 for all child elements.
  4. Hi, If possible can you make a simple testcase?
  5. First of all, please adjust your forum email address.
  6. First of all, pay attention to the AlignmentControl property of your Frame.
  7. Hello, Sorry, can you please specify which edition and build of UniGUI are you using?
  8. ajaxRequest(sender, '_cellclick', ["colIndx="+location.columnIndex]);
  9. Ok, I will try to analyze.
  10. As I understand it, you also want to change the value of the third column, changing the percentage?
  11. Can you try to use this approach? procedure TMainForm.UniFormReady(Sender: TObject); // OnReady event begin with UniChart1 do // your UniChart begin JSInterface.JSConfig('colors', [JSInterface.JSStatement('["red", "yellow", "blue", "#ff7788"]')]); //or more colors JSInterface.JSCall('chart.series[0].setRenderer', [JSInterface.JSFunction('sprite, record, attributes, index, store', ' if (record) {'+ ' if ('+ JSName +'.colors[index]) {'+ ' attributes.fill = '+ JSName +'.colors[index];'+ ' }'+ ' }'+ ' return attributes;' )]); end; end;
  12. OK, try to use like this: function window.afterrender(sender, eOpts) { Ext.onReady(function() { ConvertNumberToPersion(); }); function ConvertNumberToPersion() { persian = { 0: '۰', 1: '۱', 2: '۲', 3: '۳', 4: '۴', 5: '۵', 6: '۶', 7: '۷', 8: '۸', 9: '۹' }; function traverse(el) { if (el.nodeType == 3) { var list = el.data.match(/[0-9]/g); if (list != null && list.length != 0) { for (var i = 0; i < list.length; i++) el.data = el.data.replace(list[i], persian[list[i]]); } } for (var i = 0; i < el.childNodes.length; i++) { traverse(el.childNodes[i]); } } traverse(document.body); } }
  13. Thanks. Have a nice day!
  14. Hello, Very interesting. That's what I found on the Internet... “The latest versions of Raspbian OS have a completely modern Chromium browser capable of correctly displaying even complex web pages. So if you need to display Jira tickets, stock quotes of your company, train schedules, or at least the weather forecast, Raspberry Pi can handle such a task. It's simple enough and does not require any programming, you just need to run Chromium in kiosk mode, hide the mouse cursor and turn off the screensaver. "
  15. Hello, Please adjust your forum email address.
  16. Hello, Sorry, Can you make a specific example for your case?
  17. Can you make a simple testcase for this?
  18. http://forums.unigui.com/index.php?/topic/8946-passing-clients-apparent-public-ip-to-unigui-session-on-login-button-click/&amp;do=findComment&amp;comment=72178
×
×
  • Create New...