Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
415 views
I've dumbed down my page about as much as I can.

I'm setting the DataSource of my RadGrid to the EL4 Database.ExecuteReader result.
Then I'm calling DataBind.

When I have EnableViewstate=true all works fine.

When I set EnableViewstate=false it fails (error below).

Any thoughts?  Anyone seen this before?

Thanks,
Kevin

Server Error in '/InternalAspx' Application.

 


 

Invalid attempt to call FieldCount when reader is closed.

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.InvalidOperationException: Invalid attempt to call FieldCount when reader is closed.

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:

[InvalidOperationException: Invalid attempt to call FieldCount when reader is closed.]
   System.Data.SqlClient.SqlDataReader.get_FieldCount() +4872808
   System.Data.Common.DbEnumerator.BuildSchemaInfo() +19
   System.Data.Common.DbEnumerator.MoveNext() +156
   Telerik.Web.UI.GridResolveEnumerable.GetCollectionItemType(Boolean noItemsInEnumerator, Type& collectionItemType, Object& collectionFirstObject) +210
   Telerik.Web.UI.GridResolveEnumerable.ParseProperties() +90
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +13
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +20
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +158
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +129
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +383
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +141
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +239
   Telerik.Web.UI.RadGrid.DataBind() +80
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2121
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +145
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


 

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Rosen
Telerik team
 answered on 15 Dec 2009
1 answer
95 views
I would like to use the sds:SessionDataSource that is in this demo but have it work for LinqToSQL.  What is the recommended way of creating temporary data that doesnt persist back to the database when doing LinqToSQL CRUD?  

Basically, I want to create a data structure that can reset itself every session so my users can fully test a web app iteratively while focusing on and approving a fully working UI before I refine the data model.  Any suggestion is appreciated.  :)
Nikolay Rusev
Telerik team
 answered on 15 Dec 2009
6 answers
164 views
We are using Visual Studio 2008 with our web application and we are compiling it against the .NET 2.0 framework. We are still using the Telerik.Web.UI controls that are made for .NET 2.0. We've noticed that when we change the properties for the grid (add another column, change column width, modify the client settings, etc.), the change is reflected in the designer, however when you go and look at the HTML code, it never gets updated. When you run the application, the changes are not displayed either. The changes only appear when you manually modify the HTML and then run the application.

Is there something that we're doing wrong?

Thanks,
Adam
Sebastian
Telerik team
 answered on 15 Dec 2009
3 answers
101 views
Hi,

I am having an issue with a content page that gives a javascript error every time I click on a radtabstrip tab the code is below

<%

 

@ Register Assembly="Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 



 

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="tabMain">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="multiMain" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="tabMain" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

<div style="position: absolute; top: 100px; left: 50px; text-align: center">

 

 

 

<telerik:RadTabStrip ID="tabMain" runat="server" MultiPageID="multiMain" Skin="Office2007"

 

 

 

SelectedIndex="0" Width="800px" OnTabClick="tabMain_TabClick" AutoPostBack="True"

 

 

 

ClickSelectedTab="True">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab runat="server" Text="Login" PageViewID="PageLogin" Selected="True">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Forgot Password" PageViewID="PageForgotPassword">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Change Password" PageViewID="PageChangePassword">

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="multiMain" runat="server" SelectedIndex="0" Width="800px"

 

 

 

BorderStyle="Outset" BorderColor="Blue" BorderWidth="2px">

 

 

 

<telerik:RadPageView ID="PageLogin" runat="server">

 

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True">

 

 

 

</telerik:RadComboBox>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="PageForgotPassword" runat="server">

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="PageChangePassword" runat="server">

 

 

 

</telerik:RadPageView>

 

 

 

</telerik:RadMultiPage>

 


the issue seems to be if there is a radcombobox within a radpageview,

the javascript error is on the following line.

Sys.WebForms.PageRequestManager.getInstance()._destroyTree(_3c);


I am running VS 2010, IE8 on Server 2008, I have attempted to recreate the page serveral times and the error occurs on every new page.

Regards


Alex

Carl
Telerik team
 answered on 15 Dec 2009
4 answers
111 views
Hi ,

In this demo how do you set reply/close button.
http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx


I want to implement the feature like when scrolling the button remains same.Can you tell me where i can find Details.aspx page.

Thanks.
Eva
Georgi Tunev
Telerik team
 answered on 15 Dec 2009
1 answer
59 views
I want to create a web app very quickly, but, without worrying about my data model/arch right now (down the road it will be LINQ to SQL).  I have wireframes and I want to build a complete UI (as much as possible) that allows the user to edit data in RadGrids etc and have that data persist for the session (or longer if I have to).  What would be ideal is to have my Grids to AllowAutomatic (updates, deletes, inserts).

The approach I took was to create a "TestDataSource" directory with a bunch of XML, but allowing automatic CRUD requires more effort than I hoped.  What would be cool is the ability to have in the code behind a generic list of some sort in which automatic CRUD operates on in memory with little to no code.  Are there any sample projects that do this?  I've bounced all of the documentation and my brain is a bit fried right now.

If this doesn't exist, I think this would be a great project for Telerik as it would allow devs who want to quickly prototype entire web apps iteratively and attach a data architecture later down the road.  I want my users to truly experience the goodness of these controls without having to wireup a real data structure, because we all know thats the most pain when it comes to change requests.
Yavor
Telerik team
 answered on 15 Dec 2009
1 answer
115 views
I know this is IE specific (and I know that's bad), but what CSS element needs changing to update the scroll bar color in a RadWindow? I know how to do it for the regular browser window... but the changes don't seem to carry over to RadWindows. Any help would be appreciated, thank you.
Georgi Tunev
Telerik team
 answered on 15 Dec 2009
3 answers
89 views
Hi,

I got a problem with RadAlert on IE6 with Telerik 2008 Q2 (2008.2.826.20).
IE6 freezes after clicking on the OK button.

Here is the code :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadAlertBug._Default" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>RadAlert bug</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="sm" runat="server" /> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> 
     </telerik:RadWindowManager> 
    <telerik:radajaxloadingpanel id="GceAjaxWorkingPanelLoading" runat="server" transparency="20"> 
        <table style="width: 100%; height: 100%; background-color: white;"> 
            <tr> 
                <td align="center" valign="middle" style="color:#666666"> 
                    Loading...<br /> 
                    <img alt="Chargement..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading5.gif") %>' style="border: 0px;" /> 
                </td> 
            </tr> 
        </table> 
    </telerik:radajaxloadingpanel> 
    <telerik:radajaxpanel id="RadAjaxPanel" runat="server" loadingpanelid="GceAjaxWorkingPanelLoading"> 
        <asp:Button ID="OpenRadAlertButton" runat="server" onclick="OpenRadAlertButton_Click" Text="Open RadAlert" /> 
    </telerik:radajaxpanel> 
    </form> 
</body> 
</html> 
using System; 
 
namespace RadAlertBug 
{ 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void OpenRadAlertButton_Click(object sender, EventArgs e) 
        { 
            if (RadAjaxPanel.IsAjaxRequest) 
            { 
                RadAjaxPanel.ResponseScripts.Add("radalert(\"Message\", 300, 100, \"Title\");"); 
            } 
        } 
    } 
} 

Here is the scenario :

 - Click on the RadAlert button (-> opens the popup)
 - On the alert popup, click on the message then on the button (-> closes the alert)
 - Click again on the RadAlert button (-> opens the popup)
 - On the alert popup, click again on the message then on the button (-> IE6 freezes !!)

- Bruno



Georgi Tunev
Telerik team
 answered on 15 Dec 2009
2 answers
321 views
How to center a window in the fixed position?
The RadWindow should remains on the centre of browser window during page scrolling.
Eugeny
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
98 views
Is it possible to force an instance of an Editor control to use an existing iframe on the page rather than creating its own? We are hoping to accomplish something like this:

<telerik:RadEditor ID="RadEditor1" runat="server" CssClass="RadEditor" IframeId="MyIframe"></telerik:RadEditor>
<iframe id="MyIframe"></iframe>

Thanks,
Paul

Martin
Telerik team
 answered on 15 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?