Questions tagged [onrender]

Execute custom JavaScript code after rendering

Execute custom JavaScript code after rendering.

function in R: https://www.rdocumentation.org/packages/htmlwidgets/versions/0.9/topics/onRender

function in w2ui: http://w2ui.com/web/docs/1.5/common.onRender

onRender in Javascript answer: Looking for javascript event equivalent to 'onRender'

44 questions
0
votes
0 answers

Execute JS code after the photo has started downloading with ht

I am using html2canvas and Canvas2Image in order to get a screenshot of a map on my screen. The functionality is running on a button click like this: $(document).ready(function() { $("#screenshot2").click(function(){ …
user1919
  • 3,818
  • 17
  • 62
  • 97
0
votes
1 answer

Shiny actionButton() output in onRender() function of htmlWidgets

My goal is to create a script where initially a blank plotly graph is displayed. If the user clicks on a Shiny actionButton saying "Add points", then points will be added to the plotly graph via the onRender() function of htmlWidgets. This would be…
user2808302
0
votes
2 answers

How to display render status in a WPF form?

I'm overriding WPF's OnRender to draw complex graphics. This may rarely take a long time. I would like to indicate to the user that the app did not crash, but is "merely" taking a long time to render. How would I do that? It seems not possible to…
mafu
  • 31,798
  • 42
  • 154
  • 247
0
votes
1 answer

Removing old trace and adding new trace each time user interacts in onRender htmlwidgets

I am aiming to make a plot using the onRender() function in the R package htmlwidgets in which a user can click on a point and a thick gray semi-transparent line is drawn. I have the crux of it working as is shown in the code…
user1830307
0
votes
1 answer

global function and global variable in BIRT and access it from onRender of an element

I am working on BIRT crosstab report. In my report i need to create a global array variable and need to populate the array variable based on the column count of crosstab. I am calculating the columnCount in onRender event of the crosstab and and i…
Manikandan Arunachalam
  • 1,470
  • 3
  • 17
  • 32
0
votes
2 answers

WPF OnRender doesn't work

I write a control that derived a class from the FrameworkElement and overrode its OnRender method. Inside this method, there is a DrawLine animation by providing an AnimationClock instance to drawingContext.DrawLine method. It works well if there…
RambleInX
  • 143
  • 11
0
votes
2 answers

OnRender method doesn't display a Rectangle with the thickness set to a dependency property in WPF

I've defined two UserControls : Drawing: contains a CustomCanvas that derives from Canvas. Control: contains a Button and is used to change the GlobalThickness property in MyViewModel.cs The CustomCanvas has a custom dependency property named…
Vahid
  • 5,144
  • 13
  • 70
  • 146
0
votes
1 answer

C++/cli override OnRender Event wpf

i try to bring a wpf "fire" (http://www.smartypantscoding.com/content/old-school-fire-algorithm-modern-day-wpf) Example to c++/cli. I translated it with a tool to c++/cli, but the overriden "OnRender" Event never get fired. So i see the Window like…
user3600403
  • 339
  • 1
  • 2
  • 18
0
votes
1 answer

Line is not displayed on startup but becomes visible on resize (WPF)

I have a WPF application where a line shape is only displayed when the application window is resized, as shown here: The red line is drawn on-the-fly, it is not defined in XAML. It displays fine. The blue line is defined in XAML, but its…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
0
votes
1 answer

DrawGeometry slow

I have a set of Coordinates that is drawn on my override method OnRender using DrawGeometry. One of the Polygons im trying to draw is 121000 points which is a lot. This slows down my map control. Also when this OnRender happens the points are…
Ockert
  • 3
  • 4
0
votes
0 answers

WPF Ruler Custom Control which tracks mouse and moves gridline

Im working on drawing application. I made custom ruler control but i stucked in gridline support. My ruler looks like this: https://i.stack.imgur.com/dRUE3.jpg RulerControl OnRender method: protected override void OnRender(DrawingContext…
Zafer Ayan
  • 791
  • 1
  • 7
  • 15
0
votes
2 answers

showing in jquery invalid date?

$(function () { debugger; var nowTemp = new Date(); var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0); var checkin = $('#_startdate').datepicker({ language: 'en-US', …
R K Sharma
  • 845
  • 8
  • 23
  • 42
0
votes
2 answers

ExtJS How to override onRender so that I can get correct component?

I'm trying to get the size of a div that rendered as a component. Ext.define('EDS.view.selector.Container', { extend: 'Ext.panel.Panel', alias : 'widget.selectorcontainer', layout: 'fit', initComponent: function(){ …
SolessChong
  • 3,370
  • 8
  • 40
  • 67
0
votes
0 answers

How can you render a path in several locations?

We have a path defined which we would like to render in several hundred different positions during the OnRender override. We know about the PushTransform method on the DC, but that seems to require a new TranslateTransform instance for each render,…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1 2
3