jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Can't send data to View Can't send data to View #102582

    valeriybv
    Participant

    Hi!
    There ara an archive with very simple project
    Method Project/Index calls View with dataset of project.
    Also I tried some different approaches here, trying to use dataadapter, but it is so boring.
    For example, in Kendo UI I could simply map the model, like in Razor Pages

    in reply to: Can't send data to View Can't send data to View #102541

    valeriybv
    Participant

    Lets made some clarification. I tried different steps without any result, so could you please answer to some question:
    1. How exactly should I transmite data to view? (in documentation there are some parts of code with “@model = …”) How this model is being initialized?
    2. Can I use approach similar to one in ASP.NET Razor Pages?
    – define a DataSet in actionresult method (it could be a collection of objects, single object or smth else, static, or created from database)
    – call a view with this dataset as a param (View(DataSet))
    – define a model inside this view and bind it to dataset
    3. Can I do it without using a web-api and without creation some json objects?
    4.Could you provide a work example how could I do it?

    in reply to: Can't send data to View Can't send data to View #102540

    valeriybv
    Participant

    It is not helped

    The problem is that when I call an empty view in controller, like “return View()” than I see an empty grid as should be (because model is empty)
    when I declared a static list of objects directly in view, then it is worked.
    But I dont want to declare a static objects. I want to write some methods in my controller with business-logic, then transmite a result data set into view.
    In ASP.NET for this purpose View called with a parameter
    “return View(projects)”; where “projects” – some list of objects or variable or smth else.

    Seems, that this is not supported here

    in reply to: Can't send data to View Can't send data to View #102437

    valeriybv
    Participant

    Hi, Hristo!
    Yes, my model exacly fit datafields in grid-column, but nevertheless data is not transmitted
    I tried to use synchron methods, but this didn’t helped
    Then I tried to useupdatebounddata, and again nothing.

    And I dont get any errors. So I cant understand what heppened. I can transmitt data in simple razor page, but cant use the same method here – all I see is just blanc layout page without any grid

    It is very strange. May be I did smth wrong, but I cant see it


    valeriybv
    Participant

    Sorry, already find the problem

Viewing 5 posts - 1 through 5 (of 5 total)