Hi,
I have a default IGGrid sorting enabled on my igGrid. However I am sorting the data according to Business requirement in my Controller. When I try to reload the grid, I get the following message.
Unable to get property 'userSet_currentSortDirection' of undefined or null reference
Can you please let me know why ?
Hello Chishti,
I am not sure why you are getting sorting error when you reload the grid though sorting behavior is working fine.
I would like you to provide me a small isolated working sample to debug the code and find the cause of the issue.
To assist you better please do modify the sample I have provided or you can provide me a working sample of your own for further investigation.
I am looking forward more details from you.
By Business requirements, I meant I am sorting the data before binding for default sort. That works fine. Its just if I try to reload the grid again, I get the above mentioned error.
Can you please let me know under what circumstances we will get this error ?
I do not have clear understanding of your issue .Would like to have some more information incliding
What do you mean by sorting the data by business requirement?
What business requirement do you have?
How you are performing sorting in the grid?
In order to reproduce the same error i would like to have a working sample so tht i can debug it and find the cause of the issue.
I have created a sample application of iggrid with sorting behavior enabled , i would like you to modify the same if this is not what you are doing .
Or provide me an isolated working sample of your own.
Looking forward to hearing you back.