thank you....
function
looseChanged_AmountBox(sender, args) {
var statusID = '<%=StatusLabel.ClientID %>';
var status = document.getElementById(statusID);
//var status = '<%=Session["status"] %>';
//var statusHiddenFeild = document.getElementById('<%=statusHiddenFeild.ClientID %>');
var list = $find('<%=looseChangeListBox.ClientID %>');
var subTotalAmountTextBox = $find('<%=((RadTextBox)looseChangeListBox.Footer.FindControl("subtotalLabelTextBox")).ClientID %>');
var itemIndex = list.get_items().indexOf(list.get_selectedItem());
alert(itemIndex);
if (status.innerText == "O") {
var Count = list.get_items().getItem(itemIndex).findControl("amountBox");
alert(Count.get_value());
var countOffSet = list.get_items().getItem(itemIndex).findControl("countOffSetLabel");
alert(countOffSet.get_value());
var offSetValue = (parseFloat(Count.get_value()) - parseFloat(countOffSet.get_value()));
alert(offSetValue);
countOffSet.set_value(
'(' + parseFloat(offSetValue) + ')');
A = OpenBank(list, status, subTotalAmountTextBox, itemIndex);
countOffSet.set_visible(
true);
//list.get_items().getItem(itemIndex).findControl("countOffSetLabel").set_visible(true);
}
else {
A = CloseBank(list, status, subTotalAmountTextBox);
}
getTotalSum();
}
I have a radlistbox with 7 items in it each item consists of these control
label,Radnumerictextbox(amountBox),label,label,radnumerictextbox and radnumeric textbox(countOffSetLabel) in sequence ,so for countOffSetLabel i wrote onload event inorder set visbility false intially ,and i wrote onvaluechanged for amountBox,so this gets fired when ever i entered value in amountbox and hit tab,after hitting the tab I am making countoffsetlabel visbility true,and focus is set to next item amountbox this is good but when I am trying to find index of the item it is coming of with 0 actually it is should be 1,if i select physically with mouse i am getting it as 1 but i dont want user to do that so whenever user hit tab and moved to second item i want that item index....
Thank you.....