Search the Community
Showing results for tags 'extevents'.
-
function window.afterrender(sender, eOpts) { var PhysicalWidth = screen.width; var PhysicalHeight = screen.height; var ScreenWidth = screen.availWidth; var ScreenHeight = screen.availHeight; var BrowserWidth = Ext.getBody().getViewSize().width; var BrowserHeight = Ext.getBody().getViewSize().height; var BrwsrInnerWth = window.innerWidth; var BrwsrInnerHgt = window.innerHeight; var r = window.orientation; ajaxRequest(MainForm.window, '_Rendered_', ["r="+r, "ScreenWidth="+ScreenWidth, "ScreenHeight="+ScreenHeight, "PhysicalWidth="+PhysicalWidth, "PhysicalHeight="+PhysicalHeight, "BrowserWidth="+BrowserWidth, "BrowserHeight="+BrowserHeight, "BrwsrInnerWth="+BrwsrInnerWth, "BrwsrInnerHgt="+BrwsrInnerHgt ]); } // ONLY FIRES bclose, cinfo, afterrender(not my one), resize procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin ////////////////////////////////////////////////////////////////////////////// if SameText('_Rendered_', EventName) then begin // NEVER FIRES Please advise - Thanks in advance
-
Hi there! Recently i have updated my Unigui to the version 1.90.0.1496. All the CSS and customizations i had before, is not truly working anymore. So, basically i had the CSS tags on ServerModule -> CustomCSS. And in my UnimButton -> ExtEvents (added or painted). But anyone of these not worked. Anyone had the same problem? Thanks anyway!
-
Hi people! Is there a way to assing an "id" or a "name" property to a component to be used in the conversion to html code? I want to set a inputMask (using the ExtEvents >> afterrender) to a Unidbedit that depends on the value of another Unidbedit, for example: UniDbedit1 must have the inputmask "999.999.999-99" if Unidbedit2 equals to "F", otherwise the inputmask should be "99.999.999/9999-99". On afterrender event, I don't know how to access the value of the Unidbedit2. Looking the html code generated, it looks like: <input id="O5D4_id-inputEl" data-ref="inputEl" size="1" name="O5D4"... If I could assing an acquainted name to "id" or "name" propery I wiil be able to define the correct inputmask. Thanks in advance! Marcos
-
Hi, I create one panel at runtime, and add the below extEvent to the panel. However, the page shows blank (no error). vOrderPanel.ClientEvents.ExtEvents.Values['afterrender']:=' function afterrender (sender, eOpts)' + '{Sender.setBodyStyle(' + QuotedStr ('border-radius') + ',' + QuotedStr('20px') + ');}'; can I know how to add the extEvent to the panel at RunTime? Thank You.