EasyUI Forum
September 13, 2025, 04:31:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Numberbox ,datebox types are not displaying with easyui-datebox class  (Read 13047 times)
kush
Newbie
*
Posts: 29


View Profile Email
« 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


View Profile Email
« Reply #1 on: October 30, 2014, 01:08:13 AM »

I am trying inside popup
Logged
kush
Newbie
*
Posts: 29


View Profile Email
« 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


View Profile Email
« 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


View Profile Email
« 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


View Profile Email
« 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


View Profile Email
« Reply #6 on: October 30, 2014, 05:55:30 AM »

Thanks lot. Smiley....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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!