GridPanel for and TreePanel

  1. #1

    GridPanel for and TreePanel

    Hi, I have a complete GridPanelFor, with CRUD operations and some stuff (double click on cell, etc..).
    Now I would like to have the same grid with a Tree column.

    I suppose it has to be reweritten using TreePanel?!
    There is a way to make a TreePanel, without bind it statcally to a Model, and using it like the GridPanelFOR component?
    There is a sample of it?

    I noticed also that there is a single component called TreeColumn, which can be added to the GridPanelFor. I tried to do it, but the Grid isn't able to load adta, if there is a TreeColumn in it (specially i noticed that rows are created, since the rowNumbererColumn enumerates lines, but no datas are written to fields). Is possible to use that TreeColumn inside a GridPanelFor?

    ----GridPanelFor...----
    .ColumnModel(cm =>
               {
               cm.Columns.Insert(1, new TreeColumn);
               })
    Can i do such a thing?

    I haven't posted code, because it is too long. If you suggest me what can be useful, I'll post every try.

    Thank's.
    (Ext 2.2, MVC 3, Razor)
  2. #2
    How can I dinamically add column for model to a TreePanel?
    I found GenericCOlumnBuilder, and GenericModelFieldBuilder.
    Are them usable to do it?

    Thanks
  3. #3
    I soved passing Model and Columns via ViewData.
    Can it be a final solution?

    Thanks

Similar Threads

  1. Replies: 1
    Last Post: Mar 29, 2013, 11:36 PM
  2. TreePanel and GridPanel issues
    By cleve in forum 2.x Help
    Replies: 1
    Last Post: Apr 04, 2012, 9:58 AM
  3. Some difficult with TreePanel in GridPanel
    By easypower in forum 1.x Help
    Replies: 0
    Last Post: Apr 01, 2012, 7:01 AM
  4. DD From GridPanel to TreePanel
    By tommaso87 in forum 1.x Help
    Replies: 2
    Last Post: Dec 22, 2011, 7:31 AM

Tags for this Thread

Posting Permissions