53.02 Master Combo Issue (Xamarin) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
For Dialect-entity we defined master controls as a combo
The number of languages is equal 236. The number of countries is equal 247.
- Let's navigate to Dialect (R Page)
- Open "Modify Item"-Page for the Afar (Ethiopia)-row
- The "Country"-combo is not defined !!!!
- Let's open "Country"-combo
- "Comoros" is a last row in the combo. I.e. the combo is not populated with "United state"-row (for instance).
To fix the issue
- Run Visual Studio 2019
- Open
Controllers\LitCountryViewWebApiController.cs
-file of the "Dm04WebApp"-project
namespace Dm04WebApp.Controllers {
[RoutePrefix("litcountryviewwebapi")]
public class LitCountryViewWebApiController: ApiController
{
private int defaultPageSize = 50;
private int minPageSize = 5;
private int maxPageSize = 150;
private LitDbContext db = new LitDbContext();
[HttpGet]
[Route("getall")]
public IQueryable<LitCountryView> getall()
{
- Set
defaultPageSize
andmaxPageSize
to 300
namespace Dm04WebApp.Controllers {
[RoutePrefix("litcountryviewwebapi")]
public class LitCountryViewWebApiController: ApiController
{
private int defaultPageSize = 300; //50;
private int minPageSize = 5;
private int maxPageSize = 300; // 150;
private LitDbContext db = new LitDbContext();
[HttpGet]
[Route("getall")]
public IQueryable<LitCountryView> getall()
{
- Run Visual Studio 2019
- Open
Controllers\LitLanguageViewWebApiController.cs
-file of the "Dm04WebApp"-project
namespace Dm04WebApp.Controllers {
[RoutePrefix("litlanguageviewwebapi")]
public class LitLanguageViewWebApiController: ApiController
{
private int defaultPageSize = 50;
private int minPageSize = 5;
private int maxPageSize = 150;
private LitDbContext db = new LitDbContext();
[HttpGet]
[Route("getall")]
public IQueryable<LitLanguageView> getall()
{
- Set
defaultPageSize
andmaxPageSize
to 300
namespace Dm04WebApp.Controllers {
[RoutePrefix("litlanguageviewwebapi")]
public class LitLanguageViewWebApiController: ApiController
{
private int defaultPageSize = 300; // 50;
private int minPageSize = 5;
private int maxPageSize = 300; // 150;
private LitDbContext db = new LitDbContext();
[HttpGet]
[Route("getall")]
public IQueryable<LitLanguageView> getall()
{
Restart Server side (Dm04WebApp)
- Let's navigate to Dialect (R Page)
- Open "Modify Item"-Page for the Afar (Ethiopia)-row
- "Country"-combo shows data as expected