hello
please help me
i have 1 page that have about 10 gridview
now, i buid a ViewModel contain 10 object then return to grid but it load very slow because it has any object(10 object type Iqueryable) is contained in 1 ViewModel
can u tell me solution to fix
note:
before show to gridview i must count or check if it is not contain data(nothing) then show 1 measage and do not show null gridview on page
thanks you very much!
who can help me?
Hello Cuong Tran,
Thank you for posting in our forums!
Please answer the following questions so I may better assist you with this.
1. Are you using remote data at all or are you sending all of your data down to the browser at once?
2. What exactly is slow about the pages you are loading? Is this happening on the server, or on the client?
3. Are you binding all of your data to your igGrids through your ViewModel?
4. How much data is being sent through to each igGrid?
5. Are you able to provide a code example of how you are setting up the igGrids?
Looking forward to hearing from you.
thanks you!
1. No, i'm not using remote data. i sending all data to browse at once
2. i think that both server an client. because on server i get all data at once and send to browser at once(model have many sub model)
3. yes, I binding all data to 1 model
4. data is not so much but i do down speed
5. I attach my code above
thanks for support!!
Hi Cuong,
We are currently looking into this matter and will keep you posted of any available information.
Please do not hesitate to contact us with any updates or additional questions regarding this scenario in the meantime.
Regards,
Tsanna
From looking at the code you provided, the issue is likely that you are processing and sending too much data down to the browser at once. If you capture your network traffic, how large is the page that is being sent down? If this page size is very large, I would recommend implementing remote data, so the page initially loads quickly and the igGrids load their data asynchronously. The way you are currently implementing the igGrid, the entire datasource of each igGrid that displays is rendered as JSON and sent down at once. This could result in a very large page size. The following sample shows how you could set up the igGrid to use the DataSourceUrl property to point to a controller action which provides the data asynchronously.
http://igniteui.com/grid/aspnet-mvc-helper
If you have any further questions or concerns with this, please let me know.
thanks you very much i have an other way. and it work
thanks you again!