PDA

View Full Version : [CLOSED] Best way to Load GridPanel Data in Code Behind



ljankowski
Jun 12, 2013, 8:22 PM
Hey guys simple question, I have a userControl loaded on page and on it is a grid panel. I wanted to load the grid panel datasource on the page_load of the user control using entity framework and returning a generic list of entity objects, it appears to run if it's on a stand alone page, but embedded within a user control I end up with a javascript error. Whats the best way to proceed in a case like this?

JavaScript runtime error: Unable to get property 'proxy' of undefined or null reference

ljankowski
Jun 12, 2013, 9:08 PM
You can close it, I got it done using the Data function of the Store




Data="<%# Ext.Net.Examples.KitchenSink.Restaurants.GetAllRes taurants() %>">Thanks!