I have a DataGrid with a Datebox field and want to use masked input with the textbox part of the datebox.
I have read the previous example posted below, with a solution posted by stworthy, but cannot work out how to do the same thing within a DataGrid.
-------------------------
Previous Example: http://www.jeasyui.com/forum/index.php?topic=532.0 How to combine datebox with masked input like this:
http://digitalbush.com/projects/masked-input-plugin/ User code:
$('#mydate').datebox({ required:true }).mask("99/99/9999",{placeholder:" "});
Solution from stworthy:
$('#mydate').datebox({ required:true }).datebox('textbox').mask("99/99/9999",{placeholder:" "});
--------------------------
My Code: <table id="tt" class="easyui-datagrid" title="Programme">
</table>
<script type="text/javascript">
$('#tt').datagrid({
url:'get_programme.php',
singleSelect:true,
method:'get',
onClickCell: onClickCell,
selectOnCheck:true,
checkOnSelect:true,
columns:[[
{field:'ID',title:'ID',width:20},
{field:'eventDate',title:'Date',width:100,editor:'datebox',resizable:true}, {field:'eventTitle',title:'Event Title',width:300,editor:'text',resizable:true},
{field:'eventDetail',title:'Event Details',width:500,editor:'textarea',resizable:true},
{field:'check',checkbox:true}
]]
});
</script>
Can you help me please?
Thanks