Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have flexigrid. loading all the data, but Its Loading data but first 3 rows i'm getting data as undefined.

please help me ..

code for loading data to flexigrid


C#
function loadingdata(data) {
           var rows = Array().Empty;


           for (i = 1; i = data.length; i++) {
               var item = data[i];
               rows.push({ cell: [item.EmployeeNo, item.FirstName] });
           }
           return {
               total: data.length,
               page: 1,
               rows: data


           }

           $('#' + empData).flexReload();
   // alert('DONE');
       }
       //$('#' + empData).flexReload();
   }
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jun-14 2:37am    
In what line?
—SA
sushma_bhardwaj 4-Jun-14 2:51am    
HiI can able to load the data. but along with that in the first 3 rows i'm getting "undefined" named rows.
sushma_bhardwaj 4-Jun-14 2:55am    
And its not going through for loop. its executing through return.
it 'll be very helpfull if u could solve my problem.

thanks in advance
Sergey Alexandrovich Kryukov 4-Jun-14 11:36am    
You can determine exact line throwing the exception. Do you know how to handle exceptions? How to debug?
Do you at least know the name of the language you are using in the fragment shown?
—SA
Rahul VB 1-Jul-14 4:57am    
Respected Sir,

How are you doing?? Remember me?

Thanks a Ton,
Rahul

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900