How to clear Kendo grid rows without invoking databound method?

2 posts, 0 answers
  1. Avinash
    Avinash  avatar
    52 posts
    Member since:
    Jan 2016

    Posted 13 Apr Link to this post

    I have a grid with databound method which shows the message 'No Data Found for the search' in case no data gets retrieved after performing search. Now i have added a radio buttons which when clicked needs to clear the old data from the grid. The issue is i am using the code

     which does clear the grid but it also shows 'No Data Found for the search' message. Since user didn't perform any search but only changed the radio button it doesn't seem right to display that message in the grid. So, i was wondering if there was a way to clear the grid without invoking the databound method.


  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2121 posts

    Posted 14 Apr Link to this post

    Hello Avinash,

    Each time the Grid is bound to a new set of data, the dataBound event will be triggered. You could for example set a flag variable, then check it in the event handler and act accordingly.

    var isRadioClicked = true;

    Dimiter Madjarov
    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 AJAX banner
Back to Top