| <telerik:RadGrid ID="ugMessages" runat="server"></telerik:RadGrid> |
| ugMessages.DataSource = ds.Tables[0]; |
| ugMessages.DataBind(); |
| Server Error in '/pcs' Application. |
| -------------------------------------------------------------------------------- |
| Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'. |
| 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.InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'. |
| 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: |
| [InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'.] |
| Telerik.Web.UI.GridTableRow.get_ClientID() +86 |
| Coolite.Utilities.<>c__DisplayClass1.<FindControlByClientID>b__0(Control c) +37 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +131 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181 |
| Coolite.Utilities.ControlUtils.FindControlByClientID(ControlCollection controls, String clientID) +95 |
| Coolite.Utilities.ControlUtils.FindControl(ControlCollection controls, String idOrClientID) +35 |
| Coolite.Ext.Web.Window.OnBeforeClientInit(Component sender) +254 |
| Coolite.Ext.Web.Component.OnBeforeClientInitHandler() +35 |
| Coolite.Ext.Web.Component.OnClientInit() +26 |
| Coolite.Ext.Web.WebControl.SetResources() +81 |
| Coolite.Ext.Web.WebControl.OnPreRender(EventArgs e) +108 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +86 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +170 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +170 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +170 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +170 |
| System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041 |
| -------------------------------------------------------------------------------- |
| Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 |

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Outlook"
ExpandMode="SingleExpandedItem" Width="500px">
<Items>
<telerik:RadPanelItem Expanded="True" Text="Paso 1: Codigo de Seguridaed" runat="server" Selected="true">
<Items>
<telerik:RadPanelItem Value="Codigo_Seguridad" runat="server">
<ItemTemplate>
<div style="background-color: #D8E8FF">
<ul class="formList" id="accountInfo">
<li>
<asp:Label runat="server" AssociatedControlID="txt_codseguridad" CssClass = "labels" ID="nameLabel" >Codigo de Seguridad:</asp:Label>
<asp:TextBox ID="txt_codseguridad" CssClass="textInput" runat="server" ValidationGroup="Codigoseguridad" Width="200px" AutoCompleteType="None">
</asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="accountValidator" ValidationGroup="Codigoseguridad"
ControlToValidate="txt_codseguridad" ErrorMessage="Codigo de Seguridad Requerido" Text="*"></asp:RequiredFieldValidator>
</li>
<li>
<br />
<asp:Label runat="server" Visible="false" CssClass = "labels_error" ID="lbl_Error" Text="" >
</asp:Label>
</li>
</ul>
<asp:Button runat="server" ID="nextButton" OnClick="validarcodigo_Click" Text="Siguiente" CssClass="nextButton" ValidationGroup="Codigoseguridad" />
<br />
</div>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
<CollapseAnimation Duration="100" Type="None" />
<ExpandAnimation Duration="100" Type="None" />
</telerik:RadPanelBar>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="10"></asp:ListItem>
<asp:ListItem Value="20"></asp:ListItem>
<asp:ListItem Value="30"></asp:ListItem>
</asp:DropDownList>
If i select 10 from tht dropdown the grid only show 10 record...