EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dailyblog on April 12, 2013, 06:10:51 AM



Title: detailFormatter
Post by: dailyblog on April 12, 2013, 06:10:51 AM
Code:
...
detailFormatter:function(rowindex,rowdata){
 return "<input  class='easyui-datebox'>";
 }
...

as above, input tag still shows  as textbox instead of datebox.


Title: Re: detailFormatter
Post by: stworthy on April 14, 2013, 07:12:26 PM
Please try the code below:
Code:
detailFormatter: function(rowIndex, rowData){
return "<input  class='easyui-datebox'>";
},
onExpandRow: function(index,row){
var d = $(this).datagrid('getRowDetail',index);
if (!d[0].parsed){
d[0].parsed = true;
$.parser.parse(d);
}
}