Hi:
I'm using Editable Mode: "popup", within a template, and I can't find information about how to set width of the popup windows, here is part of my code:
I need to increase the size (width of my editing PopUp Window)
I'm using Editable Mode: "popup", within a template, and I can't find information about how to set width of the popup windows, here is part of my code:
I need to increase the size (width of my editing PopUp Window)
$(function() { $("#grid_cate").kendoGrid({ dataSource: { transport: { read: "cate_lista.php", update: { url: "cate_lista.php", type: "POST" }, create: { url: "cate_update.php", dataType: 'jsonp', type: "POST" }, destroy: { url: "cate_delete.php", dataType: 'jsonp', type: "POST" }, }, schema: { data: "data", model: { id: "recid", fields: { catego: { validation: { required: true} }, estatus: { validation: { required: true} }, foto: { validation: { required: true} } } } } }, columns: [ { field: "catego",title: "CATEGORIA" }, { field: "estatus",title: "ESTATUS", width: "100px" }, { field: "foto",title: "FOTO", width: "160px" }, { command: ["edit" , "destroy"], title: "OPCIONES", width: "200px" }], editable: { mode: "popup", template: $("#popup_editor").html() }, save: function(e,c){ e.model.set("foto",$("#uploadedFile").val()); }, scrollable: true, navigable: true, pageable: true, selectable: true, sortable: true, toolbar: [ "create"] }); }); function onSuccess(e){ $("#uploadedFile").val(e.files[0].name); } </script> <script id="popup_editor" type="text/x-kendo-template" > <div class="customClass">ESPAÑOL</div> <div class="k-edit-label"> <label for="Estatus">Estatus:</label> </div> <select option name='estatus'> <option value='Activo'>Activo</option> <option value='Pendiente'>Pendiente</option> </select> <br> <div class="k-edit-label"> <label for="Categoria">Categoria:</label> </div> <input type="text" class="k-input k-textbox" name="catego" data-bind="value:catego"> <div class="k-edit-label"> <label for="Descripcion">Descripcion:</label> </div> <textarea cols="47" rows="6" name="descripcion"></textarea> <div class="customClass">INGLES</div> <div class="k-edit-label"> <label for="Categoria_ing">Categoria:</label> </div> <input type="text" class="k-input k-textbox" name="catego_ing" data-bind="value:catego_ing"> <div class="k-edit-label"> <label for="Descripcion_ing">Descripcion:</label> </div> <textarea cols="47" rows="6" name="desc_ing"></textarea> <div class="customClass">SELECCIONAR IMAGEN:</div> <image src="test/${foto}" width="100"></image> <input name="foto" type="hidden" id='uploadedFile' data-bind="value: foto" /> <input type="file" id="files" data-role="upload" data-async='{"saveUrl": "save.php","autoUpload": "true"}' data-success="onSuccess" name="files" /> </script>