[CLOSED] Grid Panel with Complex Data model and a ComboBox Editor

  1. #1

    [CLOSED] Grid Panel with Complex Data model and a ComboBox Editor

    Hello, I have a problem when creating a Grid Panel from a complex class. I have a data model that is illustrated below:

    class country:
    string Name
    int ID

    class company:
    string Name
    country Country

    When I generate a GridPanel to display the model for Company I can successfully view the correct output using a renderer, however, when I go to edit the values of "Country" via a comboBox editor the initial displayed value is [object Object] instead of the correct value from a list of countries. I have set my Display and ID properties on the ComboBox and tried to create beforeEdit functions to select the correct value, but it never displays the correct value. Other posts have mentioned a solution of using and addition CountryID column in the model and editing that value instead of actually editing the correct data object. This does not work for me and I need to directly edit the Country value.

    Can you please advise on how I can achieve the correct display of values.

    Thanks,
    Last edited by Daniil; Feb 12, 2013 at 5:31 AM. Reason: [CLOSED]
  2. #2
    Hello!

    It's difficult to say something without example to reproduce.

    Also, please, take a look at the following example, it has very similar data structure to yours: https://examples2.ext.net/#/GridPane...Field_Mapping/

Similar Threads

  1. Replies: 18
    Last Post: Mar 13, 2013, 10:40 AM
  2. [CLOSED] Razor- Grid Panel Editor Combobox
    By OriCoder in forum 2.x Legacy Premium Help
    Replies: 31
    Last Post: Jan 25, 2013, 2:52 PM
  3. [CLOSED] Grid Panel Editor Combobox
    By Tonic in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 23, 2013, 11:21 AM
  4. Replies: 0
    Last Post: Jan 08, 2013, 5:18 AM
  5. [CLOSED] Grid Panel editor combobox default value
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 08, 2009, 8:38 AM

Posting Permissions