Hello,
I can't manage to work it out, how to set or get value from popup.
After few hours I finally made it to work in EditMode="InPlace". But it doesn't work EditMode="PopUp".
Can anyone help me?
CODE
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (RadGrid1.MasterTableView.EditMode == GridEditMode.EditForms) |
{ |
if (e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted) |
{ |
GridEditFormInsertItem insertItem = (GridEditFormInsertItem)e.Item; |
(insertItem["ime"].Controls[0] as TextBox).Text = "something"; |
} |
} |
else if (RadGrid1.MasterTableView.EditMode == GridEditMode.InPlace) |
{ |
if (e.Item is GridDataInsertItem && e.Item.OwnerTableView.IsItemInserted) |
{ |
GridDataInsertItem insertItem = (GridDataInsertItem)e.Item; |
(insertItem["ime"].Controls[0] as TextBox).Text = "something"; |
} |
} |
else if (RadGrid1.MasterTableView.EditMode == GridEditMode.PopUp) |
{ |
if (e.Item is GridDataInsertItem && e.Item.OwnerTableView.IsItemInserted) |
{ |
GridDataInsertItem insertItem = (GridDataInsertItem)e.Item; |
(insertItem["ime"].Controls[0] as TextBox).Text = "something"; |
} |
} |
} |
Thanks