This is a migrated thread and some comments may be shown as answers.

PageViewModel List Update Issue

2 Answers 51 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Kristhian
Top achievements
Rank 1
Kristhian asked on 27 Sep 2010, 06:56 PM

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 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 Sep 2010, 02:23 PM
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
0
Kristhian
Top achievements
Rank 1
answered on 01 Oct 2010, 06:56 PM
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.
Tags
TransitionControl
Asked by
Kristhian
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Kristhian
Top achievements
Rank 1
Share this question
or