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

'DATA-ORDER' on columns wont retain on Destroy & re Init column #38

Open
sandeshbsuvarna opened this issue Oct 15, 2014 · 3 comments
Open
Assignees

Comments

@sandeshbsuvarna
Copy link

Hi,

'DATA-ORDER' on column wont retain On destroy & re init . Any idea?

This issue happens when you initialize your grid & you want to destroy it & re initialize it.
$("#grid-basic").bootgrid();
$("#grid-basic").bootgrid('destroy');
$("#grid-basic").bootgrid();

jsfiddle link -> http://jsfiddle.net/bne877up/

@rstaib rstaib self-assigned this Oct 21, 2014
@rstaib
Copy link
Owner

rstaib commented Oct 23, 2014

What is the use case behind destroying and re-initializing the component? Are you might be looking for something like reload? Because destroy resets the plugin completely to its origin state.

@sandeshbsuvarna
Copy link
Author

'destroy' does reset the plugin to the original state but it wont consider 'data-order' which I mentioned int html tag while initializing the plugin.
Ex:
'th data-column-id="id" data-identifier="true" data-type="id" data-order='asc'

@rstaib
Copy link
Owner

rstaib commented Oct 23, 2014

Ahh okay! The examples does not work for me - maybe because of same-origin policy. Anyway I fixed the issue you described last version (1.1.3). Please confirm and close the issue if true.

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

2 participants