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" 
    onneeddatasource="rgDocumentCheckList_NeedDataSource" 
    onitemcommand="rgDocumentCheckList_ItemCommand" 
    onitemcreated="rgDocumentCheckList_ItemCreated"
    onitemdatabound="rgDocumentCheckList_ItemDataBound">
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
  
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="DocumentId" Name="DocumentListTable">
        <Columns>
            <telerik:GridBoundColumn UniqueName="DocumentType" HeaderText="Document Type" DataField="DocumentTypeName">
            </telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn UniqueName="DocumentLink"
                HeaderText="Document"
                DataTextFormatString="{0}" DataTextField="DocumentTitle"
                DataNavigateUrlFormatString="{0}" DataNavigateUrlFields="URL">
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn UniqueName="Stage" HeaderText="Stage" DataField="StageName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Remarks" HeaderText="Remarks" DataField="Remark">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="UploadedBy" HeaderText="Uploaded By" DataField="UploadedBy">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="UploadedDate" HeaderText="Uploaded Date" DataField="UploadedDate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status">
            </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="10px" Visible="true">
<ItemStyle Width="10px"></ItemStyle>
                        </telerik:GridEditCommandColumn>
                          
                    <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" />
                        </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings UserControlName="~/UserControl/CommonFunctionality/DocumentCheckList/DocumentAddEdit.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>            
        </EditFormSettings>
    </MasterTableView>    
</telerik:RadGrid>


I found this link http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html, 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.

AGT

1 Answer, 1 is accepted

Sort by
0
Yana
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.

Greetings,
Yana
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
Tags
Upload (Obsolete)
Asked by
Andy Taslim
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or