We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

combox in template

Thread ID:

Created:

Updated:

Platform:

Replies:

140654 Oct 30,2018 11:53 PM UTC Nov 1,2018 06:27 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: Grid
marvin Permano
Asked On October 30, 2018 11:53 PM UTC

Hello,
     I've been working on a project where in i wanted to have a detail temple for the Grid. i define the template this way:
<script type="text/x-template" id="detail-template">
    <div class="detail-info">
        @{<ejs-combobox id="${fieldname}-${id}" dataSource="@ViewBag.data" placeholder="Select a game" index="2" popupHeight="230px">
                <e-combobox-fields text="Game" value="Id"></e-combobox-fields>
         </ejs-combobox>}
    </div>
<script>

when i ran the website this is what shows up for the combobox <input id="ACHNO-77760">
how can i make the ejs-combox work in templates?


Thanks in advance,
Marvin

Madhu Sudhanan P [Syncfusion]
Replied On October 31, 2018 07:37 AM UTC

Hi Marvin, 

Thanks for contacting Syncfusion support. 

We cannot use ASP.NET Core Tag helper inside the grid template. Essential JS 2 ASP.NET Core controls uses ES6 like template syntax which is compiled and executed using Essential JS 2 Template engine.  



To render other components inside grid cells, please go through the below link, in which dropdown is rendered inside grid cell. You can use the same procedure to render combobox. 
  


Regards, 
Madhu Sudhanan P 


marvin Permano
Replied On November 1, 2018 03:44 AM UTC

thank you so much! this saves me a lot of time

Madhu Sudhanan P [Syncfusion]
Replied On November 1, 2018 06:27 AM UTC

Hi Marvin, 

Thanks for the update. We are glad that your requirement has been achieved. 

Regards, 
Madhu Sudhanan P 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;