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
5
votes
3 answers

Yii ClientSide Validation on Render Partial not Working

I have a Yii form which calls a render partial from another model (team has_many team_members). I want to call via ajax a partial view to add members in team/_form. All works (call, show, save) except for ajax validations (server and client side).…
groovekiller
  • 1,122
  • 2
  • 8
  • 20
4
votes
1 answer

Existing MVC website - integrating Telerik MVC Grid to use ServerSideEditing

I have an existing MVC site, built some years back, and I am now removing all my custom grid code with Telerik's MVC Grid. I wish to utilise the ServerSide editing but the examples show the SourceCodeFile scaffolding on a single control…
4
votes
1 answer

validating form which is rendered using renderPartial in yii

I have more then one forms on one page and I am rendering one form using renderPartial, now if I want to validate it using ajax validation it don't work. view code beginWidget('CActiveForm', array( …
Irfan
  • 41
  • 3
4
votes
2 answers

Can not pass variables to partial (Rails5)

I got such a problem - there is a partial and I can not pass a variable there: in partial I have; <%= object.title %> How I pass variables: <%= render :partial => 'shared/post_preview', :locals => { :object => article } %> the error I see looks…
Neon_10
  • 711
  • 2
  • 7
  • 19
4
votes
3 answers

Reuse js.rjs files in Rails?

i have an .js.rjs file, that must be used in many places. How can i reuse it ? For example, in my .js.rjs file i need something like this: page << ( render "widely_used_stuff" ) where "widely_used_stuff" is a widely_used_stuff.js.rjs file, that…
AntonAL
  • 16,692
  • 21
  • 80
  • 114
4
votes
2 answers

jQuery partial page refresh after form submit

When using jQuery to submit a form is it possible to place the resulting page (after the submit) inside another HTML element? I'll try to make this clearer. Up to now I've been using Callback methods that among others do…
heeboir
  • 729
  • 1
  • 9
  • 26
4
votes
2 answers

Render ASP.NET MVC string to View without HttpContext or ControllerContext?

I need to render an ASP.NET MVC view to a string so as to be able to send it via an email (it is an order confirmation email defined in an .ascx file ). I've successfully been able to render an ASP.NET MVC View to string using one of the methods in…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
4
votes
2 answers

Rails partial taking too much time to render sometimes

In my views, I am rendering a partial. This is actually a row element that shows up in a table some 500 - 600 times. I have eager loaded all associations. But, the issue is, same partial takes abruptly different render-time some times. My rails…
Nerve
  • 6,463
  • 4
  • 29
  • 29
4
votes
2 answers

Html.RenderPartial does not produce a value

Good day, all. I know that this is a pretty basic question in terms of MVC, but I can not for the life of me get @Html.RenderPartial to not give me errors. I am using VB.NET, and Razor. Most examples that I have found online are written in c#,…
AaronBastian
  • 307
  • 3
  • 13
3
votes
1 answer

Using an EditorTemplate with RenderPartial

Is there an accepted way to render an EditorTemplate using RenderPartial? I put a lot of work into an EditorTemplate that would use JQuery UI autocomplete to let the user choose from a list of companies. (It uses an HTML helper to ensure the right…
Dave
  • 4,375
  • 3
  • 24
  • 30
3
votes
2 answers

Is it possible to render a js.erb without using the respond_to method and using an unconventional filename?

Is it possible to render a js.erb in response to an AJAX request without using the respond_to method? I am asking because of a few reasons: I will only be making AJAX calls to my controllers; I will not be supporting any other content types (i.e.,…
John
  • 9,254
  • 12
  • 54
  • 75
3
votes
1 answer

Rails 3 ajax update partial doesnt work without page refresh

I'm working on a Rails 3 shopping cart. I've a catalog page that displays all products and one partial that gives a gist of the shopping cart. So whatever product a user adds to the cart is displayed in this shopping cart partial. Now, this ain't…
rb512
  • 6,880
  • 3
  • 36
  • 55
3
votes
2 answers

Javascript not executing after partial rendering

I have a asp.net panel that is initially hidden and is shown when a button is clicked. There is javascript inside that panel and it doesn't execute after the panel is set to be visible. I can see that javascript function gets outputted on page but…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
3
votes
1 answer

Rails render - get partial source instead of output HTML

I don't really have a big issue and my bad if it's obvious but I couldn't find this on SO or google which is quite rare, anyways... I'm using Ruby on Rails to create a pattern library which ofcourse contains code snippets to go along with examples,…
SidOfc
  • 4,552
  • 3
  • 27
  • 50
3
votes
1 answer

AJAX Partial Rendering issues for the default page in IIS 7 when using custom http module

The problem When I try to make a AJAX partial update request (using the UpdatePanel control) from the default page of an IIS7 web site, it fails- instead of returning the html to be updated, it returns the entire page, which then causes the MS AJAX…
WiseGuyEh
  • 18,584
  • 1
  • 20
  • 20