Rajiv Pingale
Rajiv Pingale

Reputation: 1015

YII CJUIdatepicker Not Working With RenderPartial View

I don't know whether this is question is asked before or not but i stick in this code.

I have used Twitter Bootstrap Modal to show Pop Up.

Now in my pop up window I have included following code (in View)

<?php
         $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'name'=>'publishDate',
        'options'=>array(
            'showAnim'=>'fold',
        ),
        'htmlOptions'=>array(
            'style'=>'height:20px;'
        ),
    ));

?>

Now the problem is I have called this modal from Controller as

$this->renderPartial('addLaunch', array('model' => $model), false, true);

This date picker is not working Modal but working if I Added in Main layout.

Upvotes: 2

Views: 4513

Answers (2)

dynaken
dynaken

Reputation: 1

Version 1.1.16 has a problem that if you use the same update DOM ID that gets repeatedly updated if you click another ajax link, it'll stop working. It works the first time but then it'll stop. Going back to version 1.1.15 works flawlessly.

Upvotes: 0

Onkar Janwa
Onkar Janwa

Reputation: 3950

Some times yii widgets does not register its js & css files, still i did not found in which case it happens but it has a solution you should register it's js files externally.

I have suggested some solution to register js & css files of widgets. Please have a look at this link Include CSS,javascript file in Yii Framework

Upvotes: 1

Related Questions