Results 1 to 4 of 4

Thread: EXT-JS 4.2.1 retain the current Position of scrollbar of form - panel

  1. #1

    Default EXT-JS 4.2.1 retain the current Position of scrollbar of form - panel

    I am trying to retain the position of the scrollbar in formpanel to show after form refresh .
    But i am unable to find any solution.Please help me by suggesting solution for this.



    Thanks & Regards

    Rakesh

  2. #2
    Sencha User Jad's Avatar
    Join Date
    Feb 2012
    Location
    annecy france / geneve suisse
    Posts
    149
    Answers
    12

    Default

    Hi

    Maybe try with the form field focus ?

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I don't know of any built-in or easy way of doing this, as with a grid. Please consider sharing if you manage to get this working.

  4. #4
    Sencha User Jad's Avatar
    Join Date
    Feb 2012
    Location
    annecy france / geneve suisse
    Posts
    149
    Answers
    12

    Default

    Code:
    var form = Ext.create('Ext.form.Panel', {
    items: [
    ...
    {
    xtype: 'textfield',
    listeners: { focus: function (field) { form.scroll_pos = field }}
    }
    ...
    ]
    refreshForm: function () {
    // your code
    form.scroll_pos.focus();
    }
    });

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •