[CLOSED] [#64] Dynamic DataTable support

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] [#64] Dynamic DataTable support

    Hi,

    I am wondering if you have any examples (MVC) in Ext.Net that would support dynamic columns of DataTable in which the columns are dynamic at runtime.

    Thanks.
    Last edited by Baidaly; Dec 11, 2012 at 1:08 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Please, can you clarify, you want to build only ColumnModel of a GridPanel at RunTime i.e. by controller action or you want to build a whole GridPanel at Runtime?
  3. #3
    I would like to build a GridPanel whereby the DataSource is binded at runtime. The columns definition could only be determined by the DataTable at runtime. Do you have such an example?

    Quote Originally Posted by Baidaly View Post
    Hello!

    Please, can you clarify, you want to build only ColumnModel of a GridPanel at RunTime i.e. by controller action or you want to build a whole GridPanel at Runtime?
  4. #4
    Unfortunately, we don't have example for MVC with DataTable also Store and GridPanel don't support dynamic generation, but you can look in this thread: http://forums.ext.net/showthread.php...ll=1#post40493
  5. #5
    Hi,

    If you deal with Razor there is a possibility to auto build a GridPanel and/or a Store according a Model.
    http://mvc.ext.net/#/Models/GridPanelFor/
    http://mvc.ext.net/#/Models/StoreFor/
  6. #6
    I tried both examples with Model being a DataTable and both fails to generate the grid according to the model being a DataTable. Can you build a simple example using boing GridPanelFor or StoreFor and let me know how it works?



    Quote Originally Posted by Daniil View Post
    Hi,

    If you deal with Razor there is a possibility to auto build a GridPanel and/or a Store according a Model.
    http://mvc.ext.net/#/Models/GridPanelFor/
    http://mvc.ext.net/#/Models/StoreFor/
  7. #7
    Well, StoreFor and GridPanelFor doesn't support DataTable. We will consider a possibility to support it.

    For now, you can build a Store and a GridPanel in a similar way that Vladimir demonstrated in the post that @Baidaly referred.
  8. #8
    using a DataTable and MVC would be very helpful in our project. Please consider raising this development to a higher priority.

    Quote Originally Posted by Daniil View Post
    Well, StoreFor and GridPanelFor doesn't support DataTable. We will consider a possibility to support it.

    For now, you can build a Store and a GridPanel in a similar way that Vladimir demonstrated in the post that @Baidaly referred.
  9. #9
    Thank you for the suggestion.

    Opened an Issue to track this feature request.
    https://github.com/extnet/Ext.NET/issues/64
  10. #10
    Hi,

    DataTable support is added to SVN
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Apr 12, 2012, 5:44 AM
  2. How to use GridPanel with DataTable
    By kkp0633 in forum 1.x Help
    Replies: 4
    Last Post: Feb 15, 2012, 9:30 AM
  3. DataTable
    By fabiomarcos in forum 1.x Help
    Replies: 0
    Last Post: Nov 08, 2008, 11:24 AM
  4. GridPanel with DataTable?
    By MrMp3 in forum 1.x Help
    Replies: 2
    Last Post: Oct 03, 2008, 4:59 PM

Tags for this Thread

Posting Permissions