-
Posts
19814 -
Joined
-
Last visited
-
Days Won
643
Content Type
Profiles
Forums
Events
Everything posted by Sherzod
-
Hi, Sorry, I did not fully checked But, maybe like this for now..: procedure TMainForm.UniButton1Click(Sender: TObject); begin TExUniCustomDBGrid(DBgridLista).DoConfigureJSColumns(DBgridLista.DataSource.DataSet); DBgridLista.CurrRow := 0; end;
-
Hi, I will check it a bit later
-
Can you try this?: procedure TMainForm.UniFormCreate(Sender: TObject); begin with DBgridLista do ClientEvents.ExtEvents.Add ('viewready=function viewready(sender, eOpts)'+ '{'+ //' var tm = new Ext.util.TextMetrics(); '+ ' sender.view.tip = Ext.create(''Ext.tip.ToolTip'', {'+ ' target: sender.view.el,'+ ' delegate: sender.view.cellSelector,'+ ' trackMouse: true,'+ ' renderTo: Ext.getBody(),'+ ' listeners: {'+ ' beforeshow: function updateTipBody(tip) {'+ ' gridColums = sender.view.getGridColumns();'+ ' column = gridColums[tip.triggerElement.cellIndex];'+ ' record = sender.view.getRecord(tip.triggerElement.parentNode);'+ //' tm.bind(tip.triggerElement.parentNode); '+ // fondamentale per utilizzare lo stile della cella per determinare dimensione... //' if (column.dataIndex !== ''-1'' && (column.getWidth() < (tm.getSize(record.data[parseInt(column.dataIndex)]).width) + 5)) {'+ ' if (column.dataIndex !== ''-1'' && (column.getWidth() < (Ext.util.TextMetrics.measure(tip.triggerElement, record.data[parseInt(column.dataIndex)]).width)+5)) {'+ ' tip.update(record.data[parseInt(column.dataIndex)]);'+ ' } else {'+ ' return false;'+ ' }'+ ' }'+ ' }'+ ' });'+ '}'); end;
-
Ok, I will check
-
UniMEDComponent ?
-
Hi, Thanks for the testcase. I will analyze and let you know.
-
UniEdit ClientEvents UniEvents call procedure in custom component
Sherzod replied to FabioMorcillo's topic in General
Hi, Thank you for your interest in UniGUI! You can use ajaxRequest in handler fn: function beforeInit(sender, config) { config.triggers = { search: { cls: 'fa fa-ellipsis-h', handler: function() { ajaxRequest(sender, '_search', ['val='+sender.getValue()]) } } } } And OnAjaxEvent on the server side: procedure TMainForm.UniEdit1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_search' then begin ShowMessage(Params.Values['val']); end; end; -
function hide(sender, eOpts) { // ajaxRequest(sender, '_hide', []); } procedure TMainForm.UniPanel1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_hide' then begin // // Your logic end; end;
-
Hello, One possible solution I think UniServerModule -> CustomCSS: #loading-mask, #loading-indicator, #loading { display: none; }
-
One possible solution using ClientEvents for this: function hide(sender, eOpts) { // ajaxRequest(...) } function show(sender, eOpts) { // ajaxRequest(...) }
-
UniEdit ClientEvents UniEvents call procedure in custom component
Sherzod replied to FabioMorcillo's topic in General
Can you please specify which edition and build of UniGUI are you using? -
Это тоже реализуемо. Но не лучше ли на стороне сервера попробовать, в обработчике Вы также можете использовать UniSession.AddJS к примеру?
-
используйте TUniMenuItem -> OnClick событие
-
Простите, Вы по прежнему используете эту бета версию?! К сожалению, эта версия уже не поддерживается.
-
http://forums.unigui.com/index.php?/topic/8155-unipopupmenu-beforeinit-for-customizing/
-
Добрый день, На форуме есть решение, на примере, как настроить конфиги для UniPopupMenu, если не ошибаюсь.
-
Пожалуйста, уточните используемую версию и издание UniGUI.
-
Да, (я отредактировал, удалил некоторые посты)
- 14 replies
-
Yes, correct. Sorry, you're right Once again, I was looking for a solution on the client side
- 14 replies
-
Пробовали на простом тестовом примере?
-
Я не смог воспроизвести...
-
Вы создаёте контролы динамически ?
- 14 replies
-
Странно
- 14 replies
-
На рабочем проекте ?
- 14 replies