Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.
I have a JavaScript Function working with a Telerik RadGrid.
In the attached script, I would like to change the if (mymessage == "LT") so that it would ALSO have the following logic
and afsSourceDetail NOT IN ("var1", var2", var3")
else if (item.get_text() == "SplitTaxes") {
vdataItemIndex = $find("<%=grdAvailableForSale.MasterTableView.ClientID%>").get_selectedItems()[0];
var afsSource = vdataItemIndex.get_cell("afsSource").innerHTML;
var afsSourceDetail = vdataItemIndex.get_cell(afsSourceDetail).innerHTML;
var mymessage = afsSource.substring(0, 2)
if (mymessage == "LT")
args.set_cancel(!confirm("Are you sure you want to split taxes?" + afsSource));
selectedRows.clear;
}
else {
alert("Tax Split on Lottery Deals Only!");
selectedRows.clear;
}
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.
Posted on 2011-05-09 at 08:08:27ID: 36812491
All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.