Hello guys,
when i am working with ajax update panel I am not able to get row.Index when user select any item. it is saying that row.Index is undefined. the same when i am doing with out update panel i can get. Any solution for this.
<script type="text/javascript">
var a = Array;
window.onload = function() {
debugger;
var inp = document.getElementById('Sel');
var data = inp.value;
if (data != "") {
var rowsData = data.split(":");
var i = 0;
while (typeof (rowsData[i]) != "undefined") {
if (rowsData[i] != "") {
a[i] = rowsData[i];
}
i++;
}
}
}
function Selecting (row) {
debugger;
var i = 0;
while(typeof(a[i]) != "undefined")
{
if (a[i++] == row.Index)
{
return false;
}
}
}
</script>
when i am working with ajax update panel I am not able to get row.Index when user select any item. it is saying that row.Index is undefined. the same when i am doing with out update panel i can get. Any solution for this.
<script type="text/javascript">
var a = Array;
window.onload = function() {
debugger;
var inp = document.getElementById('Sel');
var data = inp.value;
if (data != "") {
var rowsData = data.split(":");
var i = 0;
while (typeof (rowsData[i]) != "undefined") {
if (rowsData[i] != "") {
a[i] = rowsData[i];
}
i++;
}
}
}
function Selecting (row) {
debugger;
var i = 0;
while(typeof(a[i]) != "undefined")
{
if (a[i++] == row.Index)
{
return false;
}
}
}
</script>