Skip to content

Different data on same grid #2522

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

Closed
ashiquemohammed opened this issue Jan 9, 2015 · 7 comments
Closed

Different data on same grid #2522

ashiquemohammed opened this issue Jan 9, 2015 · 7 comments
Milestone

Comments

@ashiquemohammed
Copy link

For a project i am working on i have maintained One grid , and for each data from the back end replaced in the same grid . The grid works fine for the first time whichever data it is , but for the second time there is some problem with the css or the template . Here is the link for the plunker . http://plnkr.co/edit/YUxYL7DXi2MX6B8UsEfO?p=preview

@juliusakula
Copy link

your plunker isn't working intially on load, but Check this out: http://plnkr.co/edit/OFt86knctJxcbtf2MwYI?p=preview

@ashiquemohammed
Copy link
Author

@juliusakula : Thank you for your response . I have seen that example earlier . And I double checked my plunker . It's working . It takes a little time initially to load , But is working fine . Could you please check it once again . I dont understand what I am missing out here ,

@PaulL1
Copy link
Contributor

PaulL1 commented Jan 10, 2015

I think it's to do with the way you're manipulating the columnDefs, although I'm not quite sure why it's causing the formatting problems.

I've linked to the current master version, rather than including ui-grid.js as a plunker file (which also makes it run faster), and tidied the code a bit to simplify. This one is sort of working (you have to click swap data twice, not quite sure why), but might give you some pointers to a diagnosis.

http://plnkr.co/edit/O7Uhae8kbMrLZOf4QurF?p=preview

@PaulL1 PaulL1 added this to the 3.0 milestone Jan 10, 2015
@ashiquemohammed
Copy link
Author

I checked the source code and found out that , all the columns (elements) are generated but the css for some particular fields are not present . In this case , the css for the column that repeats is not set . Why is that ?

@ashiquemohammed
Copy link
Author

Instead of specifying {field:'field-name'} , I specified {'name':'field-name '} and it was working fine . I am not sure , what can possibly be the reason , Thank You anyways.

@alexandery
Copy link

@32teeths - check the thread #2193 - I've posted some code there that fixes an issue of column replacing for me.

@PaulL1
Copy link
Contributor

PaulL1 commented Feb 6, 2015

OK, sounds like there is a resolution to this, and no new comments for 3 weeks. Closing.

@PaulL1 PaulL1 closed this as completed Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants