locked
copy functionality with radgrid using radwindow RRS feed

  • Question

  • User1719252737 posted

    Hi, 

    I have the below itemcommand event of radgrid for copying a record based on ID. 

    if (e.CommandName == "Copy") 

    SHTemplateUI copyTemplate = new SHTemplateUI(); 
    copyTemplate.CopyTemplateByIdUI(Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["StudentHistoryTemplateID"])); 
    this.LoadTemplateList(); 

    This copies the record with the same name. 

    Now i want to make some changes.when i click on copy it should popup a radwindow and ask for the new file name.Once i enter the file name it should check whether the file name already exists.If not copy record with the new file name. 

    Can anybody help please?

    Thanks

    Wednesday, July 27, 2011 1:43 AM

All replies