Search the Community
Showing results for tags 'unievents'.
-
Hello, I use TUnimDbListGrid to show a personal view of my data but I don't understand why my array doesn't show correctly : On the ClientEvent / beforeInit I have function beforeInit(sender, config) { var htmlRow= '<table style="width: 100%; height: 100%; vertical-align: middle;"> '+ '<tbody> '+ '<tr> '+ '<td><span style="fon-weight: bold; color: #000000; font-size: 16px; width: 100%; display: inline-block;">{2}</span> <span style="color: #808080; width: 100%; font-size: 13px; display: inline-block;">{1}</span></td> '+ '<td style="width: 100px;"><span style="color: #ff6600;">{0}</span></td> '+ '<td style="width: 100px;"><span style="color: #ff6600;">{0}</span></td> '+ '</tr> '+ '</tbody> '+ '</table> '; config.itemTpl= new Ext.XTemplate(htmlRow); } The result is like this and not with align : Somebody can help me (V7.0.0, Delphi 10.4)
-
I have a public integer variable named myval in TMainForm . how can I use it in a function of ExtEvents? I tried it below it works but I don't want myval to update every time. Self.WebForm.JSInterface.JSAssign('myval', [2356]); Is there a command that works like the following? I tried the UniSession.AddJS('TMainForm.myval') but it didnot work because I am new I dont know how to use it . This question has been asked a lot, but I could not find any clearly answer. Thanks Bektas
-
Hi, i created insert and delete buttons on pagingBar of uniDBGrid, but buttons not working OnAjaxEvent in uniDBGrid, how to call new event name from ajaxRequest script ? my script like this below: function pagingBar.afterCreate(sender) { sender.items.items[0].hide(); sender.items.items[8].hide(); sender.items.items[10].hide(); sender.add( [ { xtype: 'label', text: '0', cls: 'grdfooter', padding: '0 0 1 5' }, '->', { xtype: 'button', icon: 'files/images/delete.png', tooltip: 'Delete Registry', handler: function() { ajaxRequest(UniDBKZM, 'delRow', ["slctd="+UniDBKZM.getSelectionModel().getCount()]); } }, {xtype: 'tbseparator'}, { xtype: 'button', icon: 'files/images/ok.png', tooltip: 'Insert Registry', handler: function() { ajaxRequest(UniDBKZM, 'insRow', ["slctd="+UniDBKZM.getSelectionModel().getCount()]); } } ] ); } procedure TFFaturaOnaylamaEkrani2.UniDBKZMAjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); var selectedRows:Integer; begin if SameText(EventName, 'delRow') = True then begin selectedRows := StrToIntDef(Params.Values['slctd'],0); ShowMessage(IntToStr(slctdRows)); end; end; ----------------- thanks,
-
I am trying to set a TUnimEdit Font properties in code, please advise how - thanks in advance. procedure TMyForm.UnimFormCreate(Sender: TObject); var ss: TUniStrings; begin ss.Add('{'); ss.Add(' config.style = "color: blue; font-size: 12px;"'); ss.Add('}'); edtPhone.ClientEvents.UniEvents.Ext.field.Text.beforeinit.AddStrings(ss); end;
- 4 replies
-
- ClientEvents
- UniEvents
-
(and 3 more)
Tagged with:
-
Problem to set UniEvents runtime, example: procedure TFmeCadastroMestre.UniFormCreate(Sender: TObject); ... uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('afterrender=function afterrender(sender, eOpts)'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('{'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add(' sender.emptyText = "123";'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('}'); or EdtCodigo.ClientEvents.UniEvents.Text := 'afterrender=function afterrender(sender, eOpts)'#13#10'{'#13#10' sender.e' + 'mptyText = "123";'#13#10'}'; ... end;