i have a radgrid with a gridattachmentcolumn column. the grid is bound to an entitydatasource having the 3 columns stipulated in the documentation - FileName, DataText, and Attachment, the last being a varbinary(max) column.
when i click add new record, fill in the three columns, the text columns are inserted but not the attachment. i thought that the insert would be handled by the grid, yet all of the examples for gridattachmentcolumn i have seen include a prodigious amount of code to handle the insert. do i need to manually insert the data myself? if so, what is the point of the column type? which event would be the best one to write the code? i am handling the insertcommand so would hope there are no objections to doing it there.
if indeed i am required to manually insert the data, please update your documentation to stress this point. if radgrid can declaratively handle my scenario, are there any reasons why my insert is failing?
<
telerik:GridAttachmentColumn
AttachmentDataField
=
"Attachment"
AttachmentKeyFields
=
"ItemID,ForeignKeyID,AttachmentID"
DataSourceID
=
"ItemAttachmentEntityDataSource"
DataTextField
=
"DataText"
FileName
=
"attachment"
FileNameTextField
=
"FileName"
FilterControlAltText
=
"Filter column column"
HeaderText
=
"Attachment"
UniqueName
=
"Attachment"
>
</
telerik:GridAttachmentColumn
>
when i click add new record, fill in the three columns, the text columns are inserted but not the attachment. i thought that the insert would be handled by the grid, yet all of the examples for gridattachmentcolumn i have seen include a prodigious amount of code to handle the insert. do i need to manually insert the data myself? if so, what is the point of the column type? which event would be the best one to write the code? i am handling the insertcommand so would hope there are no objections to doing it there.
if indeed i am required to manually insert the data, please update your documentation to stress this point. if radgrid can declaratively handle my scenario, are there any reasons why my insert is failing?