EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jega on February 19, 2024, 05:55:02 AM



Title: [SOLVED] Datalist checked rows
Post by: jega on February 19, 2024, 05:55:02 AM
Hi.

Having som trouble with the datalist

I have a dialog with a datalist which is loaded with 130 rows. On open list i check the rows that i need. First time it's 36 rows checked. Closing dialog and open again with 46 different rows checked.

If i only open list with first 36 checked and using var rows = $('#dtList').datalist('getChecked'), rows.length is 36.
When open dialog 2nd time and there is 46 rows checked, rows.length is 82.

Why can this happen, when i only see the 36 or 46 rows checked ???

Jesper



Title: Re: Datalist checked rows
Post by: jarry on February 21, 2024, 12:13:49 AM
Please show an example to demonstrade your issue.


Title: Re: Datalist checked rows
Post by: jega on May 17, 2024, 06:59:34 AM
Hi jarry

Didn't have so much time in the past.

Now i had the same in another code. This was a datagrid

Found that my idField of datagrid not had a right idField.

idField="libName" but in the data it was "libID". Changed to that, and everything works.