Title: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: kush on October 30, 2014, 12:52:07 AM Hi ,
I m trying to display number box dateboxes and comboxes as explained in documentaion .But i cant see any date box.All are displaying as textboxes only. for eg <input id="dd" type="text" class="easyui-datebox" required="required"> is displayed as textbox.please help me soon Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: kush on October 30, 2014, 01:08:13 AM I am trying inside popup
Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: kush on October 30, 2014, 01:14:34 AM I was trying inside table.please look the below code.
<div id="editPrjPopup" data-options="iconCls:'icon-edit'" style="display:none;"> <form id="fm" method="post"> <input id="dd" type="text" class="easyui-datebox" required="required"></td></tr></table> </form> </div> Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: stworthy on October 30, 2014, 01:39:06 AM How do you use the 'popup'? Also, the <table> element should be enclosed in the page.
Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: kush on October 30, 2014, 03:40:07 AM <div id="editPrjPopup" data-options="iconCls:'icon-edit'" style="display:none;">
<form id="fm" method="post"> <table id="tb"> </table> </form> </div> This is my div with popup and inside form ... $('#editPrjPopup').dialog({ title: 'Edit Project', width: '80%', closed: false, cache: false, modal: true, height: '60%', }); and inside popup there is a table.I am loding table content dynamically .When loading dynamically its not showing date box number box ....just taking as text box. pls look below code how i m loading dynamic table content inside popup. for (var item in editors) { if (typeof editors[item] !== 'function') { console.log(editors[item]); var type= editors[item].type; switch(type) { case "text": //execute code block 1 tdData += '<td>'+editors[item].field+':<input type="text" class="easyui-textbox" data-options="min:0,precision:2" value="'+editors[item].oldHtml+'"></input></td>'; break; case "numberbox": //execute code block 2 tdData += '<td>'+editors[item].field+':<input type="text" class="easyui-numberbox" value="100" data-options="min:0,precision:2"></input></td>'; break; case "datebox": //execute code block 3 tdData += '<td>'+editors[item].field+':<input type="text" class="easyui-datebox" value="'+editors[item].oldHtml+'"></input></td>'; break; default: // code to be executed if n is different from case 1 and 2 } } console.log("count + tdData"+ count +" :: "+tdData); if(compCount === count){ $('<tr>'+tdData+'</tr>').appendTo(table); count = 0; tdData =''; }else{ count = count+1; } } Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: stworthy on October 30, 2014, 04:51:26 AM Please use $.parser.parse function to parse your components before using them.
Code: $.parser.parse('#editPrjPopup'); Title: Re: Numberbox ,datebox types are not displaying with easyui-datebox class Post by: kush on October 30, 2014, 05:55:30 AM Thanks lot. :)....I had created text box , datebox number box from JavaScript.then it worked fine.
May I know what exactly this parser do ? |