Welcome to RightHand's community place Sign in | Join | Help

ASPxGridView, MS Ajax and XYDataSource

If you use Developer Express ASPxGridView within MS Ajax' UpdatePanel (ASPxGridView.EnableCallBacks="False") you should be aware that you should perform DataBind() method within OnInit method (Init event). Otherwise editing just won't work, or better, it works, just the modifications aren't persisted. It took me some time to pinpoint the problem as ASPxGridView worked just fine outside UpdatePanel. I had to put it within UpdatePanel because I needed to refresh other controls as well (otherwise grid refreshes just itself).

Note that when ASPxGridView is hosted in UpdatePanel the nice error reporting feature (see the picture below) won't work either - instead you'll get script error reported by browser. IOW you have to handle errors by yourself.

image

Cool automatic error feedback

See also this support thread.

Published 31. marec 2008 13:59 by Miha Markic
Filed under: , ,

Comments

# re: ASPxGridView, MS Ajax and XYDataSource

31. marec 2008 22:01 by Bojan
Hm...i used version 7.3.5 and aspxgridview worked well..i also dynamicly load controls. I will certainly try this. I have new version installed, but didnt tryed it yet..miha, since when are you developing web apps?

# re: ASPxGridView, MS Ajax and XYDataSource

1. april 2008 9:02 by Miha Markic

Heya Bojan,

Well, I am doing web apps here and there. :-)

New Comments to this post are disabled