Re: Dynamic grid columns?
Quote:
Originally Posted by SteveEisner
Hi, two quick questions:
1) Is it possible to set up a grid so that its columns are based on the contents of the records you pass it? In other words, if the records are {X:1,Y:2} the columns will be X and Y.
2) Is it possible to configure the "start" and "limit" parameters to change them to "startIndex" and "endIndex" (or does limit = "length"?)
I don't think so, and for many reasons. One reason is that the data model provides a set of data that you can then provide a view of. The column model is that view. The column model says "With these 12 data elements returned per row, which ones do I want to display in my viewport and which ones are there for support purposes?"
There's nothing preventing you from flattening the view to match the data source though. You could just write a mini adapter that goes out and discovers your column model and dynamically creates it for your grid.
dreaming for dynamic grid...
plz... Steve,
if you can provide some sample or atleast js and html code...it will help a lot for new bees....dreaming for dynamic grid...