Click here to Skip to main content
15,880,364 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Sir/Madam...
I need to display the data when they select in Dropdownlist based on user input
Consider,
A having 5 colunms(id, name, sex,address, Email)
B Having 7 columns (id, name, sex,address, Email, state, Country)
C having 10 columns

If user select A means 5 (B->7, c->10)columns and the corresponding data only need to show in RadComboBox

How to accomplish it?

Thanking You
Posted
Comments
ZurdoDev 2-Feb-15 10:13am    
Where are you stuck?
Sergey Alexandrovich Kryukov 2-Feb-15 12:24pm    
What have you tried so far?
—SA

1 solution

use a Switch Case Select method?

JavaScript
$('#dropDownList').on('change',function(){
    var dropDownValue = $(this).val();

    switch(dropDownValue){
        case "A":
        //create 5 columns
        break;
        
        case "B":
        //create 7 columns
        break;
        
        Case "C":
        //create 10 columns
        break;
    };
     
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900