Title: treegrid clear issue Post by: zombie86 on August 17, 2022, 09:52:03 AM Dear All,
hope you are doing well, I do face an issue with treegrid as it has dynamic dataset json and when loading new dataset json it still has the checked nodes :( I do use for clear $('#tg').treegrid('loadData',{"rows":[],"total":0}); for new dataset $('#tg').treegrid('loadData',JSONformattedData); and when I use var rows = $('#tg').treegrid('getCheckedNodes'); it still has previously checked nodes even they completely cleared :'( your help is highly appreciated Title: Re: treegrid clear issue Post by: jarry on August 17, 2022, 05:10:50 PM Please call 'clearChecked' method to clear all the checked rows.
Code: $('#tg').treegrid('clearChecked'); Title: Re: treegrid clear issue Post by: zombie86 on August 17, 2022, 10:19:49 PM thanks jarry,
you saved my day :) the method not listed in documentation Title: Re: treegrid clear issue Post by: battlezad on August 17, 2022, 10:37:18 PM treegrid dependency on datagrid, clearChecked method is mentioned there.
|