Search Type: Posts; User: Araberen

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Please create a new topic for your question.
  2. That's not the idea I had when programming with REST. POST have to return the object, especially to get the new id. So PUT should do the same (because some fields could be updated just on the...
  3. Hi,

    Simple use case:
    A tree with a REST proxy. When I drag/drop an element on that tree (there is just one tree!), I want to update the database, so I run a save on the given record.

    Here is a...
  4. Replies
    0
    Views
    393
    Hi,

    How can I refresh a tree node?

    Simply: I set up my tree nodes with some records. Then I edit a tree node... (with a grid for instance). The record is well updated (locally & remotely) but...
  5. Replies
    12
    Views
    3,022
    … which perfectlly works !

    Ext.data.NodeInterface.decorate(rootNode); is the solution! It solved everything… and all my associations works perfectly fine with the root node. :)

    So it's a bug in...
  6. Replies
    12
    Views
    3,022
    Well as I explained before, the associations are not mandatory to reproduce the basic problem. But they are to understand why the solution "rootNode.data" is not a good one.
    And as I wrote in...
  7. Replies
    12
    Views
    3,022
    Here is the sample, just copy it in an empty HTML file and open it.

    In this code, the object is directly created with Ext.create.


    <html>
    <head>
    <meta http-equiv="Content-Type"...
  8. Replies
    12
    Views
    3,022
    {id:1, name:'Home', /* and more */ }
    or

    [{id:1, name:'Home', /* and more */ }]
    as a response for the root node
    => same problem/result
    => creates the fake empty root node (and my root node is...
  9. Replies
    12
    Views
    3,022
    It doesn't change a thing.
    I've tried what you say. So, and just for the root node, the JSON (fetched via a REST proxy) is:

    {id:1, name:'Home', /* and more */ }
    I've checked the requests. The...
  10. Replies
    12
    Views
    3,022
    {success:true, data:{id:1, name:'Home',children:[{id:2, name:'First child},{id:3, name:'Second child']}}

    And of course, I have precised the data root node in the proxy reader:


    proxy:
    // ......
  11. Replies
    12
    Views
    3,022
    Hi,

    It's been hours that I'm trying to solve this problem, but I can't find a viable solution.

    Here is the minimum code, simple:

    Ext.ModelManager.getModel('App.model.Menu').load(1, //...
  12. Yeah, I finally found that I had to add a pluginId property to my plugins. So I wrote:

    // code before for the grid
    plugins: {
    ptype: 'gridviewdragdrop',
    pluginId:...
  13. Yeah, I've been trying to use it...
    Hereafter is what I tried and what finally works (I tried harder because you said it should/could work with the copy property ^^) :
    ...
  14. Hi,

    I have two grids. I can only drag elements from the first one to drop them on the second one (no problem to implement that).
    But I want that when dropping the element (or starting to drag...
  15. Hi,

    Everything is in the title. My viewConfig is very simple:


    viewConfig: {
    plugins: {
    ptype: 'gridviewdragdrop'
    }
    }
  16. Replies
    1
    Views
    591
    I finally found how to do it. Here is the key function:


    function(grid, record) {
    var me = this;

    var groupId = record.get('id');
    // The next line will request...
  17. Replies
    1
    Views
    591
    Hi,

    I have 2 models:
    A model for a 'User' and a model for a 'Group' which is made of a hasMany association with the 'User' model.


    Ext.define('App.model.User', {
    extend: 'Ext.data.Model',...
  18. So, nobody knows how to add a tree item to another ? :s
  19. Hi,

    Here is my code:

    Ext.define('Menu', {
    extend: 'Ext.data.Model',
    fields: [
    { name: 'id', type: 'int' },
    { name: 'name', type: 'string' }
    ],
  20. Hi,

    I have defined an Ext.data.Model with a proxy type 'rest'. So I can create a new element based on that model and call the save method. That works!

    Based on that model, I have a TreeStore...
  21. Ok, great. I didn't know I could use a xtype with query. It's not what's written in the API doc.
    Thanks, it helps a lot. :)
  22. Hi,

    Let's say I've built a panel with multiple complex line items. The whole built was dynamic and I didn't keep a track of their creation, but it's still there with the UI of course.
    Let's there...
  23. Hi,

    I'm simply trying to get the text of the last text input of my form.
    Till now, I'm using select:

    myFormVar.select('input[type=text]').last();

    But it gives me an Ext.Element. I would...
  24. Jump to post Thread: mp by Araberen

    Replies
    3
    Views
    671
    Sorry... I put a good title, but something has probably happend with my keyboard then... ^^ (and now I can't edit the post title).

    I seems to work to clean up the code. At least, when I'm typing...
  25. Jump to post Thread: mp by Araberen

    Replies
    3
    Views
    671
    Hi,

    Let's say I allow users to enter raw HTML in a web page. Let's say users are stupid and don't know how to write validate HTML. How can I clean up and simplify their code?

    Examples:
    ...
Results 1 to 25 of 39
Page 1 of 2 1 2