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!
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!