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

[Solved] kando-grid, angularjs, odata: requestEnd does not fire properly when filterable row

7 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 13 Oct 2014, 08:53 AM
Hi,

when using dataSource odata with filterable: { mode: "row" } option, the requestEnd event does fire only the first time. If I set filterable: true the event is fired properly.

I'm using: AngularJS v1.2.21 and Kendo UI v2014.2.1008

Any ideas?

Thanks,
Enrico

7 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 14 Oct 2014, 10:33 AM
Hello Enrico,

How can we reproduce this issue. I tried by modifying our example and the requstEnd event continues to be triggered.

http://dojo.telerik.com/@pesho/ibis

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Enrico
Top achievements
Rank 1
answered on 14 Oct 2014, 11:03 AM
Hi,

I have a datasource that is defined in a service and assigned when initializing the controller:

$scope.gridDataSource = apiService.activity.dataSource

Where apiService.activity.dataSource is a kendo.data.DataSource created in another angular service wrapper that we created for reuse. Is quite of a challenge to reproduce that in your test environment. I'll attach a sample for details. Note that if I'm not using the row filter the event is properly raised. Maybe It's an issue in how I initialize the datasource in the controller. Thanks




0
Petur Subev
Telerik team
answered on 16 Oct 2014, 12:22 PM
Hello again Enrico,

I was not able to run the code that you shared. It looks like you are trying to assign new variable to the dataSource of the Grid. What I would suggest is to try and use the setDataSource method of the Grid when trying to replace the dataSource:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-setDataSource

Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peteriman
Top achievements
Rank 1
answered on 16 Oct 2014, 04:20 PM
Hi, I'm not sure if my issue is related to this. 
http://www.telerik.com/forums/2014-2-1008-grid-issue

But I noticed that if I remove away filterable: { mode: "row" }, all 3 data will be correctly displayed as well.
Something is strange with this new release.

ANy ideas?

Regards,
Peteriman
0
Enrico
Top achievements
Rank 1
answered on 16 Oct 2014, 07:47 PM
In my case requestEnd of DataSource is not firing the second time for both versions: 2014.2.905 and 2014.2.1008.

Bye
0
Accepted
Petur Subev
Telerik team
answered on 20 Oct 2014, 10:32 AM
Hello Enrico,

Thank you for sharing your observations. Indeed there was an issue (caused by the fact that the AutoComplete of the filter row uses the same instance of the DataSource and it filters it to display just the unique items) which is already fixed in the latest internal build.

Please try to update to the latest internal build and see if it makes a difference. In case the issue still exist we will need a way to reproduce this and see what goes wrong.

I am sorry for any inconvenience caused.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Enrico
Top achievements
Rank 1
answered on 20 Oct 2014, 10:54 AM
Hi,

tested now with 2014.2.1020 and It's working properly. Thanks for the support.

Enrico
Tags
Grid
Asked by
Enrico
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Enrico
Top achievements
Rank 1
Peteriman
Top achievements
Rank 1
Share this question
or