This is a migrated thread and some comments may be shown as answers.

File to upload .count = 0 when I have the radupload as custom radgrid addedit control

1 Answer 87 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Andy Taslim
Top achievements
Rank 1
Andy Taslim asked on 17 Aug 2010, 04:32 AM
Hi guys,

I have a user control that has radgrid inside it. During edit / add, I will use my own custom user control to edit / add.

Here is my radgrid code:

<telerik:RadGrid  ID="rgDocumentCheckList" runat="server" GridLines="None" 
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="DocumentId" Name="DocumentListTable">
            <telerik:GridBoundColumn UniqueName="DocumentType" HeaderText="Document Type" DataField="DocumentTypeName">
            <telerik:GridHyperLinkColumn UniqueName="DocumentLink"
                DataTextFormatString="{0}" DataTextField="DocumentTitle"
                DataNavigateUrlFormatString="{0}" DataNavigateUrlFields="URL">
            <telerik:GridBoundColumn UniqueName="Stage" HeaderText="Stage" DataField="StageName">
            <telerik:GridBoundColumn UniqueName="Remarks" HeaderText="Remarks" DataField="Remark">
            <telerik:GridBoundColumn UniqueName="UploadedBy" HeaderText="Uploaded By" DataField="UploadedBy">
            <telerik:GridBoundColumn UniqueName="UploadedDate" HeaderText="Uploaded Date" DataField="UploadedDate">
            <telerik:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status">
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="10px" Visible="true">
<ItemStyle Width="10px"></ItemStyle>
                    <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
                            HeaderButtonType="None" ImageUrl="~/Resources/Images/Bin.gif" ItemStyle-Width="10px" UniqueName="colActionDelete"
                            Visible="true" CommandName="Delete" ConfirmText="Confirm to delete?" ConfirmTitle="Action confirmation">
                            <ItemStyle Width="10px" />
        <EditFormSettings UserControlName="~/UserControl/CommonFunctionality/DocumentCheckList/DocumentAddEdit.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1">

I found this link, and under "Workaround for RadGrid for ASP.NET AJAX" i found a great solution for using GridTemplateColumn. But how can I do it if I use my own control to add and edit?

Thank you.


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 23 Aug 2010, 02:02 PM
Hello Andy,

Please excuse us for the delayed reply.

I've attached a simple page to demonstrate how to achieve the needed approach, please download it and give it a try.

the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Upload (Obsolete)
Asked by
Andy Taslim
Top achievements
Rank 1
Answers by
Telerik team
Share this question