[CLOSED] Error to fill GridPanel

  1. #1

    [CLOSED] Error to fill GridPanel

    Last edited by Daniil; Aug 23, 2013 at 4:41 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @Ujvari,

    Welcome to the Ext.NET forums!

    A Column's DataIndex must be a ModelField's name exactly.

    So, please use:
    DataIndex("ID")
    .DataIndex("DESCRICAO")
    etc.

    Also please try with:
    .Root("data.Item2")
    Or you can leave
    .Root("data")
    but should return Item2 array only from the controller action.
  3. #3

    Still not working

  4. #4
  5. #5

    Lazy Loading and EF

    Can I call data.Item2.PATOLOGIAS in the JsonReader? My API uses EF with LazyLoading e I'm trying to do as few call to it as possible. Is there any other way to do that?

    Thank you very much
  6. #6
    Quote Originally Posted by Ujvari View Post
    Can I call data.Item2.PATOLOGIAS in the JsonReader?
    I would not help because Item2 is an array. But this appears to be working:
    .Root("data.Item2[1].PATALOGIAS")
    Also please remove this:
    .UseSimpleAccessors(true)

    Quote Originally Posted by Ujvari View Post
    My API uses EF with LazyLoading e I'm trying to do as few call to it as possible.
    I don't force you to make an additional call. I mean retrieving the PATALOGIAS array from the data object.
    var data = GetApiResult(start, limit, "Patologias");
    // retrieve the PATALOGIAS array from the data
    Do you mean it is not possible without an additional EF call?
  7. #7
    I change the return entirely and now it works. Thanks

Similar Threads

  1. [CLOSED] Fill combobox in gridpanel from behind
    By HansWapenaar in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 10, 2014, 4:40 PM
  2. Replies: 1
    Last Post: Jul 02, 2011, 3:34 AM
  3. GridPanel cannot fill the Panel
    By Yanfang Wang in forum 1.x Help
    Replies: 6
    Last Post: May 20, 2010, 7:15 AM
  4. fill gridpanel with a list??
    By carlosmupe in forum 1.x Help
    Replies: 2
    Last Post: Dec 15, 2009, 4:03 PM
  5. Problem to fill gridpanel
    By hbbazan in forum 1.x Help
    Replies: 1
    Last Post: Dec 10, 2009, 10:53 AM

Tags for this Thread

Posting Permissions