On My RadGrid I have a checkbox column
<telerik:GridTemplateColumn UniqueName="colPrimaryProcedure" HeaderText="" ItemStyle-HorizontalAlign="Center"><HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:checkbox ID="chkPrimary" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
In the itemDatBound event I'm ading an onCLick attribute to fire a Javascript function.
Case "Treatment Codes"
chkPri.Attributes.Add("onclick", [String].Format("setTreatment(this);"))
chkPri.Text = "<span style='font-size:0px;line-height:0px;'>" & e.Item.DataItem("SpecialtyProcedureId") & "</span>"
In the Javascript file I'm getting the clicked on row, and also selecting a value in a RadComboBox, with Checkboxes set to true, and for each ticked row in the Rad Grid, I'm able to select a value in the combo box. This all works as expected.
var checkBox = document.getElementById(theBox.id);
var checkboxText = checkBox.parentElement.innerText.trim();
comboBoxPPFUWL.findItemByValue(checkboxText).set_checked(true);
What I want to do is if a box in unticked in the grid, is to un slect the row in the combo box, I'd have expected the following to work, but it doesn't.
comboBoxPPFUWL.findItemByValue(checkboxText).set_checked(false);
I'm using an old version of the controls 2014.2.618.40 and can't update because of breaking changes in the newer version.
Can anyone help.