Results 1 to 6 of 6

Thread: Extjs 6 Grid to form MVVM example

  1. #1
    Sencha User
    Join Date
    Dec 2016
    Posts
    31
    Answers
    1

    Default Extjs 6 Grid to form MVVM example

    I'm used to working with extjs 4 MVC. I am doing my first steps on ExtJS 6 MVVM.

    I developed my first program which is about a grid that when I clicks opens a form.

    But I feel like it got very complicated programming, 2 controllers and mediator between controllers.
    Anyone knows where I can find a example with a grid and form.


    Save e delete options complete?


    The Sencha's samples are always incomplete, grid to form but there is no saving form example.


    I example can be very simple: id and name only.


    Thanks,

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    Here's one way to do it with 2 way binding and store auto syncing:

    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2016
    Posts
    31
    Answers
    1

    Default

    Thanks Mitchell is a very good example, but I am looking for something like?
    Tela de grupos.jpg

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    And this is why examples will always be incomplete, because there are many different ways to do things and we can't possibly support every in the kitchen sink.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Dec 2016
    Posts
    31
    Answers
    1

    Default

    Dear Mitchell,

    I have tried to run your sample, but I beliebe there is class Ext.grid.Grid on Extjs 6.2
    .

  6. #6
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    That's because the fiddle is using modern toolkit. Ext.grid.Panel is what you'd use for classic toolkit.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. How to get the form using mvvm ExtJS 6.2 GPL
    By Celso67 in forum Ext JS 6.x Q&A
    Replies: 0
    Last Post: 27 Jun 2017, 6:36 PM
  2. ExtJs 6 MVVM form isDirty is always true
    By hemantsharma in forum Ext JS 6.x Q&A
    Replies: 4
    Last Post: 11 Jul 2016, 4:37 PM
  3. MVVM form set
    By hjoy in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 19 Feb 2016, 7:26 AM
  4. Reset form fields in MVVM
    By Karthick23 in forum Ext 5: Q&A
    Replies: 4
    Last Post: 5 Jan 2015, 2:06 PM
  5. Replies: 7
    Last Post: 4 Jan 2015, 4:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •