Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid scroll to the end via command

    Hello,

    can I scroll to the end of the Data in a Listgrid via a JavaScript command, so that the user don`t have to scroll manually?

    Like that:

    myListGrid1.scrollToEnd();

    Thanks for all ansers.

    #2
    I have the same problem. Did you solve it?

    Same issue.

    Comment


      #3
      Yeap, Me too.

      Comment


        #4
        Solved

        I have found that Listgrid is an type of Canvas. Canvas has the scrollToBottom method.

        To cause the Listgrid to scroll to the end when it is first drawn add this attribute to the Listgrid.

        The setTimeout delays the operation to ensure that the Listgrid has rendered fully. "MyListGrid" is the ID of your Listgrid.

        Code:
        dataArrived: setTimeout(function(){
        						//alert("data arrived");
        				  eval("MyListGrid"+_body"+".scrollToBottom()"); //make sure the new message is visible;
        					},1000)

        Comment

        Working...
        X