PDA

View Full Version : [CLOSED] Set Focus on GridPanel ComponentColumn



PriceRightHTML5team
Aug 21, 2014, 1:59 PM
Mine is Asp.net MVC Razer view engine application

Attached is the screen shot of Grid having component column.

I have to change value of last component column's component on the change of 1st one.

Issue is that after change event of 1st component column's component focus gets lost and value set to last component column's component in grid

I have written below javascirpt code on component column's component


function chngPriceValue(editor, e) {
if (e.record.data.CHANNEL_DESC == 'USA Channel' && e.record.data.PRICE_TYPE == 'WAC/NDC') {
var vv = parseFloat(e.value);
var items = e.grid.store.data.items;
for (i = 0; i < items.length; i++) {
if (items[i].data.CHANNEL_DESC == 'USA Channel' && items[i].data.PRICE_TYPE == 'AWP') {
e.grid.store.getAt(i).set('NewPrices', parseFloat(vv * 1.2).toFixed(2));
}
}
}
}

Daniil
Aug 22, 2014, 10:59 AM
Hi @PriceRightHTML5team,

I cannot reproduce.