-
Posts
19684 -
Joined
-
Last visited
-
Days Won
635
Content Type
Profiles
Forums
Events
Everything posted by Sherzod
-
Hello, Sorry, not enough information I think Can you provide additional information?
-
Hello, Which build are you using? Can you give us a little more details?
-
Hi, One possible solution: type TExUniCustomDBGrid = class (TUniCustomDBGrid) end; procedure TMainForm.UniButton1Click(Sender: TObject); var I: Integer; begin for I := 0 to UniDBGrid1.Columns.Count-1 do UniDBGrid1.Columns[I].Menu.MenuEnabled := False; TExUniCustomDBGrid(UniDBGrid1).DoConfigureJSColumns(UniDBGrid1.DataSource.DataSet); end;
-
Hello, One possible solution: Uses ... , UniGUIJSUtils; procedure TMainForm.UniButton14Click(Sender: TObject); begin UniCanvas1.JSInterface.JSCode('var me='#1'._cc_; if (me) {me.fillStyle="'+ uniColor2Web(clGreen, 1) +'"; me.font="20px sans-serif"; me.fillText("test", 100, 100)};'); end;
-
Или же, используйте так...: 1. ClientEvents -> UniEvents -> function beforeInit: function beforeInit(sender, config) { config.cls='customVGrid'; } 2. UniServerModule -> CustomCSS: .customVGrid .x-grid-cell-inner { white-space: initial; }
- 4 replies
-
- unidbverticalgrid
- column resize
-
(and 1 more)
Tagged with:
-
Добрый день, Попробуйте этот Custom CSS, UniServerModule -> CustomCSS: .x-grid-cell-inner { white-space: initial; }
- 4 replies
-
- 1
-
- unidbverticalgrid
- column resize
-
(and 1 more)
Tagged with:
-
Добрый день, А что в логах ?
-
Hi Cristian, Use setText() instead of text
-
Yes, very good!
-
Thank you, I will check your testcase
-
Hi, http://forums.unigui.com/index.php?/topic/10898-progress-information-for-tunifileupload/&do=findComment&comment=58979
-
Отлично!
- 14 replies
-
- grid
- dataset.locate()
-
(and 1 more)
Tagged with:
-
Добрый день, Попробуйте это решение: procedure TMainForm.UniButton1Click(Sender: TObject); begin if ClientDataSet1.Locate('Id' ,90, []) then begin //UniSession.AddJS('setTimeout(function(){' + UniDBTreeGrid1.JSName + '.getView().getNode('+ UniDBTreeGrid1.JSName +'.uniRow).scrollIntoView()}, 500)'); UniDBTreeGrid1.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelectionModel().getSelected().getAt(0))}, 100);'); end; end;
- 14 replies
-
- 1
-
- grid
- dataset.locate()
-
(and 1 more)
Tagged with:
-
Firstly, Congratulations, I think you are making a great product! Secondly, Can you make a simple testcase for this (with UniSpeedButton and UniHTMLFrame with your logic (without FabricJS))?
-
Можете сделать небольшой тестовый случай ?!
- 14 replies
-
- grid
- dataset.locate()
-
(and 1 more)
Tagged with:
-
Вы пробовали увеличить второй аргумен функции setTimeout?: setTimeout(fn, 500) к примеру
- 14 replies
-
- grid
- dataset.locate()
-
(and 1 more)
Tagged with:
-
Добрый день, Я предполагаю что нод который содержит запись, должна быть раскрыта
- 14 replies
-
- grid
- dataset.locate()
-
(and 1 more)
Tagged with:
-
Hi, To start, I will try to give here gradually, JS functions for these features...
-
Maybe something like this as one of the possible solutions 1. UniStringGrid -> ClientEvents -> ExtEvents -> function edit(editor, context, eOpts): function edit(editor, context, eOpts) { var ctx=context; ajaxRequest(this, '_edit', [ 'rowIdx='+ctx.rowIdx, 'colIdx='+ctx.colIdx, 'oldValue='+ctx.originalValue, 'newValue='+ctx.value ] ); } 2. UniStringGrid -> OnAjaxEvent: procedure TMainForm.UniStringGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var rowIdx, colIdx: Integer; oldValue, newValue: string; begin if EventName = '_edit' then begin // some conditions if (Params.Values['rowIdx']<>'')and(Params.Values['colIdx']<>'') then begin rowIdx := StrToInt(Params.Values['rowIdx']); colIdx := StrToInt(Params.Values['colIdx']); oldValue := Params.Values['oldValue']; newValue := Params.Values['newValue']; // // some conditions // Params.Values['oldValue'] // Params.Values['newValue'] // (Sender as TUniStringGrid).Cells[colIdx, rowIdx] := ''; (Sender as TUniStringGrid).Cells[colIdx, rowIdx] := oldValue; end; end; end;
-
I will try to analyze and let you know
-
The code should be something like this, and you should put it in ClientEvents or in CustomJS: YourButtonJsName.setDisabled(true/false);
-
Well, this code is not a client side code
-
Thank you for the update
-
Sorry, please give more details How do you want to check the value?