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
0
votes
0 answers

Give partial view an object after a post

I am relatively new to programming C# with ASP.NET MVC and I have a question. I am building some kind of cinema add show feature. I currently got the code where i can get all the CinemaShows with the right HallID based on a selected date (and send…
0
votes
1 answer

Prevent instance variable to encode in html within js file

I have an instance method in my controller, for example @instance_var = [{:id=>7142, :t_id=>"5888", :date=>Mon, 10 Mar 2014, :name=>"test"] From my controller, I have rendered a js to call a partial file. In this js file, my instance…
Radix
  • 2,527
  • 1
  • 19
  • 43
0
votes
2 answers

Render partial Error in ruby on rails

I have the following method, to throw a 404 if the request is made for xml,json or html. def render_error(code, status_type = nil) @error = ErrorMessage.new(code, status_type) respond_to do |format| format.any(:html, :json) { render…
user3438489
  • 309
  • 2
  • 5
  • 14
0
votes
1 answer

rails render collection and locals

I am trying to render a partial from within a js.erb file which has both a collection AND a local variable passed to it. Everything works fine except I cannot access the local variable in the view. I have tried the following: <%=…
mahi-man
  • 4,326
  • 2
  • 25
  • 36
0
votes
1 answer

Yii render variable not view file

question is: Does Yii have any method(s) to render variable with code in it? Default: $this->render('site/index'); where site/index is path to view file. What I need to do is: $content = '
0
votes
1 answer

Call another controller action using renderPartial

i have problem in calling action from different controller using renderPartial. I have one controller 'SiteController'. In which i call action from another controller 'AbcController'. $this->renderPartial('Abc/_jobList',array('value'=>$value)); But…
Dhara
  • 1,431
  • 4
  • 29
  • 47
0
votes
0 answers

Rails 4 object not saving when rendering form in another model

I have a Call model nested under Contact, a Contact has many calls. In the Edit#Contact view, I'm rendering the form to create a new call. When I submit the form, params are getting submitted, but the new Call object is not saved. Note that if I…
0
votes
1 answer

renderPartial different model Yii several models working but not all of them

i have a View that combines many models and I make a tab that each contains different models this is my script at the view widget( 'booster.widgets.TbTabs', array( 'type' => 'tabs', 'tabs' =>…
user3390954
  • 3
  • 2
  • 5
0
votes
1 answer

javascript inside the rendered page is NOT rendered in YII render partial

I am trying to render a page as below from my controller $this->renderPartial("_ReservationDetails",array('rowarray'=>$rowarray,'CalendarID'=>$CalendarID),false,true); in my view file, _ReservationDetails I have the following content .... ... …
Sachy
  • 45
  • 2
  • 10
0
votes
1 answer

Rails render behavior, passing and evaling a variable, is it safe?

I have a view with a lot of equal items that only change the item name, to keep DRY I've refactored this into a partial. My question is, if I send the type_oil, a string variable to the partial, then eval it eval("#{type_oil}_path") will it be…
madstap
  • 1,552
  • 10
  • 21
0
votes
1 answer

asp.net-mvc RenderPartial onclick

Greetings, I have an asp.net mvc application. I have some links that corresponds to clients names. When user clicks on this link I would like to show an information of clicked client and additionally a textarea where user shall be able to write…
niao
  • 4,972
  • 19
  • 66
  • 114
0
votes
1 answer

load view on checkbox checkevent in ASP.NET MVC

In an ASP.NET MVC View , I have checkbox control @Html.CheckBoxFor( model => model.ServiceListDetails.IsCargoLiquidCall, new { id = "chkCargoLiquid"} ) Cargo Call (Liquid) @Html.CheckBoxFor( model =>…
Lax
  • 115
  • 1
  • 1
  • 12
0
votes
0 answers

Render Partial View to String and Convert to PDF

Is there a way to render my Partial View to String or Html? and used that to convert to PDF? I guess, the only item I need to accomplish is to Render my Partial View to String or HTML, if it's possible. I already have a tool that can get .htm/.html…
carl
  • 103
  • 1
  • 12
0
votes
4 answers

Javascript embedded ruby render partial local call, how to pass a variable's value

On Click I call a javascript where I have captured the radio button value into a variable in the javascript. I then call a render partial passing this radio button variable as local. I get the error: undefined local variable or method…