DrowDownList with TreeView inside , error after upgrade 15.3.0.33 version

Hi, in my view I have a DrowDownList with TreeView inside, this worked fine before upgrade versione (15.3.0.33) of syncfusion but now  I have this error

ej.web.all.min.js:10 Uncaught TypeError: n.split is not a function
    at Object.getObject (ej.web.all.min.js:10)
    at Object._genTemplate (ej.web.all.min.js:10)
    at Object._templateNodeCreation (ej.web.all.min.js:10)
    at Object._renderTemplate (ej.web.all.min.js:10)
    at Object._ensureDataSource (ej.web.all.min.js:10)
    at Object._initAfterDataSource (ej.web.all.min.js:10)
    at t.DataManager.<anonymous> (ej.web.all.min.js:10)
    at fire (jquery-3.2.1.js:3317)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.js:3447)
    at t.DataManager.<anonymous> (ej.web.all.min.js:10)


This is a part of code 

 <div class="form-group">
        @Html.LabelFor(model => model.categoria, htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-2">
            @Html.EJ().DropDownList("categoria").TargetID("categorie").Width("100%").PopupHeight("280px").WatermarkText("Seleziona una categoria").ClientSideEvents(
           e => e.Create("dropDownCategoriaOnCreate")).ReadOnly(disableControls)
 
            <div id="categorie">
                <ul>
                    @Html.EJ().TreeView("treeViewCategoria").TreeViewFields(
s => s.Datasource(ds => ds.URL(@Url.Action("DataSource", "Categorie", new { tipoArticolo = Model.tipoArticolo })).Adaptor(AdaptorType.UrlAdaptor))
.Id("IDcategoria").Text("categoria").ParentId("IDcategoriaParent").HasChild("hasChild").Expanded("expanded").Selected(Model.IDcategoria.ToString())).ClientSideEvents(
                   e => e.NodeSelect("categoriaSelect").Create("treeViewCategoriaOnCreate").Ready("treeViewCategoriaReady").NodeExpand("checkScroll").NodeCollapse("checkScroll"))
                </ul>
            </div>
            @Html.ValidationMessageFor(model => model.IDcategoria, "", new { @class = "text-danger" })
        </div>
    </div>       


<script>

// -------- dropDown categoria section -----------
 
 
    //prevents the default behaviour to perform custom action
 
    ej.DropDownList.prototype._OnMouseClick = function (e) { }
    ej.DropDownList.prototype._OnMouseEnter = function (e) { }
    ej.DropDownList.prototype._OnMouseLeave = function (e) { }
    ej.DropDownList.prototype._OnKeyUp = function (e) { }
    ej.DropDownList.prototype._OnKeyDown = function (e) { }
 
 
    function dropDownCategoriaOnCreate(args) {
        drpdwnobj = this;
 
    }
 
    function treeViewCategoriaOnCreate(args) {
        treeobj = this;
    }
 
    function treeViewCategoriaReady(args) {
        var node = treeobj.getNode($("#@Model.IDcategoria")); //imposta il valore corretto all'apertura della form
        categoriaSelect(node);
    }
 
    //per far apparire le barre di scorrimento quanto si espande la treeView
    function checkScroll(args) {
        var scrolpos = drpdwnobj.scrollerObj.model.scrollTop;
        drpdwnobj._refreshScroller();
        drpdwnobj.popupList.css("display""block");
        drpdwnobj.scrollerObj.setModel({ "scrollTop": scrolpos });
    }
 
    function categoriaSelect(args) {
 
        if (!ej.isNullOrUndefined(args))
        {
            var currentText = !ej.isNullOrUndefined(args.text) ? args.text : args.value;//recupera il testo dal nodo selezionato
            var currentValue = args.id; //recupera l'ID del nodo selezionato
 
            drpdwnobj.clearText();
            drpdwnobj._hiddenValue = currentText; //adding the current value to hidden element
            drpdwnobj._addText(currentText); // adding the text to dropdownlist
            drpdwnobj.model.value = currentText; //setting value in model
 
            $("#IDcategoria").val(currentValue); //assegna il valore al campo contenente l'ID categoria
 
            drpdwnobj._hideResult();
        }
 
    }
 
    //^^^^^^^^^^ dropDown categoria section ^^^^^^^^
</script>

Can you help me ?


3 Replies

PO Prince Oliver Syncfusion Team October 10, 2017 12:30 PM UTC

Hi Nicola, 

Thank you for contacting Syncfusion forums. 

Unfortunately, we are unable to recreate the issue at our end using the provided details. Please find attached, a small test sample which tries to replicate the issue reported by you, using your shared code snippet. Maybe you can modify this sample to exhibit the issue you are facing and send to us for further investigation. 


Regards, 
Prince 



NI Nicola October 12, 2017 10:48 AM UTC

To recreate the issue in your sample, 

set "true" for the UnobtrusiveJavaScriptEnabled key in web.config 

<add key="UnobtrusiveJavaScriptEnabled" value="true" /> 

include the ~/Scripts/ej/ej.unobtrusive.min.js in _Layout.cshtml






PO Prince Oliver Syncfusion Team October 13, 2017 09:04 AM UTC

Hi Nicola,  

Thank you for your update. 

We have created a new incident under your account for the reported issue. Please log on to our support website to check for further updates  
  

Regards, 
Prince 


Loader.
Up arrow icon