How to switch colums after selecting a value from a dropdownlist?

1 reply. Last post: November 29, 2012 10:16 PM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Eray GeveciMember

Hello, I have a WebGrid with 4 colums:


STATUS | TRIGRAM| NAME | FIRM


Status is a WebCombo which contains: Intern or Extern.

When i select "Extern" in the dropdownlist it should show the following colums:

STATUS | TRIGRAM| NAME 

and when i select "Intern"(this should be the default value) :

STATUS | NAME | FIRM


how can i do that ?



here is my code so far: 

 function WebCombo3_OnAfterItemSelected(controlId) {
            var WebCombo3 = ISGetObject("WebCombo3");
            var grid = ISGetObject("WebGrid1");
            var selectedStatus = WebCombo3.GetSelectedRow().cells[0].innerText
            if (selectedStatus == "Intern ") {
                alert("Intern is selected")
            }
            else if (selectedStatus =="Extern ") { 
            alert("Extern is selected")
            }
            return true;
        }

 


Thanks in Advance for your help


All times are GMT -5. The time now is 7:36 AM.
Previous Next