or
| Multiple controls with the same ID 'FilterTextBox_Date' were found. FindControl requires that controls have unique IDs. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.Web.HttpException: Multiple controls with the same ID 'FilterTextBox_Date' were found. FindControl requires that controls have unique IDs. |
| Source Error: |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| Stack Trace: |
| [HttpException (0x80004005): Multiple controls with the same ID 'FilterTextBox_Date' were found. FindControl requires that controls have unique IDs.] |
| System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +273 |
| System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +320 |
| System.Web.UI.Control.EnsureNamedControlsTable() +61 |
| System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +222 |
| System.Web.UI.Control.FindControl(String id) +12 |
| Telerik.Web.UI.GridColumn.PrepareCell(TableCell cell, GridItem item) +1238 |
| Telerik.Web.UI.GridItemDecorator.DecorateItem(GridTableView owner, GridColumn[] columnArray) +364 |
| Telerik.Web.UI.GridFilterItemDecorator.DecorateItem(GridTableView owner, GridColumn[] columnArray) +112 |
| Telerik.Web.UI.GridItem.PrepareItemStyle() +259 |
| Telerik.Web.UI.GridMultiRowItem.PrepareItemStyle() +109 |
| Telerik.Web.UI.RadGrid.PrepareRows(GridTableView view) +132 |
| Telerik.Web.UI.RadGrid.Render(HtmlTextWriter writer) +92 |
| System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 |
| System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 |
| System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 |
| System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 |
| System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 |
| System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163 |
| System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32 |
| System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51 |
| System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 |
| System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 |
| System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 |
| System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 |
| System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 |
| System.Web.UI.Page.Render(HtmlTextWriter writer) +29 |
| System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 |
| System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 |
| System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 |
| System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266 |
| public class MyGridBoundColumn : GridBoundColumn |
| { |
| } |
| <telerik:DDSGrid ID="uxGrid" runat="server" GridLines="None" Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" AllowFilteringByColumn="true" |
| OnNeedDataSource="uxGrid_NeedDataSource" EnableEmbeddedSkins="false"> |
| <MasterTableView > |
| <Columns> |
| <me:MyGridBoundColumn HeaderStyle-HorizontalAlign="Center" UniqueName="Row" HeaderText="Row" DataField="Row"/> |
| </Columns> |
| </MasterTableView> |
| </telerik:DDSGrid> |
| protected void uxGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| DataTable tb = new DataTable("tb"); |
| DataColumn col; |
| DataRow row; |
| col = new DataColumn("Row"); |
| tb.Columns.Add(col); |
| for (int i = 1; i <= 1; i++) |
| { |
| row = tb.NewRow(); |
| row["Row"] = "Row " + i; |
| tb.Rows.Add(row); |
| } |
| ((RadGrid)source).DataSource = tb; |
| } |
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="/scripts/js/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="/scripts/js/skel.min.js" type="text/javascript"></script> <script src="/scripts/js/skel-panels.min.js" type="text/javascript"></script> <script src="/scripts/js/skel-init.js" type="text/javascript"></script></head><body><telerik:RadScriptManager ID="ScriptManager1" runat="server"> <Groups> <telerik:ScriptReferenceGroup> <Scripts> </Scripts> </telerik:ScriptReferenceGroup> </Groups></telerik:RadScriptManager> <div id="leftPanel" style="background-color:grey"> <div>Left Panel</div> </div> <div id="rightPanel" style="background-color:grey"> <div>Right Panel</div> </div></body></html>
The following is my skel-init.js
var settings = {
skelJS: {
prefix: '/styles/css/style',
resetCSS: true,
normalizeCSS: true,
boxModel: 'border',
grid: {
gutters: 40
},
breakpoints: {
'widest': { range: '1680-', hasStyleSheet: false, containers: 1400 },
'wide': { range: '-1680', containers: 1200 },
'normal': { range: '-1280', containers: 'fluid', grid: { gutters: 36 }, viewportWidth: 1140 },
'narrow': { range: '-960', containers: 'fluid', grid: { gutters: 32 } },
'narrower': { range: '-840', containers: 'fluid', grid: { gutters: 32, collapse: true } },
'mobile': { range: '-640', containers: 'fluid', grid: { gutters: 32, collapse: true } }
}
},
skelJSPlugins: {
panels: {
panels: {
leftPanel: {
position: 'left',
size: 250,
style: 'push',
swipeToClose: 'true'
},
rightPanel: {
position: 'right',
size: 250,
style: 'push',
swipeToClose: 'true'
}
},
overlays: {
leftButton: {
position: 'top-left',
width: 100,
height: 50,
html: '<div class="toggle" data-action="togglePanel" data-args="leftPanel"></div>'
},
rightButton: {
position: 'top-right',
width: 100,
height: 50,
html: '<div class="toggle" data-action="togglePanel" data-args="rightPanel"></div>'
}
}
}
}
}
skel.init(settings.skelJS, settings.skelJSPlugins);
My style.css
div.toggle
{
position: absolute;
left: 0;
top: 10px;
width: 100%;
height: 100%;
}
div.toggle:before
{
content:"";
display: block;
width: 60px;
height: 30px;
position: absolute;
left: 50%;
margin-left: -30px;
background: center center no-repeat, rgba(25, 25, 25, .90);
border-top: 0;
border-radius: 0.35em 0.35em 0.35em 0.35em;
}
#leftPanel
{
position: relative;
background: #1f1920;
box-shadow: inset 0px -2px 5px 0px rgba(0,0,0,0.25);
font-size: .8em;
color:white;
}
.photo {
width: 115px;
height: 150px;
background-color: white;
display: inline-block;
margin: 5px 5px 5px 5px;
border-radius: 5px;
border: 1px solid black;
}
.info{
width: 115px;
height:150px;
display: inline-block;
font-size: 1.15em;
margin: 5px 5px 5px 5px;
border: 1px solid grey;
float: right;
border-radius: 5px;
background-color: rgba(255, 255, 255, .15)
}
.status{
padding: .25em .25em .25em .25em;
border-bottom: 1px solid grey;
}
#leftPanel:before
{
content: '';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
function fileUploaded(sender, args) { var id = args.get_fileInfo().ImageID; $(".imageContainer").html("").append($("<img />").attr("src", getImageUrl(id))); $(".info").html(String.format("<strong>{0}</strong> successfully inserted. Record ID - {1}", args.get_fileName(), id));}<telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px">
<ContentTemplate>
<p style="text-align: center;">
<h3>Data</h3>
<telerik:RadGrid ID="RGrid" runat="server" AllowPaging="true" AllowSorting="true" OnNeedDataSource="RGrid_NeedDataSource">
<MasterTableView AutoGenerateColumns="true"></MasterTableView>
</telerik:RadGrid>
</p>
</ContentTemplate>
</telerik:RadWindow>
<telerik:RadCodeBlock runat="server" ID="rdbScripts">
<script type="text/javascript">
function showDialogInitially() {
//alert("786");
var wnd = $find("<%=modalPopup.ClientID %>");
wnd.show();
// Sys.Application.remove_load(showDialogInitially);
}
</script>
</telerik:RadCodeBlock>
this is onbuttonclick code
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially()" />
It is working only first time but as I close the window and press button again It does not open anymore.
i have already tried this code.
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially" AutoPostBack="false" />
But its does not work