Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    34
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default Unanswered: Date picker parent

    Unanswered: Date picker parent


    How can i set the parent to a specified element?
    I have a container(main) which is a hbox.It has two containers(con1 and con2) with flex 1 and 4. I have the date picker field in con2 but the picker slides down from main container.
    I want it to slide up from con2.
    How can i do it?

  2. #2
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    picker.showBy(con2);

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    34
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    I am calling the picker by a datepickerfield.
    How do i call the showBy method?
    Can u plz explain with an example.
    here's my code:
    xtype: 'datepickerfield',
    name:'enddate',
    readOnly:true,
    id:'enddate',
    label: 'Day',
    labelWidth: '35%',
    picker:{
    id:'daypicker',
    yearTo:2020,
    yearFrom:2010
    },

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    Sorry, I misunderstood your question.
    Have you tried renderTo? http://docs.sencha.com/touch/2-1/#!/...r-cfg-renderTo

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    34
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    I tried that but then the picker didn't appeared.
    I tried renderTo in datepickerfield and also in piicker. Nothing worked for me.
    I might be wrong with the syntax. Can u plz help me out with the syntax.
    I want the picker to appear in the container with id- feature,so I wrote
    Code: rendeerTo:Ext.get('feature'),
    Is this the correct way?

  6. #6
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    stretchY:true
    I write English by translator.

  7. #7
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    When feature is your id, it should be renderTo: Ext.Viewport.down('#feauture')

    But I justed tested this and it doesn't make any difference.
    I guess a picker is never displayed inside a container but always on top level.

  8. #8
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    34
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    this didn't help.
    can u please help me out with this. I need that picker inside my container.
    I tried out something and it worked but it wasn't the best way.
    Code:


    xtype: 'datepickerfield',
    flex:1,
    width:'50%',
    label: 'Day',
    id:'startday',
    labelWidth: '35%',
    value:new Date(),
    picker:false,
    listeners:{
    focus:function(){
    var datePicker = Ext.create('Ext.picker.Date',
    {
    yearTo:2022,
    yearFrom:2012,
    listeners:{
    change:function(picker,value){
    Ext.getCmp('startday').setValue(value);
    },
    painted:function(){
    var value=Ext.getCmp('startday').getValue();
    this.setValue(value);
    }
    }
    });
    Ext.getCmp('addevent').add(datePicker);
    datePicker.show();
    }
    },


    This way, i have the date picker inside the container but this is not the correct way..
    Can u please figure a simple way.

  9. #9
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    34
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    Can anyone help me out with the above problem

Thread Participants: 2