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:
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
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