Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

List control jumping to the top of the page on select

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    List control jumping to the top of the page on select

    I've got numerous list controls and if there are a lot of records showing, clicking on one way down causes the list to jump back to the top.

    List control
    Have the height be more than the viewable browser.
    Have more records than can be viewable in the browser.
    As you scroll down to the end of the list, the top title bar disappears on the scroll.
    At that point, clicking on a list object causes the list to jump back to the top column title bar.

    Anyone experience this phenomenon?
    If a jing video would help, I can do that.

    #2
    Re: List control jumping to the top of the page on select

    This happens on a web browser. Haven't tested on Mobile as it's a Browser app.

    Comment


      #3
      Re: List control jumping to the top of the page on select

      I can duplicate it... but am curious why you'd have those List settings? Why set the height of a List control more than the browser window? I'd suggest something like this... and possibly tied it to a sizing event...

      Code:
      var scrnHeight = window.innerHeight;
      scrnHeight = scrnHeight - 60; //60 is an arbitrary #... taking care of stuff apart from the List
      scrnHeight = scrnHeight + 'px';
      var lObj = {dialog.Object}.getControl('LIST1');
      lObj.setListSize(scrnHeight);

      Comment


        #4
        Re: List control jumping to the top of the page on select

        I'm creating an embedded product list in a webpage. (thus, the question about embedding via Javascript or something other than an iFrame in another post). So instead of updating the static website, the products are updated dynamically from the back end of Proof Works. (same app we've been working on). I don't want the list to scroll so I have to make it higher than the possible data that is displayed. So it scrolls with the web page, not independently. Because then you get a weird scrolling pattern when you use the mouse "wheel" or trackpad to scroll.

        This is what I'm avoiding...
        The page scrolls until it hits the list, then the list scrolls until it hits the end of the list, then the page scrolls again. Don't want that. Want a nice smooth scroll. But clicking on a list item jumps it back up to the top.

        Comment


          #5
          Re: List control jumping to the top of the page on select

          Unless Alpha can prevent this behaviour you'd have to take control of the List yourself a completely derail it's processing. The List "selection" process never fires so you don't know which row you're on.

          This code will stop the browser window from jumping... but it also stops the List from processing. Maybe you can use it as a start, at least. There are complicated ways of getting at the row you clicked on, but running this code, in effect, wrecks List processing. Doesn't jump, though. You can run this code from a button... or from onRenderComplete... just to test it.

          Code:
          $('{dialog.ComponentName}.V.R1.LIST1.CONTROL.CONTENT').addEventListener("click",function(e){
          	$e.stopPropagation(e);
          });

          Comment


            #6
            Re: List control jumping to the top of the page on select

            You can save the current scroll amount and then set it later:

            var tempScrollTop = $(window).scrollTop();

            ..//Your code

            $(window).scrollTop(tempScrollTop);
            To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

            - William Faulkner

            Comment


              #7
              Re: List control jumping to the top of the page on select

              It's a jQuery solution... and interesting Ahmed. Did you try it?

              Comment


                #8
                Re: List control jumping to the top of the page on select

                Anyone have a solution to this? I have the same problem in our web lists. It makes the list controls pretty ineffective unless you are on a mobile device

                Tracie

                Comment


                  #9
                  Re: List control jumping to the top of the page on select

                  This handles some of it... but I haven't had to chance to re-visit it. Part of the problem is that, while in the List... scrolling, at some point the List will not need to scroll any more, but the Window will then start scrolling. All ok. But, if you start scrolling back up in the List, the Window doesn't move... and selecting a row in the List is now messed up again. You'll need to add a scroll event to the Window to start tracking... and then get that into the UX. So... what's below is just a partial solution.

                  Using jQuery... put this in your UX onRenderComplete...

                  Code:
                  setTimeout(function(){
                  	{dialog.Object}.__tempScrollTop = jQuery(window).scrollTop();
                  },4000);
                  You can play with the setTimeout... even try to do away with it.

                  In the List control... onSelect...

                  Code:
                  jQuery(window).scrollTop({dialog.Object}.__tempScrollTop);
                  In the List control... onScroll...

                  Code:
                  {dialog.Object}.__tempScrollTop = jQuery(window).scrollTop();

                  Comment


                    #10
                    Re: List control jumping to the top of the page on select

                    Thanks David! I'll give this a go

                    Tracie

                    Comment


                      #11
                      Re: List control jumping to the top of the page on select

                      This is still haunting me. I switched one over to a Viewbox to display the list of items in a customer order. If that list is long and after scrolling down the page, if the first line item passes the top of the browser and then you click on any line item, the viewbox jumps back up to the top of the page. Pretty annoying.

                      Yes, I can set the height to be a set pixel number, but I'd rather have it keep expanding when more order items are added, so you can see all the items as you scroll down the order and not have to have that box that scrolls like David said earlier.

                      Is this doing this jumping to the top for a specific reason?

                      Comment


                        #12
                        Re: List control jumping to the top of the page on select

                        Here's a quick video on what's happening.

                        https://www.screencast.com/t/s9djXpsgX4p

                        Comment


                          #13
                          Re: List control jumping to the top of the page on select

                          Solved.

                          Add this to the Additional Settings on the List Control to stop the jumping to the top when clicking on a list control row:

                          Code:
                          {
                              "captureFocus": false,
                          }
                          They're adding a checkbox to do this also in some future release.

                          Comment


                            #14
                            Re: List control jumping to the top of the page on select

                            Hi David,

                            This didn't resolve the issue for me. Here is a quick video: https://www.screencast.com/t/uLNHhxXqjKb

                            I have several lists on my component that is on the page. The only way I've been able to make this work is to make the container that the list control is in 1200px tall (or any defined size).

                            Are there any other changes necessary?

                            Thanks for your efforts! Tracie

                            Comment


                              #15
                              Re: List control jumping to the top of the page on select

                              Previously, that's what I would do is set the height of the list to avoid the jumping.

                              Here's my Additional Settings box on the List Control. Is this what yours looks like? And it should work earlier versions, but what version are you running? I have the pre-release Build 4740.

                              capturefocus.png

                              Comment

                              Working...
                              X