var gblHfd ="";
function onrowclickofseg(){
var cisshow;
var selectedIndex= frmQA.Seg.selectedRowIndex[1];
if(frmQA.Seg.selectedRowItems[0].flxQA2.isVisible === true){
cisshow = false;
//gblHfd = "";
}else{
cisshow = true;
//gblHfd = selectedIndex;
}
if(gblHfd !== ""){
var obj1 = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:false},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj1,gblHfd,0);
var obj2 = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:cisshow},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj2,selectedIndex,0);
}else{
var obj = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:cisshow},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj,selectedIndex,0);
}
if(cisshow === true){
gblHfd = selectedIndex;
}else{
gblHfd = "";
}
}
function onrowclickofseg(){
var cisshow;
var selectedIndex= frmQA.Seg.selectedRowIndex[1];
if(frmQA.Seg.selectedRowItems[0].flxQA2.isVisible === true){
cisshow = false;
//gblHfd = "";
}else{
cisshow = true;
//gblHfd = selectedIndex;
}
if(gblHfd !== ""){
var obj1 = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:false},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj1,gblHfd,0);
var obj2 = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:cisshow},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj2,selectedIndex,0);
}else{
var obj = {"flxQA1":{isVisible:true},"lblQ":{isVisible:true,text:"Explain the difference between a class and an object",skin:"sknlbltmp"},"flxQA2":{isVisible:cisshow},"flxA":{isVisible:true},"lblA":{isVisible:true,text:"Is answer",skin:"sknlbltmpans"},"imgArrow":{isVisible:true,src:"forward.png"}};
frmQA.Seg.setDataAt(obj,selectedIndex,0);
}
if(cisshow === true){
gblHfd = selectedIndex;
}else{
gblHfd = "";
}
}
0 comments:
Post a Comment