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

Ajax Data Binding - Grid does not display *ANY* data

2 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rajesh
Top achievements
Rank 1
Rajesh asked on 20 Mar 2012, 12:26 PM
HI,

I have struggled with this for long enough. I know i must be missing something very trivial.

I have verified that the controller class indeed returns data. However, for some reason the grid does not display it.

I am using a very simple grid - non-editable, with no editor/client templates.

I have attached the entire example project.

The following is what i need to achieve - though secondary given where i am.
In the actual project, i have the following specific requirements:

1. Nested Tab strips (which i have been able to accomplish)
2. Multiple grids on each of the leaf level tab strips --- the UI shows up, which probably means the columns are correclty bound. But the same issue as in the attached project -- the data does not show up.
3. Ability to update multiple grids (which are at the leaf level on the tabstrips) with a single submit button on the main page (is there a neat way to do it? or i have to use jquery+js to get a handle to the grid instances from all the child views?


-Rajesh

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 21 Mar 2012, 09:15 PM
While I don't have time to look at your code right this moment, have you tried subscribing to the OnError event for a grid or two, and dumping some data to the console to see if there's something in there?  Just a suggestion, that's helped me in the past.  Also, I seem to remember reading something on the forums about grids not playing nice with nested tabs, so I'd do a bit of searching.

Hope something there helps you out.
0
Rajesh
Top achievements
Rank 1
answered on 23 Mar 2012, 04:59 AM
I figured (what i think is a hack) this one out. I have to manually cast the ObjectSet i get from the dataset to a EnumerableWhereSelect  clause... Its a pretty nasty thing to do... but will live with it for the moment.

Tags
Grid
Asked by
Rajesh
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Rajesh
Top achievements
Rank 1
Share this question
or