Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ng-grid paging
Message
 
 
À
26/10/2014 20:47:12
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Divers
Thread ID:
01609778
Message ID:
01609949
Vues:
45
>>>>Trying things at random means you are just thrashing around. If something doesn't work then debug 'till you find out why - then look for the solution.
>>>
>>>She's been recommended to do this for years, she just can't do it, because she doesn't understand how it all works together.
>>
>>I was absolutely certain you would post one more of such spiteful remark.
>
>How is the cold blooded truth spiteful? You dance from one solution to the next trying solution after solution to fix your problem rather than isolate and fix the problem on your own. This is how programmers work. I have spent days on problems i'm having, do you see me post 100's of lines of code asking for others to chime in and fix my problems. No, I run a console app and test the basic structure. If that works, I add the next layer. If it works, I move on, if it doesn't , I fix it. you however, do not understand you code base, let alone understand how a real programmer works with code. Otherwise, you would not be asking for everyone else to help you fix your code.

How am I supposed to isolate the problem in this particular case when I use a third party control? I know that my code returns data correctly, I can see that the currentAccount.invoices contain correct info. Also, the grid does always show correctly the Total Number of items.

The fact that it intermittently shows correct information and that it always shows correct information after switching to Dev. Tools suggests that it's something internal to this component (some sort of a bug).

I don't think I can debug ng-grid itself as it's too complex for me and besides we're using min version of the file (although I can switch to the latest version with full code).

I also did try to isolate by removing paging. The behavior improved but is still wrong. My next point of isolation I was thinking of is to remove 2 columns which use cellTemplate and see if the problems remain or not.

Removing these 2 columns actually made it even worse... I added the columns back, in IE I am tracing the code. In immediate window I am checking currentAccount.invoices and currentAccount.invoices[0]. The information is correct.

Yet, 2 accounts (Guests and Tables) show invoices OK. The rest do not show invoices in the grid.

I already spent several days on this problem including today's (Sunday). I am ready to admit defeat.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform