jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid Scrolls to Top of Grid Automatically On Click

This topic contains 7 replies, has 4 voices, and was last updated by  неистовый 6 years, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author

  • emrealtan
    Participant

    Hi,
    When I click to a row, the grid scrolls down the page to top of itself automatically. How can I disable this? For instance;

    jqxgrid scroll issue

    If I click first row, the page scrolling down automatically.

    Best regards…
    Emre


    Peter Stoev
    Keymaster

    Hi Emre,

    Sorry, but we do not have such automatic scrolling and cannot replicate such behavior

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    emrealtan
    Participant

    Hi Peter,

    Thanks for your reply. Finally I found the source of the problem. This is happening when i set selectionmode to multiplecellsadvanced. You have an idea about that?

    Thanks,
    Emre


    ashish_blr
    Participant

    Hello,

    Even I am getting the same issue, the screen is getting automatically scrolled to the top in multiedit mode. In my case when i click on the cell I am calling the endupate method of jqxGrid.

    code:
    $(‘#myGrid’).jqxGrid(‘beginupdate’);
    $(‘#myGrid’).jqxGrid(‘endupdate’);

    Can someone please help.

    Thanks
    Ashish


    неистовый
    Participant

    Hello!
    Nothing has changed since the last message?
    I have the same problem, it happens when I want to see the details of the string using the ‘showrowdetails’ method when double-clicking on the row ‘rowdoubleclick’ or ‘celldoubleclick’

    var expandData = [];
    
    $ ('# glossaryTable'). on ("rowdoubleclick", function (event) {
    var rowindex = event.args.rowindex;
    
    if (expandData [rowindex] === false) {
     if (event.args.datafield! = null) {
      $ ('# glossaryTable'). jqxGrid ('showrowdetails', rowindex);
     } else {
      $ ('# glossaryTable'). jqxGrid ('hiderowdetails', rowindex);
     }
    } else {
     if (event.args.datafield! = null) {
      $ ('# glossaryTable'). jqxGrid ('hiderowdetails', rowindex);
     } else {
      $ ('# glossaryTable'). jqxGrid ('showrowdetails', rowindex);
     }
    }
    
     expandData [rowindex] =! expandData [rowindex];
    });

    If I comment on the methods ‘showrowdetails’ and ‘hiderowdetails’, then there is no jump up …
    What could be the problem? Search the forum did not give anything …


    неистовый
    Participant

    P.S. The latest version of jqxWidgets 6.0.6 is used


    Peter Stoev
    Keymaster

    When you hide/show row details, scrollbars are re-calculated and it’s normal the top position to be changed in this case. The behavior which you describe is not related to the reported one.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com


    неистовый
    Participant

    yes it’s understandable, but when you use the button to expand the details of the line that’s left in the column, it does not happen, the line just opens wherever it is located at the bottom or top of the browser window, and if you use a cell click or double click to expand the details of the line, skips to the top, that’s what’s strange, then jump should and when you open the button on the left (sorry for my English)

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.