Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Very odd behaviour

Very odd behaviour

Scheduled Pinned Locked Moved .NET (Core and Framework)
3 Posts 2 Posters 75 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pkfoxP Offline
    pkfoxP Offline
    pkfox
    wrote last edited by
    #1

    I have a Blazor Server App .NET 9, C#
    At present it has two pages /AllValves/GetValves.razor and /AllValves/GetActuators.razor. The pages are rendered by a GenericPagedView component which without getting into details , adds pagination , First,Previous,Next buttons etc..
    Here is the rub , none of the pagination buttons respond when the pages are launched from Components/Pages/AllValves/ but when I create a Test.razor file with the same content as either of the pages but located in /Components/Pages/ they work , and even stranger so do the AllValves pages but if I remove Test.razor or exclude it from the project the buttons don't work. I just read this back and it sounds ridiculous - any ideas / suggestions welcomed

    Graeme_GrantG 1 Reply Last reply
    0
    • pkfoxP pkfox

      I have a Blazor Server App .NET 9, C#
      At present it has two pages /AllValves/GetValves.razor and /AllValves/GetActuators.razor. The pages are rendered by a GenericPagedView component which without getting into details , adds pagination , First,Previous,Next buttons etc..
      Here is the rub , none of the pagination buttons respond when the pages are launched from Components/Pages/AllValves/ but when I create a Test.razor file with the same content as either of the pages but located in /Components/Pages/ they work , and even stranger so do the AllValves pages but if I remove Test.razor or exclude it from the project the buttons don't work. I just read this back and it sounds ridiculous - any ideas / suggestions welcomed

      Graeme_GrantG Offline
      Graeme_GrantG Offline
      Graeme_Grant
      wrote last edited by
      #2

      @pkfox said in Very odd behaviour:

      none of the pagination buttons respond

      Depends on if you're using per page interactivity or not when you created the project. If it is, use this on the page or the component, depending on what you want static or interactive:

      @rendermode InteractiveServer
      

      Usually goes at the top of the razor page...

      “I fear not the man who has practised 10,000 kicks once, but I fear the man who has practised one kick 10,000 times.” - Bruce Lee.

      1 Reply Last reply
      0
      • pkfoxP Offline
        pkfoxP Offline
        pkfox
        wrote last edited by
        #3

        @Graeme_Grant cheers Graeme you put me on the right path I needed
        <body>
        <Routes @rendermode=RenderMode.InteractiveServer/>
        <script src="_framework/blazor.web.js"></script>
        </body>
        in App.razor .net 9 doesn't have a _Host file any more so even the css links have to go in here to

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups