Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Unselect a row programtically - value of data-chk is on after the unselection
posted

Hi, i am having another problem, this time with unselect a row programatically..i have a ighierarchicalgrid and i enable rowselectors checkbox..

i can choose only one product of type 1, but can choose multiple products of type 2.

i manage to get the selection working , but the problem appears if more than one product of type 1 is selected..

lets say i select a type 1 product, then select 3 products of type 2, then select another type 1 product, as i already select type 1 product i want to deselect this new type one product..

so i can get the row index through the events of row selectors, from the event checkBoxStateChanged i can get the selected row index and then called .igGridSelection( "deselectRow", index:number ) method..

so the check on the checkbox disappears but the atribute data-chk in on, and it should be off, in order to change it to off, i need to click the checkbox, and then the data-chk atribute has the value of off.

so if i unselect a row through a click the value of data-chk is off, but if i do it through the method the value is on...

is it an issue or is it supossed to work like this?