Title: Problem with checkbox field in datagrid-groupview Post by: patana on October 09, 2013, 09:12:28 PM When combining datagrid-groupview with checkbox field,
Code: $(this).datagrid('getChecked').length Please help! Title: Re: Problem with checkbox field in datagrid-groupview Post by: stworthy on October 09, 2013, 11:26:00 PM Please refer to this example http://jsfiddle.net/dGmSu/. It can return the correct checked row count.
Title: Re: Problem with checkbox field in datagrid-groupview Post by: patana on October 11, 2013, 01:52:47 AM I found the problem. If i set idField:'id' to datagrid, then the number of checked row was incorrect.
Could I count the number of checked row base on grouped row? Title: Re: Problem with checkbox field in datagrid-groupview Post by: stworthy on October 11, 2013, 06:25:32 AM Here is the updated example that set idField field. It also works well.
http://jsfiddle.net/dGmSu/4/ Title: Re: Problem with checkbox field in datagrid-groupview Post by: patana on October 11, 2013, 07:01:15 PM I changed idField to productid, the problem occured. check here
Code: http://jsfiddle.net/dGmSu/5/ Title: Re: Problem with checkbox field in datagrid-groupview Post by: stworthy on October 11, 2013, 07:24:56 PM You have set a wrong 'idField' value. The 'idField' value must be unique.
Title: Re: Problem with checkbox field in datagrid-groupview Post by: patana on October 13, 2013, 08:45:35 PM I see, But could i count checked row base on productid?
http://jsfiddle.net/dGmSu/7/ |