This is a migrated thread and some comments may be shown as answers.
What Version provided that Feature?
3 Answers 7 Views
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 04 Oct 2018, 02:08 PM

Good Morning to all of you!

So is there a resources that correlates when a feature first become available in a version of the Kendo UI control?  For example, I want to use the selectedKeyNames method of the grid.  Sadly we are not up-to-date on our versions, and while it might sound easy to upgrade to the latest, it is not.  We have a much older app that is paired to an older version of jQuery and would require a lot of testing on combinations based on JavaScript Prerequisites.  

 

What I would love to see is some sort of documentation on the API docs saying when a feature was first released.

I look forward to any responses.

Peace,
Keith

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 08 Oct 2018, 09:52 AM
Hi Keith,

In our release notes we list all new features for each new version. For further information please refer to the full list of release notes:


Having said that, the selectedKeyNames returns an array of the ids of the selected items. In case you are using a version which does not include this version you could add a click handler to the rows and save the id of each selected row. Then to persist the selection when paging, simply add the k-state-selected class to each saved item.

// save selected items    
     $('#grid').on('click', 'tbody tr', function(e){
              var grid = $('#grid').data('kendoGrid');
              var row = $(e.currentTarget);
              var id = grid.dataItem(row).ProductID;
 
              if(!grid.selectedItems){
                    grid.selectedItems = [];
              }
 
              if(row.is('.k-state-selected')){
                  grid.selectedItems.push(id)
              }else{
                  grid.selectedItems.splice(grid.selectedItems.indexOf(id),1)
              }
 
          })
 
// apply selected items within dataBound event handler
 
            dataBound:function(){
              var grid = this;
                                if(this.selectedItems && this.selectedItems.length){
                  this.selectedItems.forEach(function(x){
                    var dataItem = grid.dataSource.get(x);
                    grid.tbody.find('[data-uid="'+dataItem.uid+'"]').addClass('k-state-selected')
                  })
                }
            }

Below you will find a small sample which demonstrates the above approach:



Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Keith
Top achievements
Rank 1
answered on 08 Oct 2018, 01:48 PM

Georgi,  

Thanks for responding.  Regrading the release-history, it is easy to go there and see what changed in a particular release, but there is no way to search  for changes across 6+ years of history.  That would have allowed me to find when the method was introduced.

Have a good one!

0
Georgi
Telerik team
answered on 10 Oct 2018, 10:12 AM
Hello Keith,

Currently the only way to track with which release a certain feature was introduced is to use the release notes.

I can suggest submitting a request for the progress spinner when exporting in our UserVoice portal. This way the users can vote for the feature. Based on the traction the request gathers with the community we will consider implementing it in a future release.

 

Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Keith
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Keith
Top achievements
Rank 1
Share this question
or