Coder Social home page Coder Social logo

Comments (9)

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@Yumeryu Thanks. You can set FlowAutoColumnCount to true and FlowColumnDefaultMinimumWidth property. Column count will be calculated automatically. Does it solve your issue?

from dltoolkit.forms.controls.

Yumeryu avatar Yumeryu commented on August 10, 2024

Thanks for your quick reply.

I have tried those settings, they are recalculating all the columns and still fit them in one page. So this will lose the columns mapping.

What I'm trying to achieve is, for example, I have 12 columns for each month, and I want to list each row with all 12 columns, and if it doesn't fit in one page, I would expect the FlowListView to expand over the page, so I can scroll from left to right to see all columns, and scroll from top to bottom to see all rows.

I'm not sure if this is achievable at the moment, and how complicated to mod code to achieve this?

Thanks in advance.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@Yumeryu I think it's possible but I'll need to modify source code a bit.

https://github.com/daniel-luberda/DLToolkit.Forms.Controls/blob/master/FlowListView/DLToolkit.Forms.Controls.FlowListView/FlowListViewInternalCell.cs#L43

Basically, this:

View = rootLayout;

Needs to be changed to something like:

View = new ScrollView() { Orientation=Horizontal, View = rootLayout; };

I'll need to introduce some property for that as for normal use cases using ScrollView could be not good for performance reasons.

I think I can add it to FlowListView soon.

from dltoolkit.forms.controls.

Yumeryu avatar Yumeryu commented on August 10, 2024

Again, thanks a lot for the quick reply.

I just gave that a quick try.
Replaced with this :
View = new ScrollView
{
Content = rootLayout
};

However, the layout of the view hasn't changed, the performance did drop as you mentioned. I tried both with settings FlowAutoColumnCount to true and FlowColumnDefaultMinimumWidth, and without.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

It's definitely possible, but I'll need to check if all the other LayoutOptions are correct, etc. And you also need to set correct ScrollView orientation. I can implement it, but definitely not today.

from dltoolkit.forms.controls.

Yumeryu avatar Yumeryu commented on August 10, 2024

Sure, thanks a lot.

In the mean time, I will try to see if i can find how these LayoutOptions and ScrollView works. Any pointers will be greatly appreciated.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

I think it can be because of using AbsoluteLayout (for performance reasons). I think for such case StackLayout + ScrollView would be a better solution. So it means it's better and easier to make a new internal cell implementation eg. FlowListViewScrolledInternalCell and basically all those calculations are not needed, just simple add / remove from StackLayout

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@Yumeryu Did you have any success implementing this?

from dltoolkit.forms.controls.

reynzmonaresgithub avatar reynzmonaresgithub commented on August 10, 2024

..hello @daniel-luberda , how can I set FlowAutoColumnCount in FlowListView? It seems that this property is not available currently. thanks

from dltoolkit.forms.controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.