Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    noxe
    @noxe
    Love it Dennis - was really surprised today how everything fits nicely together!
    Ghost
    @ghost~5da9bc2dd73408ce4fce4a2f
    Meetup starting now: https://zoom.us/j/94814116043
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    Hi, how to add a column header image in XAF Winforms application?
    domsinclair
    @domsinclair
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    thanks but I know this, but I am referring to XAF application. I am trying to assign a column image to reference properties to use the same as the Type or class image
    Ghost
    @ghost~5da9bc2dd73408ce4fce4a2f
    @mzayani High level steps...
    • Create a ViewController<ListView>
    • Override OnViewControlsCreated
    • Get the GridView -> if (View.Editor is GridListEditorPlus gridListEditor && gridListEditor.GridView is GridView gridView)
    • Iterate the model columns for the current view -> foreach (var modelColumn in View.Model.Columns)
    • Check the modelColumn.ModelMember.MemberInfo to see if it is a reference property
    • Use the ImageInfo imageInfo = ImageLoader.Instance.GetImageInfo(className); to get the image for the class
    • Use gridListEditor.FindColumn the get the real column
    • Assign the realColumn.ImageOptions to the image from imageInfo
    17 replies
    domsinclair
    @domsinclair
    I had rather assumed that this would be an XAF application. I still think that you'll need to approach this using ImageOptions, specifically ImageOptions.Image Or ImageOptions.SvgImage. The fun bit comes with referencing the Type or Class Image. There will be numerous options open to you, many of which will, to a certain extent, depend on whether you are using stock DX images or your own. If this is a one off for a single listview column then I'd be inclined to do this manually in a single view controllerin your application windows specific module. If you have plans to do this more than once then I'd look to a seperate utility class
    Beaten to it !!
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    I am having trouble getting a TimeSpan field to show like 1 day, 3 hours, 30 minutes
    RSS Bot [@paramethod:matrix.org]
    @_neb_rssbot_=40paramethod=3amatrix.org:matrix.org
    [m]
    NuGet Gallery Feed for DevExpress.Xpo: DevExpress.Xpo 21.1.3 ( https://www.nuget.org/packages/DevExpress.Xpo/21.1.3 )
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    why should I use net core 5 if existing application is working just fine. I am looking for a reason other than using the latest and greatest. Is performance any better? are there any obvious reason to do so?
    Dennis
    @dengara_gitlab
    What existing apps are you referring to specifically? Existing .NET Framework XAF users (Windows Forms and ASP.NET Web Forms) can stay on .NET Framework as long as their apps work fine for them and their clients. For existing .NET Core XAF users, we described multiple reasons for migrating from .NET Core 3 to .NET 5 in XAF's Blazor and WinForms (.NET Core) assemblies target .NET 5 (v21.1). Performance is certainly one of the compelling reasons (you can also find confirmations from our customers in this chat above and also from public community resources like Microsoft blogs).
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    Thanks Dennis, I tested XAF with net 5 and it was good. However when tried to publish single file it didn't work. I think it is related to the ModelAssembly.dll and the ModulesVersionInfo files. ModelAssembly.dll cannot be included in the single file executable.
    I had this issue even before (not net core) when I tried to merge all files in one. in this scenario I have to exclude these 2 files
    Dennis
    @dengara_gitlab
    Thanks for your feedback. I hope to see you among DevExpress customers one day.
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    very soon...
    Ghost
    @ghost~5da9bc2dd73408ce4fce4a2f
    Hey guys, if you update to 21.1.3 before drinking your first coffee and end up with a gazillion breaking changes... make sure you updated to 21.1.3 and not 20.1.3 πŸ™ˆ
    domsinclair
    @domsinclair
    And that of course is why that first coffee is so important
    Ghost
    @ghost~5da9bc2dd73408ce4fce4a2f
    I thought updating to the latest was a perfect easy task to start the day πŸ˜…
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    DevExpress.WindowsDesktop.* NuGet packages are not included in 21.1 !!
    domsinclair
    @domsinclair
    Oh this is nice, scroll down to the bottom https://marketplace.visualstudio.com/items?itemName=DevExpress.CodeRushforRoslyn A little present for XAF users.
    kashiash
    @kashiash
    there are new templates for coderush and xaf - for controllers and actions ! great job !

    Controllers

    xcv Creates a custom ViewController.
    xcw Creates a custom WindowController.
    xcvod Creates a custom ObjectViewController for DetailView.
    xcvol Creates a custom ObjectViewController for ListView.
    xcvd Creates a custom ViewController for DetailView.
    xcvl Creates a custom ViewController for ListView.
    Actions

    xas Creates a Simple Action (SimpleAction).
    xac Creates a Single Choice Action (SingleChoiceAction).
    xap Creates a Parametrized Action (ParametrizedAction).
    xapw Creates a Popup Window Show Action (PopupWindowShowAction).

    7 replies
    Isa Tahiri
    @isatahiri
    with 21.1.3 no more possible to compare enums like this : UserType != 'Partner'
    Exception : The binary operator NotEqual is not defined for the types 'brokero.Module.BO.Security.UserType' and 'System.String'
    21.1.3 makes us review old left behind code... Not so bad ad the end :-)
    Dennis
    @dengara_gitlab
    @kashiash , I am happy that you liked this little enhancement for CodeRush addicts.
    @isatahiri , it is incorrect/not recommended for 7+ years or so. The correct option is described at https://docs.devexpress.com/CoreLibraries/4928/devexpress-data-library/criteria-language-syntax (Status = ##Enum#MyNamespace.Status,InProgress#)
    RSS Bot [@xafbot:matrix.org]
    @_neb_rssbot_=40xafbot=3amatrix.org:matrix.org
    [m]
    NuGet Gallery Feed for Xenial.Framework: Xenial.Framework 0.1.0 ( https://www.nuget.org/packages/Xenial.Framework/0.1.0 )
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    If you publish one file XAF app it will not run. To make it run, first publish normally and run it once to generate the ModelAssembly.dll and ModulesVersionInfo files. Now you can publish one file and use these files along. The other issue with one file it doesn't take the DPIAwarenessMode setting from the config file and the UI will not show properly. Some extra spacing here and there and fonts might look differently.
    Matias Lagat
    @mattlagat
    Hi guys, Do you have any idea how to Customize a layout in XAF Asp.Net Web that looks like in the attached image diagram below.
    Untitled.png
    I'm sorry for my image. :)
    Thanks.
    Ghost
    @ghost~5a5f32cad73408ce4f88b451
    Try MasterDetailMode for starter.
    Dennis
    @dengara_gitlab
    image.png
    JFYI: Troubleshooting a possible XAFPackageV4 error in Visual Studio 2019: https://devexpress.com/kb=t1001904
    RSS Bot [@xafbot:matrix.org]
    @_neb_rssbot_=40xafbot=3amatrix.org:matrix.org
    [m]
    NuGet Gallery Feed for Xenial.Framework: Xenial.Framework 0.1.1 ( https://www.nuget.org/packages/Xenial.Framework/0.1.1 )
    Alexander Krakhotko
    @fivec:matrix.org
    [m]
    Hi, maybe you will be interested in our new project.
    Xafari Team is pleased to present a novelty: "Xafari Unified Platform" (XUM) is a special solution that provides Devexpress XAF-application work in the three-tier mode with JS-client.
    Key Feature: performance of the XAF application server - up to 50 concurrent users on 1 core CPU.
    see more https://galaktika-soft.com/xum
    Marc Greiner
    @MarcGreiner
    @fivec:matrix.org XUM looks great, well done!
    Ghost
    @ghost~5da9bc2dd73408ce4fce4a2f
    @fivec:matrix.org Yes very impressive! πŸ‘
    Burak Γ–ΔžΓœTKEN
    @BurakOgutken
    hello @dengara_gitlab when can we export the data as excel, pdf etc. directly from the Grid List in xaf blazor is there an approximate time ? thanks
    GenesisSupzup
    @GenesisSupzup
    Blazor Newbie here... any idea how I can convert this code into XAF Blazor? I need to set the DefaultWidth to Unit.Percentage(80)
    .
    .
    .
    using DevExpress.ExpressApp.Web.Controls;
    using System.Web.UI.WebControls;
    //...
    protected void Application_Start(object sender, EventArgs e) {
    XafPopupWindowControl.DefaultHeight = Unit.Percentage(50);
    XafPopupWindowControl.DefaultWidth = Unit.Percentage(60);
    XafPopupWindowControl.PopupTemplateType = PopupTemplateType.FindDialog;
    XafPopupWindowControl.ShowPopupMode = ShowPopupMode.Centered;
    //...
    }
    .
    .
    Reference: https://docs.devexpress.com/eXpressAppFramework/113456/task-based-help/miscellaneous-ui-customizations/how-to-adjust-the-size-and-style-of-pop-up-dialogs-asp-net
    GenesisSupzup
    @GenesisSupzup

    Any idea how to extend the height of the layout groups from Blazor DetailView as it was in the Layout from the Application Model?

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

    Daniel Calisaya
    @dcalisaya
    Hi, I'm trying to incorporate a two Links in the left Navigation in Xaf Blazor. One of them in iframe and other to outsite of blazor app.
    Daniel Calisaya
    @dcalisaya
    i'ts possible? There is some ticket about it?
    jafrantz
    @jafrantz
    Hi- I've got a non-XAF console app that creates an ObjectSpace and is able to interact with Persistent XPO objects just fine. I am trying to run reports from this code but if the report is based on a non-persistent object, it comes back with no data. How do I get the ObjectSpace in this code to include the NonPersistent Objectspace as well? I sent a support ticket in, but thought I'd ask here too.
    Daniel Calisaya
    @dcalisaya
    thanks @jafrantz, I will lookup first otherwise I will put it in a ticket. The idea is: https://www.screencast.com/t/REMg01vy8