This is a migrated thread and some comments may be shown as answers.

Kendo Grid

4 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohamed
Top achievements
Rank 1
Mohamed asked on 26 Jun 2016, 11:03 AM

Hello Telerik Team,

We have ASP.Net MVC 5.0 application. We are using Kendo Grid to show and list all records and we are getting performance issue for the same

after tracking server and client side code we found out that while add row to grid is taking time at client side. we are using below method 

new kendo.data.DataSource({
                type: "aspnetmvc-ajax",
                transport: {
                    read: {
                        url: url,
                        dataType: "json",
                        type: urlType,
                        data: searchParam,
                        complete: function (e) {
                            $scope.IsDirty = false;
                            $scope.KRefresh = 1;
                            $scope.SearchInGrid(); //Filter the Grid
                        }
                    }
                },
                schema: {
                    data: 'Data',
                    total: 'Total'
                },
                error: function (e) {
                    if (e.status == 'error') {
                        $scope.MaxRecordFlag = 1;
                        $scope.SetNoRecordFoundMessage(0);
                    }
                },
                //serverPaging: true,
                serverSorting: true,
                //serverFiltering: true,
                allowUnsort: true
                //pageSize: 50
            })

 

What we are looking forward and Just FYI Paging is not allowed on this page.

Can we have any way to add row in grid at client side in async way ? or on demand . for eg.

lets say i  have 100 rows to bind . then in first show i can bind 20 rows and show in gird and paralle keep binding remaing 80 rows.??

 

Regards

Shrirang

4 Answers, 1 is accepted

Sort by
0
Mohamed
Top achievements
Rank 1
answered on 27 Jun 2016, 09:03 AM

Team 

Can you please reply.

 

0
Alexander Valchev
Telerik team
answered on 29 Jun 2016, 07:07 AM
Hello Shrirang,

I was not able to understand what exactly you would like to achieve.

In case you want to load all data from the server at once and display it on a smaller chunks you should use pagination or virtual scrolling. Both features work without serverPaging.

Regards,
Alexander Valchev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Mohamed
Top achievements
Rank 1
answered on 29 Jun 2016, 10:19 AM

Hello Alex,

Thank you for your reply. I tried virtual scrolling option but it is not working. 

What i want to achieve : 

1) Adding row in Grid at  client side after getting complete result  in one call (using client Ajax call )from server.

 for ex. Lets say after doing Ajax call i am getting result with 1000 item now at client side i want add it to grid in chunk with async. way so that user does not have to wait till all 1000 rows get  attach to grid.

Can we have call or meeting ? if so please email on my profile email id.

Thank you for your time.

Regards

Shrirang

0
Alexander Valchev
Telerik team
answered on 04 Jul 2016, 07:35 AM
Hi Mohamed,

In order to bind the items in chunks you have to use pagination or virtual scrolling.
Please clarify what are the exact problem that you encountered with when trying to configure virtual scrolling or pagination.

Regards,
Alexander Valchev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Mohamed
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or