This is a migrated thread and some comments may be shown as answers.

Hide Command in Grid

2 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 15 Nov 2012, 01:13 PM
Hi, i have a problem with the grid,
we need hide command with a condition and block to edition cell with same condition.

my cod of command

{ command: {text: "Guardar", click: change }, title: "Guardar"}

function change

function change(){
    
var concepto = "";
var saldo = "";
var venta = "";
var oper = "";
var prepago = "";
var castigo = "";
var utilidad = "";
var grid = this;
 
 
grid.select().each(function(){
var dtim = grid.dataItem($(this));
concepto += ""+dtim.concepto;
saldo += ""+dtim.saldo;
venta += ""+dtim.venta;
oper += ""+dtim.oper;
prepago += ""+dtim.prepago;
castigo += ""+dtim.castigo;
utilidad += ""+dtim.utilidad;
});
}
how hide and block for edition cell when concepto == 'Total'


Help me please!


2 Answers, 1 is accepted

Sort by
0
Victor
Top achievements
Rank 1
answered on 19 Nov 2012, 07:16 PM
4 days and not reply for my question???

0
Alexander Valchev
Telerik team
answered on 20 Nov 2012, 08:14 AM
Hi Viktor,

To achieve that I would recommend inserting the command buttons via template. In the template definition you could use JavaScript expressions to render (or not) buttons upon a condition.
For more information and example please see this forum topic.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or