Search:

Type: Posts; User: Araberen

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,387

    Please create a new topic for your question.

    Please create a new topic for your question.
  2. That's not the idea I had when programming with...

    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. Tree & update on a record (with full sample)

    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
    501

    Tree & refresh node

    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
    4,273

    … which perfectlly works ! ...

    … 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
    4,273

    Well as I explained before, the associations are...

    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
    4,273

    Here is the sample, just copy it in an empty HTML...

    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
    4,273

    {id:1, name:'Home', /* and more */ } or ...

    {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
    4,273

    It doesn't change a thing. I've tried what you...

    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
    4,273

    {success:true, data:{id:1,...

    {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
    4,273

    Tree and root node

    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...

    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. Replies
    4
    Views
    1,387

    Yeah, I've been trying to use it... Hereafter...

    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. Replies
    4
    Views
    1,387

    Drag & drop which duplicates elements

    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. Conditional drag & drop between 2 grid views

    Hi,

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


    viewConfig: {
    plugins: {
    ptype: 'gridviewdragdrop'
    }
    }
  16. Replies
    1
    Views
    753

    I finally found how to do it. Here is the key...

    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
    753

    Asynchronous hasMany

    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. Replies
    1
    Views
    479

    So, nobody knows how to add a tree item to...

    So, nobody knows how to add a tree item to another ? :s
  19. Tree: how to load the root node and other root node issues

    Hi,

    Here is my code:

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

    Add a tree item to an other & REST

    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. Replies
    3
    Views
    1,093

    Ok, great. I didn't know I could use a xtype with...

    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. Replies
    3
    Views
    1,093

    Getting the outter panel of an element

    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. Traversing a form / Ext.Element to its real Ext type

    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. Thread: mp

    by Araberen
    Replies
    3
    Views
    1,005

    Sorry... I put a good title, but something has...

    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. Thread: mp

    by Araberen
    Replies
    3
    Views
    1,005

    mp

    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