Jump to content

Sherzod

Moderators
  • Posts

    19642
  • Joined

  • Last visited

  • Days Won

    634

Everything posted by Sherzod

  1. Hi, One possible solution I guess UniDBGrid -> ClientEvents -> ... function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var me = sender, maxY = 0; me.columnManager.columns.forEach(function(el) { if (el.fedit && el.fedit.getY() > maxY) { maxY = el.fedit.getY() } }); if (maxY > 0) { me.columnManager.columns.forEach(function(el) { if (el.fedit) { el.fedit.setY(maxY - el.fedit.getHeight()); el.fedit.setX(el.fedit.getX() - 5); } }); } }
  2. For what purpose do you want to use it?
  3. You can try to use this JS event: function store.load(sender, records, successful, operation, eOpts) function store.load(sender, records, successful, operation, eOpts) { // }
  4. Hi, Try this solution for now: 1. First, set this config: function treeMenu.beforeInit(sender, config) function treeMenu.beforeInit(sender, config) { config.singleExpand=false; } 2. FullExpand: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniTreeMenu1.JSInterface.JSCode(#1'.getStore().data.items.forEach(function(el){el.expand()});'); end; 3. FullCollapse: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniTreeMenu1.JSInterface.JSCode(#1'.getStore().data.items.forEach(function(el){el.collapse()});'); end;
  5. Hi, You can use this config: http://forums.unigui.com/index.php?/topic/7624-unicalendar/&do=findComment&comment=38953 Best regards,
  6. Hello, Just my opinion. Can you work with the theme of Neptune for example, where more beautifully displayed...?
  7. Hi, As an approximate solution for now procedure TMainForm.UniButton1Click(Sender: TObject); var I: Integer; _llist: string; begin with UniTreeMenu1 do begin SourceMenu.Items[0].Visible := False; _llist := ''; for I := 0 to SourceMenu.Items.Count-1 do if not SourceMenu.Items[I].Visible then if _llist='' then _llist := '"'+SourceMenu.Items[I].Caption+'"' else _llist := _llist + ',"' + SourceMenu.Items[I].Caption+'"'; if _llist<>'' then begin JSInterface.JSCall('getStore().clearFilter', []); JSInterface.JSCode(#1'.getStore().filterBy(function (record){ if (['+ _llist +'].indexOf(record.get("text"))>-1) return false; else return true;});'); end else JSInterface.JSCall('getStore().clearFilter', []); end; end; Best regards,
  8. This post can help you: http://forums.unigui.com/index.php?/topic/7497-tab-spacing-inside-unidbmemo/
  9. Ok, then you can try this: iframe.contentWindow.location.href
  10. Hi, One possible solution like in this post: http://forums.unigui.com/index.php?/topic/9347-tuniedit-selstart/&do=findComment&comment=49258 (Ext.form.field.TextArea instead of Ext.form.field.Text) Ext.form.field.TextArea.prototype._selectSE = function(start, end) { var input = document.getElementById(this.inputEl.id); if ('selectionStart' in input) { input.selectionStart = start; input.selectionEnd = end; input.focus(); } else { // Internet Explorer before version 9 var inputRange = input.createTextRange(); inputRange.moveStart("character", 1); inputRange.collapse(); inputRange.moveEnd("character", 1); inputRange.select(); } }
  11. This means that you can use one of the configurations, i.e. triggers
  12. For security reasons, you can only get the url for as long as the contents of the iframe, and the referencing javascript, are served from the same domain...
  13. First of all please adjust your forum email address: http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/
  14. Sorry, which edition? Are you using a trial edition or ?! In any case, use the latest version!
  15. Hi, Please use this approach for now:
  16. Hi, Try this: ajaxRequest(sender,"geturl" , ["_value="+sender.iframe.src]);
  17. Hi, Like this for example: UniDBNavigator1.DataSource := DataSource2; ?! Or can you please clarify your question in more detail?
  18. Hi, We are online Can you make a simple testcase for this?!
  19. Hi, Can you make a simple testcase with "the starting URL is google.com" ?!
  20. Hi, Yes sorry, Try this: function afterrender(sender, eOpts) { // focus on field var cmp = sender; Ext.QuickTips.init(); Ext.defer(function() { cmp.inputEl.dom.focus(); cmp.inputEl.dom.style.width = "70%"; }, 100); // listen virtual keyboard keys cmp.inputEl.on({ mousedown: function(ev) { if (ev.target.tagName === 'TD') { // We trigger change event only on textfield with the focus if (document.activeElement) { if (document.activeElement.id === cmp.inputEl.dom.id) cmp.fireEvent('change'); } } }, delegate: '#keyboardInputMaster' }); VKI_attach(sender.inputEl.dom); var vkb = cmp.el.query('.keyboardInputInitiator')[0]; if (vkb) { vkb.style.position = 'absolute'; if (cmp.rtl) { vkb.style.left = '0px' } else { vkb.style.right = '0px' } vkb.style.top = '0px'; vkb.style.padding = '3px 1px'; } }
  21. Hello, Which edition and build are you using?
×
×
  • Create New...