Invalid column name: customgroup
at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at Telerik.Web.UI.GridTableView.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at Telerik.Web.UI.GridTableView.DataBind()
at Telerik.Web.UI.RadGrid.DataBind()
at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)
at Telerik.Web.UI.RadGrid.RebindForExport()
at Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExportInternal(GridTableView tableView, Boolean ignorePaging, Boolean dataOnly)
at Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
Style
=
"z-index: 7001"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"FileManager"
runat
=
"server"
Title
=
""
Height
=
"600px"
Width
=
"800px"
ReloadOnShow
=
"True"
Modal
=
"True"
Skin
=
"WebBlue"
VisibleStatusbar
=
"false"
ShowContentDuringLoad
=
"false"
/>
</
Windows
>
</
telerik:RadWindowManager
>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManager.aspx.cs" Inherits="ComplianceClient.MarketingScreens.FileManager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
style
type
=
"text/css"
>
#<%=RadFileExplorer1.ClientID%>_uploadContainer
{
overflow-x: hidden !important;
}
</
style
>
</
telerik:RadCodeBlock
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
div
>
<
asp:Literal
ID
=
"lblScript"
runat
=
"server"
></
asp:Literal
>
<
asp:Label
ID
=
"lblErrorMessage"
runat
=
"server"
Font-Bold
=
"True"
ForeColor
=
"Red"
></
asp:Label
>
<
telerik:RadFileExplorer
ID
=
"RadFileExplorer1"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"100%"
style
=
"z-index:7001"
>
<
Configuration
EnableAsyncUpload
=
"true"
/>
</
telerik:RadFileExplorer
>
</
div
>
</
form
>
</
body
>
</
html
>
RadFileExplorer1.WindowManager.Style.Add("z-index", "100001");
I have two user controls in a page. In second user control there is a repeater control and delete button inside the repeater control. When I click on the delete button inside repeater ,it should refresh the first user control and it should render in the page. Currently if I click on delete button it goes to delete event handler and does the job but does not refresh the first user control. The first user control is empty when delete occurs.
I have attached the code below for your reference.
I would appreciate if I can get a solution and not examples as I have seen a few examples from Google and Telerik support which are not really helpful.
Main Page (where 2 user controls implemented):
<table>
<tr>
<td>
<asp:Label style="float: left;" id="lblUpload" runat="server" Text="Basis of Design: "> </asp:Label>
</td><td>
<!—User Control 1 Ã
<fusion:ArtifactUpload runat="server" IsMultiUploadControl="false" ID="BODUploadControl" OnFileUploading="BODUpload_OnFileUploading" AutoAjaxify="true" OnNeedsArtifactId="BODUpload_OnNeedsArtifactId" >
<filefilters>
<telerik:FileFilter Description="BOD Files (.doc, .docx, .pdf)" Extensions="doc,docx,pdf" />
</filefilters>
</fusion:ArtifactUpload>
<!—User Control 2 Ã
<fusion:ArtifactRepeater style=" padding:2px;" ID="BODRepeater" runat="server" OnFileDeleting="BODUpload_OnFileDeleted" />
</td>
</tr>
<br />
<tr>
<td>
<asp:Label style="float: left;" id="lblIcemUploadText" runat="server" Text="iCem Design: "> </asp:Label>
</td><td>
<!—User Control 1 Ã
<fusion:ArtifactUpload runat="server" IsMultiUploadControl="false" ShowLargeProgressIndicator="true" CallToAction="Attach iCem Design" AutoAjaxify="true" AppName="myCem" ID="ICEMUploadControl" OnNeedsArtifactId="ICemUpload_OnNeedsArtifactId" OnFileUploading="ICemUpload_OnFileUploading" >
<filefilters>
<telerik:FileFilter Description="iCem Designs (.icem)" Extensions="icem" />
</filefilters>
</fusion:ArtifactUpload>
<!—User Control 2Ã
<fusion:ArtifactRepeater ID="ICEMRepeater" runat="server" OnFileDeleting="ICemUpload_OnFileDeleted" />
</td>
</tr>
</table>
User Control- 2:
<telerik:RadAjaxManagerProxy ID="rptRadAjaxProxyMgr" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="pnlRepeater">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlRepeater" LoadingPanelID="LoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<asp:Panel ID="pnlRepeater" runat="server">
<table>
<asp:Repeater ID="rptUploadedFiles" runat="server" OnItemDataBound="rptUploadedFiles_ItemDataBound">
<ItemTemplate>
<tr>
<td>
<asp:LinkButton ID="ArtifactLink" runat="server" Style="float: left;" />
</td>
<td>
<telerik:RadButton AutoPostBack="true" runat="server" Width="20px" Height="20px" ID="btnDelete"
OnClick="RADArtifactDelete_OnClick" Style="float: left;">
<Image ImageUrl="<% $SPUrl: ~sitecollection/Style Library/WorkflowUserInterfaceCommon/Images/DeleteRecord.png%>">
</Image>
</telerik:RadButton>
</td>
</tr>
<asp:HiddenField ID="hdnArtifactId" runat="server" Value='<%#Container.DataItem%>' />
</ItemTemplate>
</asp:Repeater>
</table>
</asp:Panel>
User Control 1:
<div id="<%=this.ClientID %>">
<telerik:RadWindow ID="ArtifactUploadProgressWindow" runat="server" IconUrl="<% $SPUrl: ~sitecollection/Style Library/WorkflowUserInterfaceCommon/Images/Fusion_Logo_grey_16.png %>"
Behaviors="None" Modal="True" VisibleStatusbar="False" ReloadOnShow="False" Opacity="100"
Animation="None" AutoSize="True">
<ContentTemplate>
<div id="LargeProgressIndicator" runat="server" style="width: 350px; height: 60px;">
<h2>
<%= this.CallToAction %>
</h2>
<hr />
<h4 id="ProgressArtifactName" runat="server" />
<div id="ProgressBar" runat="server" style="width: 100%; height: 17px; background-repeat: repeat-x;" />
<hr />
<div align="right">
<asp:Button ID="CancelUpload" runat="server" Text="Cancel" OnClick="CancelUpload_OnClick" />
</div>
</div>
<img id="SmallProgressIndicator" runat="server" alt="Progress indicator" src="<% $SPUrl: ~sitecollection/Style Library/WorkflowUserInterfaceCommon/Images/loading.gif %>" />
</ContentTemplate>
</telerik:RadWindow>
<div style="vertical-align:middle;"><telerik:RadAsyncUpload ID="ArtifactUploadControl" runat="server" MaxFileSize="15000000" HttpHandlerUrl="~/_layouts/Halliburton.Fusion.Portal.Workflow.Infrastructure/ArtifactHandler.ashx"
EnableInlineProgress="False" MaxFileInputsCount="1" UploadedFilesRendering="BelowFileInput"
OnFileUploaded="ArtifactUploadControl_OnFileUploaded" Height="25px" PostbackTriggers="ArtifactUploadSubmit"
EnableEmbeddedSkins="False" Skin="CustomUpload">
<Localization Select="Browse" Remove="" Cancel="" />
</telerik:RadAsyncUpload>
</div>
<asp:Button ID="ArtifactUploadSubmit" runat="server" Text="" Style="display: none;" />
</div>
User Control 1 .cs:
Page_Load()
{
RadAjaxManager radAjaxManager = RadAjaxManager.GetCurrent(this.Page);
radAjaxManager.AjaxSettings.AddAjaxSetting(this, this);
}
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
Style
=
"z-index: 7001"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"FileManager"
runat
=
"server"
Title
=
""
Height
=
"600px"
Width
=
"800px"
ReloadOnShow
=
"True"
Modal
=
"True"
Skin
=
"WebBlue"
VisibleStatusbar
=
"false"
ShowContentDuringLoad
=
"false"
/>
</
Windows
>
</
telerik:RadWindowManager
>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManager.aspx.cs" Inherits="ComplianceClient.MarketingScreens.FileManager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
style
type
=
"text/css"
>
#<%=RadFileExplorer1.ClientID%>_uploadContainer
{
overflow-x: hidden !important;
}
</
style
>
</
telerik:RadCodeBlock
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
div
>
<
asp:Literal
ID
=
"lblScript"
runat
=
"server"
></
asp:Literal
>
<
asp:Label
ID
=
"lblErrorMessage"
runat
=
"server"
Font-Bold
=
"True"
ForeColor
=
"Red"
></
asp:Label
>
<
telerik:RadFileExplorer
ID
=
"RadFileExplorer1"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"100%"
style
=
"z-index:7001"
>
<
Configuration
EnableAsyncUpload
=
"true"
/>
</
telerik:RadFileExplorer
>
</
div
>
</
form
>
</
body
>
</
html
>