Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object reference not set to an instance of an object. #345

Open
tkardaridis opened this issue May 4, 2022 · 0 comments
Open

Object reference not set to an instance of an object. #345

tkardaridis opened this issue May 4, 2022 · 0 comments

Comments

@tkardaridis
Copy link

tkardaridis commented May 4, 2022

Hi,

I am facing the following issue. When I am using the [GridColumn] attribute with Position and also the [NotMappedColumn] or the [GridHiddenColumn] I am getting error "Object reference not set to an instance of an object" on the creation of the GridClient.

var gridClient = new GridClient(q => GetGridRowsAsync(q, fetchMethod, gridName),
initialQuery ?? extraQuery, false, gridName, null, Statics.UICulture).AutoGenerateColumns() as GridClient;

When I remove the Position from the [GridColumn] attribute it works as expected, but unfortunately I have to reorganize the properties in the model with the order I would like to be in the Grid.

Any suggestions? Can you please check if that is a bug and fix it? Or if it is not, any suggestions on how to use both Position in GridColumn with the attributes NotMappedColumn and GridHiddenColumn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant