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

[Solved] Get column list server side from ajax GridCommand?

0 Answers 65 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.
Pat
Top achievements
Rank 1
Pat asked on 22 Feb 2011, 05:08 AM
I'm trying to write a generic method to return data for all my grids which is using ajax calls and paging.  Problem is I don't see a way to  determine which columns the grid actually has, so right now I need to fetch and return all columns.

The orm mapper I'm using, llbl, allows me to load just the columns I need.  Since I'm constructing the return json string myself (due to a circular reference exception when serializing llbl objects), I wanted to be able to make the return data smaller and just return those columns that the grid has.

Anyway to do this?

If not, I'd like to request a feature for adding a columns property to the GridCommand object.
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Share this question
or