Home Analyst Portal

Deselect Query Result Selection with JavaScript

Ryan_KennedyRyan_Kennedy Customer IT Monkey ✭

Hello,

I am trying to write some custom javascript that will auto select an object in a query result in the portal if the filter filters the possible selections down to one object. Then if the user continues to type in the filter box and there are zero available selections, it deselects the current selection. Does anyone know how to clear the selections?

Thanks

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Hey Ryan,

    There is a clearSelection method on the Kendo Grid.
    var grid = $("#grid").data("kendoGrid");
    grid.clearSelection();
    That should do the job. Nice idea by the way. Good luck with it.

    Geoff
Sign In or Register to comment.