how to get customized data through remote data

I'm trying to get data via database and doing the following
     <div id="defaultlistbox" style="margin:auto;" >
                        <div class="col-lg-6 col-sm-6 formLine1">
                            NAME</br>
                            <span class="label_value">{{x.locationname}} </span>
                        </div>
                        <div class="col-lg-6 col-sm-6 formLine1">
                            desc name</br>
                            <span class="label_value">{{x.descriptionname}} </span>
                        </div>
                    </div>


script.js
    $("#defaultlistbox").ejListView({
                        dataSource: educationlist
                    });

to get the data which i have attached but im not getting the data 

Attachment: Screenshot_(20)_5f9ed263.rar

1 Reply

AP Arun Palaniyandi Syncfusion Team April 26, 2018 01:09 PM UTC

Hi Shalini,  
  
Thanks for your interest in Syncfusion products.   
 
We have tried to replicate your mentioned issue with your shared code and we can replicate the issue. Based on the analysis of your shared codes, we suspect that the issue is because you have not set renderTemplate property as true in your script. And we also suspect that the jsrender syntax is not correct. (i.e not {{ name}}, refer as {{:name}} or {{>name}} )  
 
JS render API link: https://www.jsviews.com/#jsrtags 
 
 So we suggest you to check and change your scripts as like we suggested.  
 
 
<div id="defaultlistbox"> 
                <div class="col-lg-6 col-sm-6 formLine1"> 
                    NAME</br> 
                    <span class="label_value">{{>Texts}} </span>   
                </div> 
                <div class="col-lg-6 col-sm-6 formLine1"> 
                    desc name</br> 
                    <span class="label_value">{{:id}} </span> 
                </div> 
            </div> 
 
   $("#defaultlistbox").ejListView({ 
                dataSource: educationlist, 
                renderTemplate: true,    
 
            }); 
 
 
 
Hence if you still face any issue means, please let us know the below details. 
 
  • Open your console window and check for any console errors and share the issue screenshot or video, if any?
  • If possible, please use our sample to reproducible your issue sample to validate from our side?
  • Whether you are using local datasource or remote datasource?
  • Share your datasource file, if possible?
  • What is the Syncfusion version that you are using?
 
Please find the below sample for your reference. 
 
 
Please refer the above shared details and sample if you still have trouble with your issue, please share us the above asked details. So that we can provide an appropriate solution. 
Regards, 
Arun P. 


Loader.
Up arrow icon