EasyUI Forum
June 19, 2024, 04:05:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Datalist checked rows  (Read 1782 times)
jega
Full Member
***
Posts: 191


View Profile
« 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 Huh

Jesper

« Last Edit: May 17, 2024, 07:00:14 AM by jega » Logged
jarry
Administrator
Hero Member
*****
Posts: 2266


View Profile Email
« Reply #1 on: February 21, 2024, 12:13:49 AM »

Please show an example to demonstrade your issue.
Logged
jega
Full Member
***
Posts: 191


View Profile
« Reply #2 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.



Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!