Apr 03, 2009, 8:32 AM
Showing a value on a grid that doesn't belong to the associated store
Hi everyone,
i have a problem using a grid. Maybe is a bit odd, but here it goes.
Let's assume i have this 2 classes. On my aspx, i have a store that receives a datasource, List<Person>.
In the grid that uses that store, how can i show the countryName instead of the countryID that is associated with that person?
In trying to use <Renderer> to call an Ajax function that receives the ID and return either de countryName or the whole Country obj. Like in the example, i can make a Ext.Ms appear afer de responser from the server, but i can write the country name on the column.
Any ideas?
Thanks,
Nuno Santos
i have a problem using a grid. Maybe is a bit odd, but here it goes.
public class Person
{
public int ID { get; set; }
public string Name { get; set; }
public int IDCountry {get; set;}
}
public class Country
{
public int IDCountry { get; set; }
public string CountryName { get; set; }
}
Let's assume i have this 2 classes. On my aspx, i have a store that receives a datasource, List<Person>.
In the grid that uses that store, how can i show the countryName instead of the countryID that is associated with that person?
In trying to use <Renderer> to call an Ajax function that receives the ID and return either de countryName or the whole Country obj. Like in the example, i can make a Ext.Ms appear afer de responser from the server, but i can write the country name on the column.
Any ideas?
Thanks,
Nuno Santos