Dynamically changing the selectable property

7 posts, 0 answers
  1. Richard
    Richard avatar
    5 posts
    Member since:
    Dec 2013

    Posted 19 May 2014 Link to this post

    We need to dynamically change the selectability of the rows in the grid.  When a dropdown outside the grid has a certain value, the selectability of the grid is "row" for single-selection.  For the other value, the selectability is "multiple, row".

    How do I change the selectability dynamically?  

    grid.selectability( (selectedFilter().multiselect == true ? "multiple, row", "row"));
    fails with an error saying it is not a function

    grid.selectability = (selectedFilter().multiselect == true ? "multiple, row", "row");
    has no effect.

    Thanks,
    Rod Early
    McKesson Corp.

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2213 posts

    Posted 20 May 2014 Link to this post

    Hi Rod,


    Currently this functionality is not supported. If you consider that run-time changing of the selection type is a feature that should be implemented in the Grid, you could post it in the Kendo UI Feedback portal. If it becomes popular among the community, we may consider to implement it in future versions of the Grid.


    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Jeff
    Jeff avatar
    20 posts
    Member since:
    Jan 2017

    Posted 16 Feb in reply to Dimiter Madjarov Link to this post

    Has there been any change regarding the toggling of the selectable option? This would be helpful, since my current project is dealing with lots of columns, and there are significant performance issues in IE with the selectable option turned on.
  4. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2213 posts

    Posted 17 Feb Link to this post

    Hello Jeff,

    Please open a ticket with further details regarding the project, so we could provide assistance.

    Regards,
    Dimiter Madjarov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Jeff
    Jeff avatar
    20 posts
    Member since:
    Jan 2017

    Posted 17 Feb in reply to Dimiter Madjarov Link to this post

    Well, is there a way to programmatically change the selectable nature of the grid? Or does it have to be set at initialization?
  6. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2213 posts

    Posted 20 Feb Link to this post

    Hello Jeff,

    Any Grid option could be changed through the setOptions method:

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

    which will recreate the widget with the new options.

    Regards,
    Dimiter Madjarov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  7. Jeff
    Jeff avatar
    20 posts
    Member since:
    Jan 2017

    Posted 21 Feb in reply to Dimiter Madjarov Link to this post

    Thank you for the clarification     
Back to Top