Questions tagged [renderpartial]

The concept of rendering only a specific part of any UI. May also refer to the .NET `RenderPartialExtensions.RenderPartial` method or the Ruby on Rails `PartialRenderer`

The concept of rendering only a specific part of any UI. May also refer to the .NET RenderPartialExtensions.RenderPartial method or the Ruby on Rails PartialRenderer

391 questions
12
votes
1 answer

rails 3 render partial with params

I'm having a problem passing some parameters to a partial. No matter what I've tried the params don't pass when the partial is rendered. I am using a jquery tabbed layout, and each tab displays work orders in a particular status and also based on a…
user1214966
  • 273
  • 1
  • 4
  • 10
11
votes
3 answers

ASP.Net MVC and RenderPartial w/ relative paths

I've been playing around with ASP.NET MVC and had a question. Or maybe its a concern that I am doing this wrong. Just working on a lame site to stretch my wings a bit. I am sorry this question is not at all concise. Ok, here's the scenario. When…
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130
10
votes
3 answers

Yii renderpartial (proccessoutput = true) Avoid Duplicate js request

Im creating a site who works with ajaxRequest, when I click a link, it will load using ajaxRequest. When I load for example user/login UserController actionLogin, I renderPartial the view with processOUtput to true so the js needed inside that view…
butching
  • 192
  • 1
  • 4
  • 13
9
votes
4 answers

ModelFactory in ASP.NET MVC to solve 'RenderPartial' issue

The 'RenderPartial()' method in ASP.NET MVC offeres a very low level of functionality. It does not provide, nor attempt to provide a true 'sub-controller' model *. I have an increasing number of controls being rendered via 'RenderPartial()'. They…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
9
votes
2 answers

Render Partial View using Jquery Ajax with variable data

I have already read this post, but I am not sure know to make it work taking data from the user. Here is the ajax jquery I am using. I know (or at least think) that this cant render a partial. But it works all the way until the render fails. I…
dan_vitch
  • 4,477
  • 12
  • 46
  • 69
8
votes
2 answers

Render @object and locals vs render :partial

I want to pass a local variable that contains the origin to come on a specific page, this variable contains just a symbol with the value. When I use this code it works perfect, the origin variable is accessible in the partial : render :partial =>…
SteenhouwerD
  • 1,819
  • 1
  • 16
  • 22
8
votes
2 answers

How can I render a partial page on click a HTML Button?

I am new to MVC3.0 and have to use jquery. I as wondering some one can help with how can I render a partial view page on clicking a HTML Button? I know it is really easy, the button could be called "email to", which will take use to a partialView…
OBL
  • 1,347
  • 10
  • 24
  • 45
8
votes
1 answer

MVC3 RenderPartial caching across multiple pages

Can anyone tell me if its possible to Cache a RenderPartial across multiple pages? I have a RenderPartial for a user profile that shouldn't really ever change unless the user updates their profile. So i dont really want to go back and get his/her…
Andy Danger Gagne
  • 2,107
  • 1
  • 17
  • 26
8
votes
7 answers

Html.RenderPartial call from masterpage

Here is a scenario: Let's say I have site with two controllers responsible for displaying different type of content - Pages and Articles. I need to embed Partial View into my masterpage that will list pages and articles filtered with some criteria,…
Dragan Panjkov
  • 4,302
  • 4
  • 28
  • 26
8
votes
6 answers

Why am I getting 'nil' is not an ActiveModel-compatible object. It must implement :to_partial_path error?

Why am I getting the following error? nil is not an ActiveModel-compatible object. It must implement :to_partial_path. I think the error may relate to the tutorial I'm following is using Rails 3.2 while I'm using Rails 4. Here is the model…
Shoebie
  • 1,263
  • 2
  • 12
  • 24
8
votes
3 answers

render partial on click

I would like to call partials on some standard operations. I am using this method for calling the partial: %li= link_to 'Delete Event', 'javascript:void(0);', :class => 'alert tiny button', :data => {'reveal-id' => :RevealDelete} = render…
Boss Nass
  • 3,384
  • 9
  • 48
  • 90
8
votes
1 answer

Why I cant use Html.RenderPartial in razor helper view File in App_Code Folder?

Simple Razor Helper in App_Code Folder: MyHelper.cshtml @using System.Web.Mvc @helper SimpleHelper(string inputFor){ @inputFor Html.RenderPartial("Partial"); } Simple View in Views/Shared Folder: MyView.cshtml …
smunar
  • 195
  • 3
  • 10
7
votes
1 answer

MVC 3 Changing Model in Views with RenderPage

I'm having problems when trying to change the model of my view in MVC 3. First view (index.cshtml) : @model IEnumerable

Welcome to my frog collection

@foreach(MyProgram.Frog frog in Model) {
Gin
  • 83
  • 1
  • 5
7
votes
3 answers

conditional formatting in rails partials

I am rendering a rails partial and I want to alternate the background color when it renders the partial. I know that is not super clear so here is an example of what I want to do: Row One grey Background Row Two yellow background Row Three…
Josh Moore
  • 13,338
  • 15
  • 58
  • 74
6
votes
5 answers

Is it possible to put just a rails form element in a partial?

My app has a select box for users to choose a "venue". This select box is, as you would expect, in a form. I also have an action somewhere on the page that creates a new venue via AJAX. After the new venue is created, I would like to updated the…
Tony
  • 18,776
  • 31
  • 129
  • 193
1
2
3
26 27