Bug Report Q495393
Visible to All Users

Card View - Moving a row within a card using drag and drop scrolls the card content up to the first visible row and hides this row under the card bottom edge in certain cases

created 12 years ago

I have a card view with RowMoving set to True.

The card has too many rows to view at once so I can scroll the rows up and down using the buttons which appear at the top and bottom of the card.

If I move a row then the card always reverts to showing the first rows.

For example, scroll down the card to show the last two rows. Move the last row up by one row. The move works but the first rows are now displayed.
Can the card be made to show the focused row after it has been moved ?

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 12 years ago (modified 12 years ago)

    Hello,
    You can handle the OnRowPosChanged event and use the <CardView>.Controller.MakeFocusedItemVisible method there to accomplish this task (see the attached project).

      Comments (2)

        Hi Paulo,
        Thanks for your quick reply. However I think this behavior is incorrect.
        First, I will have to change every cardview in my application and copy the same piece of code 20 or 30 times.
        Secondly, if I switch row 50 with row 49 I expect the new row 49 to be focused (it is) and visible (it is not).

        DevExpress Support Team 12 years ago

          Hello,
          I agree with you that this behavior is inconvenient. I have forwarded this ticket to our developers for research. Perhaps, it is possible to fix it shortly.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.