dotvvm | Open source MVVM framework for Web Apps | DevOps library

 by   riganti C# Version: v4.1.0 License: Apache-2.0

kandi X-RAY | dotvvm Summary

kandi X-RAY | dotvvm Summary

dotvvm is a C# library typically used in Devops applications. dotvvm has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

. Component-based MVVM framework for ASP.NET.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              dotvvm has a low active ecosystem.
              It has 681 star(s) with 92 fork(s). There are 57 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 134 open issues and 673 have been closed. On average issues are closed in 147 days. There are 22 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of dotvvm is v4.1.0

            kandi-Quality Quality

              dotvvm has no bugs reported.

            kandi-Security Security

              dotvvm has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              dotvvm is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              dotvvm releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dotvvm
            Get all kandi verified functions for this library.

            dotvvm Key Features

            No Key Features are available at this moment for dotvvm.

            dotvvm Examples and Code Snippets

            No Code Snippets are available at this moment for dotvvm.

            Community Discussions

            QUESTION

            Seeding data using EF
            Asked 2020-Jul-01 at 01:11

            I'm trying to create an ApplicationUser which has a User as a child object, this is what the models look like:

            ApplicationUser:

            ...

            ANSWER

            Answered 2020-Jul-01 at 01:11

            I'm almost sure that you're using .OwnsOne wrong (but i doubt it is root cause, i speak about it later) Owned types are Value objects. Value objects have no identity on their own and exist only as a part of their owner like

            Source https://stackoverflow.com/questions/62667197

            QUESTION

            DotVVM Change CssStyle property from a Panel component in runtime doesn't work
            Asked 2019-Nov-04 at 11:06

            I'm trying to change a CssStyle property, 'background-color', from a Panel component programmatically through a Button click Command, but nothing happen. If I set the property on ViewModel Load() method, works. After page loads don't.

            DefaultViewModel class scope:

            ...

            ANSWER

            Answered 2019-Nov-04 at 11:06

            DotVVM does not work this way, controls don't have any state and thus manipulating them in commands does not make much sense. Controls in DotVVM are just thin wrappers around the HTML that is sent to the client on the first request. Since no HTML is generated on commands, modifications of the controls don't propagate to the browser (except when you use Postback.Update property on the control)

            You want to store the state in your view model and then data bind it to the control. I'm not sure what exactly you want to do so let's suppose you want to highlight a div in some cases. The markup (in dothtml file) could look like this:

            Source https://stackoverflow.com/questions/58648952

            QUESTION

            DotVVM - What are the possibilities for coloring rows in GridView?
            Asked 2019-Aug-20 at 12:40

            I'm trying to color rows in the GridView based on the state (Enum value) of underlying item in the row, but none of the solutions I've found in docs seems appropriate for me.

            I have DataSource like this for the GridView

            ...

            ANSWER

            Answered 2019-Aug-20 at 12:40

            The BootstrapColor enum should be treated as a presentation layer thing. You are right that it's not wise to use it in internal microservices or in lower layers of the application.

            The DTO that comes from the lower layer should contain the information about what's going on, without caring about how it will be displayed to the user. I would expect an enum with values like Paid, Unpaid, Canceled etc., or alternatively set of bool flags - IsPaid, IsCanceled and so on.

            In the presentation layer, you have two options:

            1. Project the DTO to another DTO (either manually, or using AutoMapper for example) which will contain the BootstrapColor enum value.

            2. Use expressions in DotVVM data-bindings to make the transform in the markup.

            For simple cases, I would choose the second option.

            The correct syntax for is this:

            Source https://stackoverflow.com/questions/57571624

            QUESTION

            How to correctly view pdf in browser using DotVVM?
            Asked 2019-Aug-01 at 07:25

            I'm trying to view PDF in a browser tab using DotVVM.

            I've tried to use ReturnFile() method described here https://www.dotvvm.com/docs/tutorials/advanced-returning-files/1-1

            with additionalHeaders but it haven't worked.

            ...

            ANSWER

            Answered 2019-Aug-01 at 07:25

            In DotVVM 2.3.0, we have added an overload ofReturnFile which allows to specify Content-Disposition header. If you set it to inline, it should display the document instead of downloading it.

            Source https://stackoverflow.com/questions/57292271

            QUESTION

            DotVVM 2.0 - unable to run trial Business Pack controls
            Asked 2018-Dec-20 at 13:37

            I’ve created a DotVVM Core 2.0 project using Visual Studio and I have activated a trial version of Business Pack that I have added into that project from the private feed. I have registered the Business Pack in DotvvmStartup.cs in ConfigureServices. I don’t see bp controls in IntelliSense and when I try to run web app with the bp controls I get an error that tagprefix was not registered.

            I use latest version of Visual Studio 2017 Community and latest versions of DotVVM and Business Pack. Thanks for any advice.

            ...

            ANSWER

            Answered 2018-Dec-20 at 13:37

            Perhaps you won't call method DotvvmStartup.ConfigureServices. It is cause by "bug" in VS2017 extension template (v2.0.118.0 and below) and dotnet CLI template (dotvvm.templates.2.0.3).

            Please check Startup.ConfigureServices.

            Source https://stackoverflow.com/questions/51345002

            QUESTION

            How to implement MVVM Light INavigationService in a DotVVM project
            Asked 2018-Nov-18 at 14:03

            I want to implement the MVVM Light INavigationService interface in a DotVVM project; but I don't know how to do that. The most important method that I need to implement is NavigateTo(string pageKey) method.

            I am using a SpaContentPlaceHolder in my MasterPage and I want to change the content (RouteName) of the SpaContentPlaceHolder by calling the NavigateTo method.

            ...

            ANSWER

            Answered 2018-Nov-18 at 14:03

            If you are in the viewmodel, you can just call Context.RedirectToRoute("YourRoute", new { Param1 = something }).

            If you want to redirect from a different place, the easiest way is to create INavigationService interface and implement it to call the method on IDotvvmRequestContext (which is already registered in the ASP.NET Core dependency injection container):

            Source https://stackoverflow.com/questions/53325551

            QUESTION

            Value binding in
            Asked 2018-Jul-13 at 13:20

            Is there a way how to use value binding in

            Putting all together this is what i get when i open the page:

            ...

            ANSWER

            Answered 2018-Jul-13 at 13:20

            Value bindings don't work in script elements - they are translated to Knockout JS expressions (the HTML comments you have in the code snippet).

            You have two options:

            1. Use resource binding: {{resource: ChartLabels}} You need to do all the conversions so it will produce a valid JavaScript expression - it just renders a string in the output HTML.

            2. You may use JavaScript to get the values directly from the viewmodel:

            Source https://stackoverflow.com/questions/50759266

            QUESTION

            Dotvvm run-time binding to 'object' type
            Asked 2018-Jun-19 at 18:15

            i have this class

            ...

            ANSWER

            Answered 2018-Jun-19 at 09:00

            DotVVM does not assign to the property usning the setter, is sets the underlying property store in DotvvmBindableObject instead. It's very simmilar what WPF does with their DependencyProperty, it's needed to represent the data bindings. You can actually completely omit the C# property declaration, declaring the field TextProperty and calling the DotvvmProperty.Register is enough to declare a property for dotvvm.

            Other "problem" is that the controls do not store any data, everything has to be persisted in the view model. You can only use the control properties to data-bind a view model property. I think we are running here into a XY problem, I can only tell why your code does not work, but I have no idea what are actually trying to do...

            Anyway, if you just want to "bind" your control to a view model property, have a look at https://www.dotvvm.com/docs/tutorials/control-development-markup-controls-with-code/2.0. You can declare the property like that:

            Source https://stackoverflow.com/questions/50920353

            QUESTION

            Struggling with Business Pack Alert Component
            Asked 2018-Apr-03 at 06:27

            I am trying to make some dynamic logic for our application, but component don't want to cooperate.

            This is masterpage ViewModel:

            ...

            ANSWER

            Answered 2017-Jul-21 at 12:01

            You bind Alert type to AlertType property which you set in viewmodel Init only. So when you change AlertComponent later, you didn't setup AlertType.

            Or you can use a litle trick

            Source https://stackoverflow.com/questions/45236617

            QUESTION

            asp.net core 2.0 dotvvm vs razor pages. Which one is more powerful for an interactive web app
            Asked 2018-Mar-14 at 01:07

            With the latest release of ASP.NET CORE version 2.0 we now have Razor Pages which I really like because it shows a MVVM way of developing which I am already familiar because I've used it in UWP.

            I was searching to develop web apps without js because I am a .net developer and I came across this framework known as DOTVVM , it is great because it gives some features of js frameworks like angular, react e.t.c and it also integrates very well with ASP.NET CORE 2.0

            I want to discuss this between following 3 scenarios :

            I should use DOTVVM and dont use js at all.

            I should use razor pages instead with asp.net core 2.0, because razor pages provide all functionality which dotvvm provides and it will have more community in future.

            I should learn a **js framework ** like angular or react because neither razor pages, nor dotvvm is enough powerful to replace them.

            The discussion can be from point of view of all developers, so I can get opinion of js developers as well as those who have worked with dotvvm or razor pages. The aim is to create completely interactive and responsive web app with good performance.

            Important : ** the web app created can be a **progressive web app from the start or maybe turned into a pwa after creating it, depends on the technology I choose at the end.

            I know for a progressive web app I will need to write a little js, but that is alright considering that is very simple and little to write.

            The reason of this question is so that we can discuss these options from multiple perspectives and deduce a better option at the end for my app.

            Thanks in advance.

            ...

            ANSWER

            Answered 2017-Oct-04 at 08:58

            It really depends on the type of the application you are trying to create. The fact is that you can build any application in any web technology. The difference is only in how difficult it would be.


            Razor Pages are very easy to use and they are part of ASP.NET Core platform. They are using the MVVM pattern, but they are not helping with client interactivity. If you need to hide some form field based on some condition, you would need to do it in JavaScript.

            I would use them for a simple company website, very simple admin sites with few pages and trivial forms, or for a public facing part of some eCommerce site. I would probably use also jQuery or other libraries to do the interactivity, animations and things like that.


            DotVVM is an MVVM framework which helps especially with web applications with complicated UI: lots of complex forms with dozens of fields and interactivity (when you select an item in a combobox, another combobox will get new values, some fields will be pre-filled, a part of the form will disappear or change and so on). Modal dialogs, multi-step wizards, lots of grids with data, sorting, paging...

            Because DotVVM handles many things for you and translates the data-bindings to JavaScript, you don't need to write the JS yourself. It doesn't mean that you should not learn it. It will help you a lot if you know it - you will be able to add even more interactivity, extend the framework when you need it and more. DotVVM lets you do quite a lot without knowing JS, but you will get much further if you know it.


            Angular, React or other client-side frameworks are used widely today and many websites and applications are built in that. They are more universal than DotVVM, which aims primarily at the business app segment and requires .NET on the server (because it is not only the client-side library).

            Using Angular or React requires the knowledge of JavaScript, and not only that. You will need to know Node.js and the related tooling, like npm. You will need to exchange data with the server, so you will need to build probably a REST API, use Swagger to generate the client-side proxy classes, and then you will probably need some other JS libraries with controls and things like that.

            It is quite a lot of things to learn and if you are used to the comfort of Visual Studio, like the IntelliSense or the debugger, you will miss these features for sure.


            And finally, you don't need to stick to one technology. You can combine Razor Pages with DotVVM for example. You can make the admin dashboard in DotVVM and the public part of the website in Razor Pages.

            Source https://stackoverflow.com/questions/46545062

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install dotvvm

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/riganti/dotvvm.git

          • CLI

            gh repo clone riganti/dotvvm

          • sshUrl

            git@github.com:riganti/dotvvm.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular DevOps Libraries

            ansible

            by ansible

            devops-exercises

            by bregman-arie

            core

            by dotnet

            semantic-release

            by semantic-release

            Carthage

            by Carthage

            Try Top Libraries by riganti

            infrastructure

            by rigantiC#

            dotvvm-contrib

            by rigantiC#