dynamic - Add datepicker in the multiple input fields in magento admin grid -


enter image description here>

i have add new grid in catalog price rule edit section

and under there dynamic input field there done through custom renderer.

from renderer returning input field below

return "<input type='text' name='validend[$value]'  value='".$getenddate[0]['valid_end_date']."' id = '$value'>"; 

and created input field each row successfully.

now need add date-picker these fields

can please suggest me how can use magento default datepicjker there in multiple input fields,

ok able magento default caleder libraray , paas dynaic id , value each row below

return "<input type='text' name='validend[$value]'  value='".$getenddate[0]['valid_end_date']."' id = '".$value."_end'>         <img title='date selector' id='".$value."_endz`_trig' class='v-middle' alt=''          src='adminhtml/default/enterprise/images/grid-cal.gif'>              <script>// <![cdata[             calendar.setup({             inputfield : '".$value."_end',             ifformat : '%m/%e/%y',             button : '".$value."_end_trig',             showstime: false,             align : 'bl',             singleclick : true             });             // ]]></script>         "; 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -