What Version provided that Feature?

4 posts, 0 answers
  1. Keith
    Keith avatar
    24 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2018 Link to this post

    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

  2. Georgi
    Admin
    Georgi avatar
    685 posts

    Posted 08 Oct 2018 Link to this post

    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.
  3. Keith
    Keith avatar
    24 posts
    Member since:
    Sep 2011

    Posted 08 Oct 2018 in reply to Georgi Link to this post

    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!

  4. Georgi
    Admin
    Georgi avatar
    685 posts

    Posted 10 Oct 2018 Link to this post

    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.
Back to Top