Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Lubos
    @tatran_twitter
    @quigamdev
    Tomáš Herceg
    @tomasherceg
    @DanielAjithRaj2_twitter Is the viewmodel property on all pages in the SPA? Because the spaNavigated occurs every time a new page is loaded in the SPA.
    If you need to run the script just on one of the pages, it is better to do it using the JS directive.
    Daniel Ajith Raja
    @DanielAjithRaj2_twitter
    @tomasherceg thanks for the reply, yes in every page date and time related properties are in SPA only, I'll go through the above docs.
    DzungHg
    @DzungHg
    Hi, I have this "System.ExceptionCan't add ScriptResource 'globalize:en-US' to Anywhere, it is already rendered." when render DateTime by <dot: litteral>. Pls help
    Ladislav Šesták
    @quigamdev
    @DzungHg Hi, can you please provide a version of dotvvm that you use?
    1 reply
    Miroslav Adamec
    @mirecad

    Hi, I'm trying to update viewmodel property from signalr callback. PatchState works correctly in constructor, but it does not work when triggered by signalr. Is my code correct or am I missing something? Btw console logs show, that value was patched but it is not reflected on real page. Thanks.

    export default context => new ToastsModule(context);
    
    class ToastsModule {
    
        constructor(context) {
            this.context = context;
    
            this.connection = new signalR.HubConnectionBuilder().withUrl("/toasthub").build();
            this.connection.on("ShowToast", toast => this._onShowToast(toast));
            this.connection.start();
    
            dotvvm.patchState({ Test: 'contructor' });
        }
    
        _onShowToast(toast) {
            console.log(dotvvm.state.Test);
            dotvvm.patchState({ Test: 'callback' });
            console.log(dotvvm.state.Test);
        }
    
        $dispose() {
            this.connection.stop();
        }
    }

    DotVVM.AspNetCore v3.2.1 + DotVVM.BusinessPack v3.1.0-preview01-final

    Standa
    @exyi:matrix.org
    [m]
    @mirecad: What do you mean by "not reflected on real page"? Could you please also share how you show the value on the page?

    @DzungHg:

    Hi, I have this "System.ExceptionCan't add ScriptResource 'globalize:en-US' to Anywhere, it is already rendered." when render DateTime by <dot: litteral>.

    How does your page looks like? This error should not happen under normal circuimstances. Did you use the BodyResourceLinks controls? Are you sure your page has exactly one body element?

    Miroslav Adamec
    @mirecad
    @exyi:matrix.org On the page I have value binding to this viewmodel property, so I expect it to display value changed by _onShowToast() method. I made really simple demo https://github.com/mirecad/DotvvmPatchStateDemo. Interesting files are wwwroot/toast-module.js, Views/Default.dothtml and ViewModels/DefaultViewModel.cs
    Miroslav Adamec
    @mirecad
    @exyi:matrix.org I found the problem. ViewModel was updated by SignalR, but it was immediately set to previous value by server postback. Adding [Bind(Direction.ServerToClientFirstRequest)] on viewmodel property solved the issue. Thanks for your time.
    gkirk90
    @gkirk90
    image.png
    @tomasherceg I am getting issues with the date picker. "Named property setter is not supported". I have checked the network tab and all scripts appear to be being loaded correctly. Any ideas?
    Michal Tichý
    @MichalTichy
    @gkirk90
    Can you please send small repro project where the issue is present?
    Kevin Neumann
    @kevinneumann
    I hope this is an OK question to ask here as it really isn't a technical question related to DotVVM. Does anyone have any experience hiring additional developers to work on a DotVVM project? We are a small company with a very large WebForms app. We have been struggling to hire new developers because most experienced developers feel like WebForms is outdated and almost "a step backwards". We get asked a lot if we have plans to move to a newer platform (like React/Angular/Blazor/etc.) but any of those would be a much larger undertaking than doing a piece by piece migration with DotVVM. Just curious as DotVVM looks like a fantastic option for us but doesn't necessarily have the "buzz" of some other technologies. Thanks!
    gkirk90
    @gkirk90
    @MichalTichy predictably, when I put a basic project together in with the component it works. I have added a simple page to our solution with the controller on and it is exhibiting the issue. You can view this here https://dev.cinchsoftware.io/test, does this help identify where the issue may lie?
    gkirk90
    @gkirk90
    @tomasherceg when do you think the Visual Studio extension will be available for VS2022? Are you going to make a version available for the preview?
    DzungHg
    @DzungHg
    Hi, DatetimePicker has bug, it can not be selected any more (my dotvvm: is 3.1).
    DzungHg
    @DzungHg
    I updated all others, It worked. Thank you.
    Tomáš Herceg
    @tomasherceg
    @gkirk90 We are already working on support of VS2022, but there are still some issues - right now we are dealing with problems with OWIN projects. When we figure out where is the problem, we'll publish it.
    @kevinneumann Thanks for the question - as you mentioned, DotVVM doesn't have the buzz that is around Angular, React or Blazor, and maybe it doesn't seem so attractive because it is "inspired" by Web Forms in some aspects. However, from the experience in my company, it is very easy to learn for people who have any experience with .NET - the MVVM approach is quite straight-forward. When we were hiring new developers, naturally, none of them known DotVVM, but they were able to learn it quickly.
    Also, there is much more opportunities to integrate DotVVM with the very cool new stuff that appears on the web. On our projects, we've started writing quite impressive things with modern TypeScript, and it is quite easy to integrate it with DotVVM.
    Michal Tichý
    @MichalTichy
    @gkirk90
    Thanks you for sample now I see where the problem probably is.
    I will try to fix it and release the new version in a few days (hopefully it will be public by the end of the week)
    gkirk90
    @gkirk90
    @MichalTichy thank you!
    gkirk90
    @gkirk90
    @tomasherceg Thank you! Happy to beta test anything for you guys :)
    Michal Tichý
    @MichalTichy
    @gkirk90
    I've published beta version of BS3 - 3.2.0-preview01-120165
    Unfortunately I was unable to reproduce your issue so I'm not sure if this will fix you problems.
    Can you please update provided live sample to this version and ping me if the problems persist?
    Also the versions of both Bootstrap packages now have version for Dotvvm 3.2.
    DzungHg
    @DzungHg
    Hi , Could you please share me the export function of Dotvvm. Thanks.
    2 replies
    gkirk90
    @gkirk90
    @MichalTichy I'm not seeing the new beta version in the nuget repository... how can i get that?
    Michal Tichý
    @MichalTichy
    image.png
    image.png
    You need to have Include prerelease checkbox checked
    @gkirk90
    gkirk90
    @gkirk90
    image.png
    @MichalTichy Yep, not seeing it
    Michal Tichý
    @MichalTichy
    Thats wierd I see it being published as Dotvvm.Controls.Bootstrap 3.2.0-preview01-120165 at nuget dotvvm.com nuget feed.
    Can you check if you have a valid licence?
    And do you have correct nuget source selected?
    gkirk90
    @gkirk90
    @MichalTichy I have now downloaded the package but we are still seeing the same error.
    image.png
    @MichalTichy Correction v3.2 exhibits the error. in preview01-120165 the error has gone.
    DzungHg
    @DzungHg
    Hi, I use one GridView then put one button in the data line of the grid to poppup a modal dialog (created at constructor of ViewModel of GridView), but wen I click to this button the error happened "Nothing was found inside specified DataContext. Please check if ViewModel is populated.". Pls help how I can implement this way. Thanks.
    Michal Tichý
    @MichalTichy
    @gkirk90 Cool to hear that.
    If you encounter any other problems please let us know.
    DzungHg
    @DzungHg
    Hi, I setup RoleView for tags on page but it does not work as user logged in, the content is invisible. I created roles for user already. Pls help.
    Standa
    @exyi:matrix.org
    [m]
    Hi @DzungHg , I'm sorry, but it's not that easy to just remove your problem. It is very hard to say what is wrong without detailed description, if I'd try to setup a simple example with RoleView, it would certainly work. Could you please try to replicate the problem in an example project that you can share here? Or, if it's not possible to replicate it, maybe you can share here your project. Alternatively, just try to share more information on what have you tried. What do you see in debugger when you get the user, how do you set the role, how you use role view, if you use Authorize attribute or other mean etc. I'd really like to help, but I just don't know what is the problem
    DzungHg
    @DzungHg
    HI @exyi , I used default of DotVVM Authentication , user and roles setup in database. Do you have any demo let me see it? Thank you.