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
350
editRow doesn't work after postback
posted

I have the following javascript function:

function ClickCellButton(sGridId, sCellId)

{

var activeRow = igtbl_getGridById(sGridId).getActiveRow();

activeRow.editRow();

}

And following code behind:

protected void Page_Load(object sender, EventArgs e)

{

ITemplate template;template = Page.LoadTemplate("webcontrols/someTemplate.ascx");

UltraWebGrid1.Bands[0].RowEditTemplate = template;

UltraWebGrid1.Bands[0].CellClickAction = Infragistics.WebUI.UltraWebGrid.CellClickAction.CellSelect;

if(!IsPostBack)

{

UltraWebGrid1.DataSource = dsData.Tables[
"Dat"];this.DataBind();

}

}

 When page is first loaded, clickign on a button on the grid invokes the RowEdit template correctly, however on a postback clicking on the button again calls ClickCellButton function however it looks like editRow simply doesn't show the RowEdit template anymore.

Any ideas?

 

Thanks,

 

 

Parents Reply Children
No Data