I have a grid and I'm using the grid's FormTemplate to edit and insert records into the SQL database.
In this project that I'm working on I want to be able to select a record, take that data and populate the form WITHOUT adding the record first. Here is the button in the grid:
I can easily duplicate the record in the database, but the idea is that someone enters information and the next bit of information is the same with the exception of the person tied to the record. I don't want them to have to retype the information and I don't want to write a new record and have them edit it.
Does this make sense? I'm really stuck on expanding the grid's form and filling the fields.
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
.....
</
FormTemplate
>
</
EditFormSettings
>
In this project that I'm working on I want to be able to select a record, take that data and populate the form WITHOUT adding the record first. Here is the button in the grid:
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"CopyPaste"
ConfirmDialogType
=
"RadWindow"
ConfirmText
=
"Copy information?"
ConfirmTitle
=
"Copy"
ImageUrl
=
"/Images/SmallRecycle.png"
Text
=
"Copy"
UniqueName
=
"CopyColumn"
/>
I can easily duplicate the record in the database, but the idea is that someone enters information and the next bit of information is the same with the exception of the person tied to the record. I don't want them to have to retype the information and I don't want to write a new record and have them edit it.
Does this make sense? I'm really stuck on expanding the grid's form and filling the fields.