This is a migrated thread and some comments may be shown as answers.

Kendo Grid HTML column Template

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajith
Top achievements
Rank 1
Ajith asked on 03 Mar 2014, 02:58 PM
Hello,

I want a control like attached image in HTML column. On click of image I am calling JavaScript to open some window that returns text as output.  I want to set the output to txt_Lookup as shown in code. 

Through below code I am able to find template. I need control object not template object.
 
var entityGrid =$("#grid").data("kendoGrid");
 
var template=  entityGrid.columns[4].template;

 I have added below template in Columns.

{

template: '<input type="text"
id="txt_Lookup" width="15"/>  <input
type="hidden" id="hdn_Guid"/>  <input
name="submit" id="submitme" type="image" 
onclick="OpenLookup();" />',
              
sortable: false
             }

I am fetching records from database. How selected records will be set in txt_Lookup while fetching?  As it is template I am not sure how can we set the value for template?

Would somebody provide some guidance on this?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 05 Mar 2014, 11:10 AM
Hi Ajith,

I already answered to this query in a support the ticket you opened. Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ajith
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or