Custom Command not firing Row Select Event

7 posts, 1 answers
  1. Patrick
    Patrick  avatar
    4 posts
    Member since:
    Jul 2015

    Posted 03 Sep 2015 Link to this post

    We were using Kendo Grid ever since and the normal process is that the when clicking the custom command it would also fire the Row Select Event but now that we've upgraded our Kendo version to support IE11 that process has changed. Clicking the Custom Command does not fire the Row Select Event anymore. Is there anyway to incorporate it back again?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 03 Sep 2015 Link to this post

    Hello Patrick,

    Selecting a Grid row is essentially adding the k-state-selected CSS class to it. You could achieve this manually in the command click handler.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Patrick
    Patrick  avatar
    4 posts
    Member since:
    Jul 2015

    Posted 04 Sep 2015 Link to this post

    Thanks Dimiter

    Could you give me an example on how I would do that? Thank you.

  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 04 Sep 2015 Link to this post

    Hello Patrick,

    Here is a sample implementation of the mentioned approach.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Patrick
    Patrick  avatar
    4 posts
    Member since:
    Jul 2015

    Posted 08 Sep 2015 Link to this post

    Hi Dimiter,

    It did however select the row but it did not fire the method associated with "k-on-change". 

     ​

  7. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 08 Sep 2015 Link to this post

    Hello Patrick,

    In order to trigger the change event of the Grid, the select method of the Grid API should be used to select the row. Here is the updated version of the example.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Patrick
    Patrick  avatar
    4 posts
    Member since:
    Jul 2015

    Posted 10 Sep 2015 in reply to Dimiter Madjarov Link to this post

    Thank you Dimiter!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready