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?
Hi Sergio Joyce,
I have investigated the issue regarding the deselect method not altering data-chk values for checkboxes. I have asked our Product Development team to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 171177. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will be sure to post their findings and resolution onto this thread as soon as it becomes available.
i did solve the problem...
by doing this
$(ui.rowSelector).find("span[name='chk']").attr("data-chk", "off");
The fix for work item 171177 "the deselect method not altering data-chk values for checkboxes" has been resolved in the latest service release versions 2013.1, 2013.2, 2014.1. To take advantage of this fix, please download the latest service release using the instructions found here: http://community.infragistics.com/forums/t/29398.aspx