Jump to content

Sherzod

Moderators
  • Posts

    19793
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Hi erich. Can you clarify? describe in more detail "ajaxRequest"? Best regards
  2. Try var link = document.createElement('link'); link.type = 'image/png'; //link.type = 'image/ico'; link.rel = 'icon'; link.href = 'images/ok.png'; //link.href = 'http://www.google.com/favicon.ico'; document.getElementsByTagName('head')[0].appendChild(link); Best regards
  3. Hi http://mathiasbynens.be/demo/dynamic-favicons ... Works in Firefox, Opera, and Chrome. Fails in Safari and Internet Explorer function changeFavicon(src) { var link = document.createElement('link'), oldLink = document.getElementById('dynamic-favicon'); link.id = 'dynamic-favicon'; link.rel = 'shortcut icon'; link.href = src; if (oldLink) { document.head.removeChild(oldLink); } document.head.appendChild(link); }; changeFavicon('http://www.google.com/favicon.ico'); Best regards
  4. use: function reconfigure(sender, store, columns, oldStore, the, eOpts) { for (var i = 0; i < columns.length; i++) { columns[i].editor = {selectOnFocus: true}; }; columns[1].editor = {selectOnFocus: true, listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; }
  5. function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[1].editor = {selectOnFocus: true, listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; } OR (Do not need to put one under the other! (Sorry if I do not understand)) function reconfigure(sender, store, columns, oldStore, the, eOpts) { for (var i = 0; i < columns.length; i++) { columns[i].editor = {selectOnFocus: true}; }; columns[1].editor = {selectOnFocus: true, listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; }
  6. Try function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[1].editor = {selectOnFocus: true, listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; } function reconfigure(sender, store, columns, oldStore, the, eOpts) { for (var i = 0; i < columns.length; i++) { columns[i].editor = {selectOnFocus: true}; }; columns[1].editor = {selectOnFocus: true, listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; }
  7. No problem! (Sorry, that I requested clarification many times!...) function store.load(sender, records, successful, eOpts) { sender.grid.getSelectionModel().setCurrentPosition({row: 1, column: 5}); } Best regards.
  8. I'm sorry I did not understand the question ... ie, please clarify again ...
  9. try: function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[1].setWidth(200); columns[2].setWidth(500); }
  10. And add this code too. This allows you to move to another column in edit mode: UniDBGrid1 -> ClientEvents -> ExtEvents add reconfigure function function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[1].editor = {listeners: { specialkey: function(field, e) { if (e.getKey() == e.TAB) { sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5}); } } } }; } Try... Best regards.
  11. Hi Kalvaitir. One of the possible solutions: UniDBGrid1 -> ClientEvents -> ExtEvents replace keydown function: function keydown(e) { if (e.keyCode == 9 && this.panel.uniCol == 1) { this.panel.getSelectionModel().setCurrentPosition({row: this.panel.uniRow, column: 5}); } } Does not work if the cell is in edit mode ... Try Best regards
  12. http://forums.unigui.com/index.php?/topic/4354-dbgrid/&do=findComment&comment=21324 (in Portuguese)
  13. Sherzod

    DBGrid

    Olá Kalvaitir. (Traduzido por Traduz Google) Se eu entendi a pergunta. 1. Se você não usar "columns.editor", então você pode: UniDBGrid1 -> ClientEvents -> ExtEvents -> adicionar reconfigure: function reconfigure(sender, store, columns, oldStore, the, eOpts) { columns[1].editor = {selectOnFocus: true}; // for all columns for (var i = 0; i < columns.length; i++) { columns[i].editor = {selectOnFocus: true}; } } 2. Se você usar "columns.editor", então você pode: Por exemplo, as columns [1].editor = UniEdit1; UniEdit1 -> ClientEvents -> ExtEvents -> adicionar focus: function focus(sender, the, eOpts) { sender.selectText() } Experimente... Atenciosamente.
  14. Hi Hamid. You tried to search in the forum? Sincerely.
  15. Hi erdal. use typeAhead... UniComboBox1 -> ClientEvents -> UniEvents -> [Ext.form.field.ComboBox] add. function beforeInit(sender) { sender.typeAhead = true; } autocomplete - if the value of a single. try... Best regards.
  16. Hi ZigZig. One way to solve: function beforeInit(sender) { sender.id = "MyButton1"; } But be careful with this approach (there is a chance to give the same ID for multiple objects) ! Try... Best regards.
  17. Hi Erich. Error shows or? I think firstly you need to add is not in CustomCSS, add in CustomFiles. Secondly, I added the script, but there shows an error "Could not decode media resource data: audio / wav; base64, / / ​​uQRAAAAW ..." Maybe better way to use, so: var snd = new Audio("file.wav"); snd.play(); Best regards.
  18. Hi Taha. can it help?: http://forums.unigui.com/index.php?/topic/3483-a-microsoft-excel-grid-plugin-for-ext-js-4/?hl=excel best regards sorry, you use VCL mode?...
  19. Hi Eduardo. Hide: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSession.AddJS(UniScrollBox1.JSName + '.setBodyStyle("overflowY:hidden !important");'); end; Show: UniSession.AddJS(UniScrollBox1.JSName + '.setBodyStyle("overflowY:auto");'); Try... Best regards.
  20. Hi Erich. Scrollbox position relative to what? If relative to the screen it is possible as follows: scrollbox.jsname + '.getX()' scrollbox.jsname + '.getY()' Sorry scroll position: scrollbox.jsname + '.body.dom.scrollTop' //Y scrollbox.jsname + '.body.dom.scrollLeft' //X Best regards.
  21. Hi mehmet pak. http://forums.unigui.com/index.php?/topic/3666-the-fixedcells-of-stringgrid-can-be-edited-how-to-resolve%EF%BC%9F/&do=findComment&comment=17613 http://forums.unigui.com/index.php?/topic/3666-the-fixedcells-of-stringgrid-can-be-edited-how-to-resolve%EF%BC%9F/&do=findComment&comment=17618 Best regards.
  22. Hi wxb_km. Basically, your question should be solved as follows: 1. Need to use the function cellclick(sender, metaData, td, cellIndex, record, tr, rowIndex, e, eOpts) 2. Here cellIndex - is the column index and rowIndex - the index of the row. http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.View-event-cellclick 3. And use it to get the value: sender.store.getAt(rowIndex).get(cellIndex) i.e.: function cellclick(sender, metaData, td, cellIndex, record, tr, rowIndex, e, eOpts) { alert(sender.store.getAt(rowIndex).get(cellIndex)); } But in my case (I use UniGUI 0.94.0.1023, under certain circumstances), I think some of the variables swapped! For me works if I do so: function cellclick(sender, metaData, td, cellIndex, record, tr, rowIndex, e, eOpts) { alert(sender.store.getAt(tr).get(td)); } Try... Best regards.
  23. http://forums.unigui.com/index.php?/topic/4320-how-to-store-other-languages-unicode-in-cookies-and-get-it-back-again/&do=findComment&comment=21137
×
×
  • Create New...