Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
DropDown in Row Edit Template
posted

Hi,

I'm using a DropDownList in a RowEditTemplate. I try to work with the example
on http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?
ArticleID=5206

If the RowEditTemplate opens, the DDL list has the value of the row
displayed in the grid. But when I change the value of the DDL, the row will
not be updated.Has anybody an idea?

function UltraWebGrid1_AfterRowTemplateCloseHandler(gridName, rowId)
{ if(event.srcElement.id == "igtbl_reOkBtn")
{
    var row = igtbl_getRowById(rowId);
    var combo = igdrp_getComboById("UltraWebGrid1xxctl0xWebDateChooser1");
    var dd = document.getElementById("UltraWebGrid1__ctl0_DropDownList1");


    row.getCell(0).setValue(combo.getValue());
    row.getCell(1).setValue(dd.value);

}
}

function UltraWebGrid1_BeforeRowTemplateOpenHandler(gridName, rowId,
templateId){
var row = igtbl_getRowById(rowId);
var combo = igdrp_getComboById
("UltraWebGrid1xxctl0xWebDateChooser1");
var dd = document.getElementById
("UltraWebGrid1__ctl0_DropDownList1");
combo.setValue(row.getCell(0).getValue());
dd.value = row.getCell(1).getValue();
}