API to Reset / Remove Grid control rows? - Forum - Rollbase - Progress Community

API to Reset / Remove Grid control rows?

 Forum

API to Reset / Remove Grid control rows?

This question has suggested answer(s)

Hi All,

Is there any API available to reset the grid control or to delete all the rows and to refresh the grid control?

I have a situation where I should be able clear everything in the grid control and to start fresh when I click on 'Reset' button without reloading the page. I wonder whether is there any other simple way to do this rather than deleting one by one or loop through all the rows and call the api to delete it. 

Thanks in advance,
Ithrees

All Replies
  • Hi ithrees,

    Its a good idea to have a grid similar to Kendo Grid where we can search, selecting all records and pagination etc. We have it in our future roadmap.

    Until this is available , please use the following code as you mentioned in your query.

    function resetGrid(){

      var noOfRows=rbf_getMaxRowIndex2(0);

      for(var rowIndex=0;rowIndex<=noOfRows;rowIndex++){

      rbf_delGridRow(0, rowIndex);

      }

     }

    I would suggest you to post this enhancement through the Progress Community via an Ideas submission.

    For detailed information on how to submit an Idea please visit our knowledgebase at:

    Regards,

    Shiva.