Questions tagged [viewrendering]

37 questions
5
votes
4 answers

Rendering a view to a string in ASP.NET MVC 2

We need to render an ActionResult to a string to add pages to our internal search engine index. We settled on this solution to render to string. I've run into a problem with the ExecuteResult call used to process the View. Code Snippet: var…
Frank Rosario
  • 2,512
  • 5
  • 31
  • 47
4
votes
2 answers

How to get the current view being rendered inside ZF2

Is there a way to get the current view being rendered inside zend framework 2? I believe this should be possible with the event system but I can't seem to make it work. The reason I want to get this information is so I can automatically include a…
Tom Martin
  • 441
  • 4
  • 5
3
votes
1 answer

Understanding the hidden cost of transparency on Android

I'm watching the video https://youtu.be/wIy8g8yNhNk My first question. As far as I understand from the video, when we draw a View that is opaque, we just put data, roughly speaking, a bitmap to the screen. That's called rendering. Is that right? My…
Maksim Dmitriev
  • 5,985
  • 12
  • 73
  • 138
3
votes
1 answer

Overridden Draw method of ViewRenderer blocks UI

I implement a Xamarin.Forms control. The problem I'm currently experiancing is that an overridden Draw() method of a custom renderer blocks UI (at least for iOS platform). I've googled but with no success. Is is possible to perform the drawing in a…
zavolokas
  • 697
  • 1
  • 5
  • 20
3
votes
1 answer

Error handling last chance to catch View Rendering exception

I've got ErrorController which customly handles my website errors. It's pretty standard: public class ErrorController : BaseController { public ActionResult Error404(Exception ex) { return View(); } public ActionResult…
Agat
  • 4,577
  • 2
  • 34
  • 62
2
votes
2 answers

Zend overwrite default view object

How can I overwrite the default view object in zend framework so I could have the custom one? class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { function _initViewHelpers() { $this->bootstrap('view'); $view =…
brian
  • 21
  • 2
2
votes
1 answer

Micronaut view rendering without template engine

Can micronaut render static files? I added compile 'io.micronaut:micronaut-views' into build.gradle The Controller: @Controller("/main") public class MainController { @View("index.html") @Get("/") public HttpResponse index() { …
marcovmx07
  • 23
  • 6
2
votes
1 answer

Xamarin.Forms ViewRenderer audio doesnt stop on homepage/backbutton

I am new so excuse me if I dont ask a question right or post enough information. I am new to creating mobile applications and i am using Xamarin.Forms to create a custom view. with this view I am using an Android ViewRenderer to play audio/video…
2
votes
1 answer

Uncaught ReferenceError: '' is not defined

Using: VS'12, asp.net MVC4 Internet Application, MVC, EF Code First + Kendo UI Error Uncaught ReferenceError: filterCountys is not defined (anonymous function) However It is defined ... ??? I'm unsure if it makes a difference but this code is in…
Pakk
  • 1,299
  • 2
  • 18
  • 36
2
votes
1 answer

Backbone.js view render error

If I do this - every thing works great - var UserList = Backbone.View.extend({ el: '.page', render: function(){ var users = new Users(); users.fetch({ success: function() { …
shannoga
  • 19,649
  • 20
  • 104
  • 169
1
vote
0 answers

How to Call a WebController From a RestController And Get A Rendered Template in Response in String In Java

I have invoice-service written in java (Spring Framework) where there are two controllers- InvoicePageController - Annotated with @Controller annotation and a handler generateInvoice inside it which returns a view 'invoice' a html template in the…
1
vote
1 answer

SwiftUI: How to get the HostingController View/Content maxHeight by given width?

I'm trying to get the maxHeigth of an UIHostingController-View/Content and know only the width. I want to create a PDF Document based on my view. Everything works fine but I don't know how to get the maxHeight of the view/content so the PDF knows…
1
vote
1 answer

How to export view to the excel ASP.NET MVC

I'm not an ASP.NET MVC expert but I need to handle a small project and need some help. Basically what I'm doing is an MVC project for submitting or listing some text reports and I used database first approach on the model. So I have this model of…
Furkan Keskin
  • 11
  • 1
  • 5
1
vote
1 answer

FullCalendar viewRender: Append text in listDay-View

I'm using FullCalendar by Adam Shaw. To show all events on a day, I'm using the listday-view. I need to show a link in the header of the table. I tried the following code, but it doesn't work. viewRender: function (view, element) { …
The Wro
  • 13
  • 1
  • 7
1
vote
1 answer

Sitecore Glassmapper Fields not editable

Hi I am new to glassmapper and i am trying to create a simple view rendering. While the view works, i am not able to edit it in experience editor. Is there like a setting that i should turn on??? My View is as simple is this: @inherits…
1
2 3