Ticket T246223
Visible to All Users

How to implement a progress bar in the ListView grid column and DetailView editor for both Windows and Web (XAF Blazor, WinForms, WebForms UI)

created 10 years ago

Is there any ready to use sample of implementation of a simple progress bar in grid cells, both in Windows and Asp.net?

Thanks

Comments (1)

Answers approved by DevExpress Support

created 10 years ago (modified 2 years ago)

ASP.NET Core Blazor Server

Refer to the Display a Custom Component in a List View section in XAF online docs for complete code examples (a BlazorPropertyEditorBase descendant and a custom Razor component).
Clipboard-File-3.png

WinForms and ASP.NET WebForms

The attached archive (dxSampleT246223.zip) contains code of two custom PropertyEditors for WinForms and ASP.NET.
They are implemented in the T246223.Module.Win\Editors\WinProgressPropertyEditor.xx and T246223.Module.Web\Editors\WebProgressPropertyEditor.xx files respectively. The float Progress property (it must be in the [0,1] interval) in the TestProgressBusinessObject.xx file is represented by these editors by default. These implementations are not complete and you will need to further test and modify them according to your business needs.

For more information, review the eXpressApp Framework > Concepts > UI Construction > Using a Custom Control that is not Integrated by Default article and documentation for the involved DevExpress WinForms (RepositoryItemProgressBar and ProgressBarControl) and ASP.NET controls (ASPxProgressBar).

P.S.
I would greatly appreciate it if you could take a moment to tell us more about your original business requirements and use-case scenarios so we could consider improvements to the standard delivery of our framework. Thanks in advance.

    Show previous comments (12)
    DevExpress Support Team 7 years ago

      Hello Murat,

      I've created a separate ticket on your behalf (T598069: Web - the progress bar implemented using the T246223 example does not look right in ListView). It has been placed in our processing queue and will be answered shortly.

      ML ML
      Matteo Lazzari 5 years ago

        Hello!
        I find this editor very useful, but I would like to know if there's a way to apply conditional appearance to it. Indeed, I would like to color the progress bar from red to green, based on the completion percentage.

        Anatol (DevExpress) 5 years ago

          Hello Matteo,

          Thank you for your question. I created a separate ticket on your behalf: T857285: How to change a progress bar's color conditionally based on its value. We will answer 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.