PageViewModel List Update Issue

3 posts, 0 answers
  1. Kristhian
    Kristhian avatar
    4 posts
    Member since:
    Aug 2012

    Posted 27 Sep 2010 Link to this post


    Hello Telerik Team.

    I've been having an issue with the example shown in http://demos.telerik.com/silverlight/#TransitionControl/CustomTransition.

    I basically use pretty much the same example with a few changes, but when I want to modify anything from the list binded to the PageViewModel.Pages property, it simply doesn't work.  I've debugged my app, and the list is modified correctly, but the changes are not rendered in screen.

    I've tried so many things, but it simply doesn't work or raises an unhandled exception that says "the value does not fall within the expected range"

    If I try this... changes the list, but it's not rendered...

    this.listaPaginas.Where(c => c.id == idPagina).First().nombre = tbNombre.Text;
    this.nPaginas.Pages = (IEnumerable<modeloPagina>)this.listaPaginas;

    Where "this.nPaginas" is the dataContext of Pager in your example.

    And, if I try this... it throws the unhandled error shown in the attached file.

    modeloNPaginas nuevoPages = new modeloNPaginas();
                    this.listaPaginas.Remove(this.listaPaginas.Where(c => c.id == idPagina).First());
                    nuevoPages.Pages = (IEnumerable<modeloPagina>)this.listaPaginas;
                    this.nPaginas = nuevoPages;
                    this.Pager.DataContext = null;
                    this.Pager.DataContext = this.nPaginas;

    Could you guys please help me?

    Thanks,


    Kristhian.




  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Sep 2010 Link to this post

    Hello Kristhian,

     Could you please open a support ticket and send us a sample project that reproduces the problem? This would help us better understand what goes wrong and help you fix it.

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Kristhian
    Kristhian avatar
    4 posts
    Member since:
    Aug 2012

    Posted 01 Oct 2010 Link to this post

    Hi Miroslav,

    Ok.. the ticket will be opened asap, it's just that i can't do it because i didn't buy the bundle, so i'm trying to contact the people who bought it and send to you the project reproducing the error.

    I'll post asap the ticket number.

    Thanks!

    Kristhian.
Back to Top