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

html2pdf not converting arabic fully and RTL is a bit messed up

I'm using html2pdf and passing $this->renderpartial('view',array(..),true) to the $content. Here's the code: $content = $this->renderpartial('view',array(..),true); $html2pdf = new…
omar-ali
  • 507
  • 4
  • 14
0
votes
1 answer

Multiple models associated with devise user - fill in one model based on selection of role

Im using devise for user registration with the fields: email, password, and role. When the user selects a role from a select box (Student, Teacher, Admin), I want the app to render the nested fields for one of these roles. Each role stores different…
0
votes
2 answers

Multiple model without relation table in one page in YII

I'm beginner in YII. I want ask, I have two model with diferent table and no relation. example. Model User and Model Product. so in User Controller my code is public function actionIndex() { $model= new Product; $dataProvider=new…
Prabu Karana
  • 302
  • 1
  • 4
  • 15
0
votes
1 answer

Creating a partial that can take a collection

I'm having a problem with a partial that displays takes in a collection of @users, and then creates a report like: _users.html.erb: ... <% @items.each do |u| %> .. <% end %>
So now in my home#index erb page, I want to…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
0
votes
2 answers

Yii: include form inside form

There's a way to include form inside another form using the same action? I tried with renderPartial but doesn't work. eg: $this->renderPartial('//utente/_form', array('model'=>new User, 'condition'=>$condition, 'form' => $form, 'rule' => '3'),…
mariobros
  • 859
  • 4
  • 12
  • 31
0
votes
2 answers

Javascript for CActiveForm isnt available after renderPartial

I am loading a form (depending on the selected option of a dropDownList) with an ajaxcall (which triggers a renderPartial) The ajaxcall looks like: $("#dropDownList").change(function() { var selected = $(this).val(); $.ajax({ …
spyfx
  • 1,311
  • 4
  • 14
  • 24
0
votes
2 answers

difference between partialsubmit and singlesubmit in ICEfaces

I know the partial submit is used in icefaces 1.x, singlesubmit in icefaces 2.x and the tag in icefaces 3.x. May someone tell me what is the substantial difference between them? thanks.
antopas
  • 23
  • 5
0
votes
3 answers

RoR remember state in partial renderer

how can I remember some state within a partial renderer? Problem at hand: my partial _testitem.html.erb renders table rows of a collection of testitems. A Testitem has an id and a sortkey and the partial is called with <%= render :partial =>…
jhwist
  • 15,201
  • 3
  • 40
  • 47
0
votes
1 answer

How to render a html partial in another html page?

I need to render a simple HTML page as partial within this div.It is a simple HTML5 application, not of MVC architecture hence Html.RenderPartial is not working.Any help??
Rajarshi
  • 381
  • 3
  • 10
0
votes
0 answers

Render Partial view with Reloaded content

I'm Working with Asp .Net Mvc3,following is my jQuery, $('#ddlVertical').change(function () { var vertical = $("#ddlVertical").val(); $.get("Vertical", { "vertical": $.trim(vertical) }, function (data) { …
user2514925
  • 931
  • 8
  • 33
  • 56
0
votes
1 answer

redirect_to causes template is missing error

I am making a transition from Rails 2 to Rails 3. _role_item.html.erb view: <% if @employee.has_role?(role.id) %> <%= link_to image_tag('pman/checkbox_unchecked.jpg'), action: 'add_role', :employee_id => @employee.id, :role_id => role.id…
0
votes
2 answers

Yii renderPartial with external javascript

I have a page view that makes an ajax call and updates the contents of the page with renderPartial. So page.php -> _pagePartial.php (ajax update) in page.php I want to include the javascript files once, then have the DOM modifications apply after…
bonez
  • 685
  • 1
  • 16
  • 39
0
votes
1 answer

Asp.Net MVC - RenderPartial - Create in a List view

I got a page that lists all my articles (Articles/List.aspx). I also got a control that create article (Article/Create.ascx). I will like that my List.aspx page that's render the Create.ascx to be able to create article. I know that in MVC, the…
Melursus
  • 10,328
  • 19
  • 69
  • 103
0
votes
1 answer

mvc3 calling PartialViews inside ActionResult to put inside DIVs

Quick Recap:I have a car website and I have a simple ActionResult with authorization each user that has access to that Controller will have 1 Make of car either a BMW,Honda,Ford or Kia, so that as soon as they login they see the make of car's…
user1949387
  • 1,245
  • 3
  • 21
  • 38
0
votes
1 answer

rails render partial not working

this is my simple code <%= render :partial => '/manage/regions/get_by_country', :locals => {:country_id => @last_search.country_id} %> the @last_search.country_id has value (checked) but while rendering the control seems that the country_id is null…
24sharon
  • 1,859
  • 7
  • 40
  • 65