angularjs - How do I make a conditional editableCellTemplate? -


i'm trying make rows in ui grid dropdown menus. accomplish this; set editablecelltemplate this;

<div ng-if="!row.entity.dropdown">   <form     name="inputform">     <input       type="text"       ng-class="'colt' + col.uid"       ui-grid-editor       ng-model="model_col_field" />   </form> </div> <div ng-if="row.entity.dropdown">   <form     name="inputform">     <select       ng-class="'colt' + col.uid"       ui-grid-edit-dropdown       ng-model="model_col_field"       ng-options="field[editdropdownidlabel] field[editdropdownvaluelabel] custom_filters field in editdropdownoptionsarray">     </select>   </form> </div> 

i attach 'true' each row.entity want dropdown. however, code endcelledit not appear fire when select different cell in grid mouse. if replace ng-if ng-show, selecting different cell trigger endcelledit, non dropdown cells not editable cell stops editing after cell selected, removing editable template. don't care method have use, need both types of cells editable , switching different cell trigger endcelledit. how go this?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -