function CascadingList(filterValue, tableName, ddlName, filterColumn, sortColumn, isDescsending, seperator) {
    if ($('#' + filterValue.id).val() != "") {
        //rootPath value assigned on masterlayout page
        var strURL = document.location.protocol + '//' + window.location.hostname + rootPath + 'public/api/RefTableService/' + tableName ;
        if (filterColumn !== '') {
            strURL += '/' + filterColumn + '/' + $('#' + filterValue.id).val() 
        }
        if (sortColumn !== '') {
            strURL += '/' + sortColumn
            if (isDescsending === '') {
                isDescsending = "False";
            }
            strURL += '/' + isDescsending
        }
        if (seperator !== '') {
            strURL += '/' + seperator;
        }

        $.getJSON(strURL, function (result) {
            var items;
            items = "<option value = ''>--Select--</option>";
            $.each(result.data, function (i, model) {
                items += "<option value = '" + result.data[i].keyValue + "'>" + result.data[i].displayValue + "</option>";
            });
            $('#' + ddlName).html(items).trigger('change');
        }).fail(
        function (error) {
            alert('error');
        });
    }
};
