EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 02:07:25 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Numberbox ,datebox types are not displaying with easyui-datebox class
Pages: [
1
]
« previous
next »
Print
Author
Topic: Numberbox ,datebox types are not displaying with easyui-datebox class (Read 13043 times)
kush
Newbie
Posts: 29
Numberbox ,datebox types are not displaying with easyui-datebox class
«
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
Logged
kush
Newbie
Posts: 29
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #1 on:
October 30, 2014, 01:08:13 AM »
I am trying inside popup
Logged
kush
Newbie
Posts: 29
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #2 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>
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #3 on:
October 30, 2014, 01:39:06 AM »
How do you use the 'popup'? Also, the <table> element should be enclosed in the page.
Logged
kush
Newbie
Posts: 29
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #4 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;
}
}
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #5 on:
October 30, 2014, 04:51:26 AM »
Please use $.parser.parse function to parse your components before using them.
Code:
$.parser.parse('#editPrjPopup');
Logged
kush
Newbie
Posts: 29
Re: Numberbox ,datebox types are not displaying with easyui-datebox class
«
Reply #6 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 ?
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...