Grid and Stores

  1. #1

    Grid and Stores

    Hi,

    I have an application that manages employees and several pictures of them.
    I have in the database an employees table and a photos table.

    I want to show a grid with some attributes of the employee and a single photo of each.

    I usually load a grid with data from a single table.
    Is it possible to load a grid of two different tables?
    How can I get it?

    Thanks.
  2. #2
    Quote Originally Posted by walle View Post
    I usually load a grid with data from a single table.
    Is it possible to load a grid of two different tables?
    You would have to modify your SQL Query to pull data from two database tables instead of one. A JOIN might be required. This is outside of the scope of Ext.NET though.
    Geoffrey McGill
    Founder
  3. #3
    Hi Geoffrey,

    I didnĀ“t explain well.
    I wanted to know how Ext.NET loads data in a grid (from several tables).

    I have founded DataTable and DataReader.
    Anything else?

    Thanks.
  4. #4
    Hi,

    You can bind the .DataSource to any IEnumerable object.

    I wanted to know how Ext.NET loads data in a grid (from several tables).
    The GridPanel will not load from multiple sources. This would be up to the developer to combine the data, and then bind to the Store.

    Hope this helps.
    Geoffrey McGill
    Founder
  5. #5
    Hi Geoffrey,

    That was just what I wanted to know.

    Thanks a lot.

Similar Threads

  1. Ext.NET using Stores - performance question
    By mattwoberts in forum 1.x Help
    Replies: 11
    Last Post: Nov 14, 2011, 7:51 PM
  2. Combobox with two stores
    By SMS in forum 1.x Help
    Replies: 3
    Last Post: Jul 12, 2011, 11:45 AM
  3. Ext.net.Debug + Stores
    By peter.campbell in forum 1.x Help
    Replies: 2
    Last Post: Mar 29, 2011, 10:54 AM
  4. [CLOSED] Stores and ComboBoxes
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 05, 2009, 3:07 PM
  5. [CLOSED] ComboBox Stores
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 20, 2009, 2:43 PM

Posting Permissions