Yii Framework Forum: zii.widgets.jui.CJuiDatePicker - some questions - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

zii.widgets.jui.CJuiDatePicker - some questions Rate Topic: -----

#1 User is offline   reburg 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 114
  • Joined: 15-January 13

Posted 14 February 2018 - 03:07 PM

Sorry,

I am not able to set the
zii.widgets.jui.CJuiDatePicker
at the right position in my form view.

I want to position it below the linked input field.

I tried some HTML options but with no result. The widget remains over the input field. I have to press the ESC key to see the input field.

Also I would like to get the DatePicker dragable if this is possible.

This is my code:
        
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
   'id' => 'date-begin',
   'model' => $model,
   'attribute' => 'Beginn',
   'language' => 'de',
   'htmlOptions' => array(
       'size' => '10',
       'maxlength' => '10',
       'style' => 'top:100px'
    ),
));


Please help.
Greetings from Austria
Ferdinand
0

#2 User is offline   chandran 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 08-October 12
  • Location:Austria

Posted 16 February 2018 - 04:44 AM

Hi Rebug,

Have you checked below links. I hope it can solve your problem

http://www.yiiplaygr...i/ziiDatePicker
http://www.eha.ee/la...view=datepicker
http://www.yiiframew...er-by-examples/
http://demo.bsourcec.../cjuidatepicker
Thanks
chandran nepolean

My own extension:
http://www.yiiframew...sion/ejqueryte/
http://www.yiiframew...uallistboxyii1/

My wiki
http://www.yiiframew...checkboxcolumn/

If it work dont hesitate to click +1 button
0

#3 User is offline   reburg 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 114
  • Joined: 15-January 13

Posted 16 February 2018 - 06:07 AM

View Postchandran, on 16 February 2018 - 04:44 AM, said:



Thank you for answering me.

After I took a more esactly look on my code, I found, that I did not differentiate between options and htmlOptions. But this did not solve my problem. Again the datePicker did not appear right beneath the input field. Then I found out the real reason:

The input field with the datePicker is inside an iframe and this is inside a JQueryUi dialog DIV. Both the height of the iframe and of the dialog were too small.

Sorry for my stupidity.
Greetings from Austria
Ferdinand
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users