This is a migrated thread and some comments may be shown as answers.

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control after upgrading to Q1 2010

7 Answers 606 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Roberto Yudice
Top achievements
Rank 1
Roberto Yudice asked on 28 May 2010, 12:48 AM
I've been getting this error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control" on all of my combos since I upgraded to Q1 2010 version, is there any reason for that?
 

7 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 28 May 2010, 07:35 AM
Hello Roberto,

Can you send a sample markup from your page including the mentioned databinding methods? Thank you in advance.

Greetings,
Kamen Bundev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Roberto Yudice
Top achievements
Rank 1
answered on 28 May 2010, 03:54 PM
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ConsultaSRC.ascx.cs" Inherits="DesktopModules_ColaTrabajo_Formularios_ConsultaSRC" %> 
<telerik:RadCodeBlock runat="server"><script type="text/javascript"
 
    function verificarExistenReferencias(sender, eventArgs) { 
    var button=eventArgs.get_item(); 
        if (button.get_commandName() == 'EXTRAERREFERENCIAS' && <%= ExistenReferencias.ToString().ToLower() %>) { 
              eventArgs.set_cancel(!confirm('Ya existen referencias,¿desea reemplazarlas?')); 
        } 
       
    } 
</script> 
</telerik:RadCodeBlock> 
<link href="/Portals/0/gestor.css" type="text/css" rel="stylesheet" /> 
<style> 
fieldset{ 
margin-top:10px; 
    margin-bottom: 20px; 
.alert_panel 
    margin:5px; 
    background-color:#ddebfe; 
    border: 1px solid #a5cafd; 
    padding:10px; 
     
.alert_panel p 
    font-family:Arial,san-serif; 
    color: #fb5a5a; 
    font-size:16px; 
     
</style> 
<telerik:RadToolBar ID="RadToolBar1" Runat="server"  
    onbuttonclick="RadToolBar1_ButtonClick" OnClientButtonClicking="verificarExistenReferencias" Width="100%"
    <Items> 
        <telerik:RadToolBarButton runat="server" CommandName="EXTRAERREFERENCIAS"  
            Text="Extraer Referencias" ImageUrl="~/images/gestor/database_go.png"
        </telerik:RadToolBarButton> 
    </Items> 
    </telerik:RadToolBar> 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  
    DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadToolBar1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="Panel1" /> 
                <telerik:AjaxUpdatedControl ControlID="gridActivas" /> 
                       <telerik:AjaxUpdatedControl ControlID="gridCanceladas" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls> 
<telerik:AjaxUpdatedControl ControlID="Panel1"></telerik:AjaxUpdatedControl> 
</UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadListView1"
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadListView2"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="gridNoReportadas" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="i0"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="Panel1" /> 
                <telerik:AjaxUpdatedControl ControlID="gridActivas" /> 
                <telerik:AjaxUpdatedControl ControlID="gridCanceladas" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="gridActivas"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadListView1"  
                    LoadingPanelID="RadAjaxLoadingPanel1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadListView2" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="gridCanceladas"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadListView1"  
                    LoadingPanelID="RadAjaxLoadingPanel1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadListView2" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="gridNoReportadas"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadListView1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadListView2" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="Button3"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadListView1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadListView2" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
 
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" /> 
 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"  
    Skin="Default"
</telerik:RadAjaxLoadingPanel> 
 
 
<asp:Panel ID="Panel1" runat="server" CssClass="alert_panel"
    <p><asp:Label ID="Label11" runat="server"></asp:Label></p
</asp:Panel> 
 
 
<telerik:RadListView ID="RadListView1" runat="server" DataKeyNames="SRCREF_ID"  
    DataSourceID="linqDetalleReferencia" ItemPlaceholderID="listViewContainer"  
    PageSize="1"  
    oniteminserted="RadListView1_ItemInserted"
   
    <LayoutTemplate> 
    <asp:PlaceHolder runat="server" ID="listViewContainer"></asp:PlaceHolder> 
    </LayoutTemplate> 
    <EmptyDataTemplate> 
        <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td colspan="2"
                    <asp:Localize ID="Localize1" meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td colspan="2"
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("SRCREF_NOM_ASOC") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label5" runat="server"  
                        Text='<%# Eval("SRCREF_DESCR_CORTA_RELA") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Monto Original</td> 
                <td> 
                    Saldo</td> 
                <td> 
                    Cuota:</td> 
                <td> 
                    Días de Atraso:</td> 
                <td> 
                    Historial:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label2" runat="server"  
                        Text='<%# Eval("SRCREF_MONTO_ORIGINAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label3" runat="server"  
                        Text='<%# Eval("SRCREF_SALDO_ACTUAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("SRCREF_SALDO_ACTUAL") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp; 
                </td> 
                <td> 
                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("SRCREF_HISTORIA") %>'></asp:Label> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Fecha de Apertura:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    Cancelar:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label10" runat="server"  
                        Text='<%# Eval("SRCREF_FEC_INICIO_REL", "{0:d}") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("SRCREF_NUM_REFER") %>'></asp:Label> 
                </td> 
            </tr> 
        </table> 
     
    </fieldset> 
 
    </EmptyDataTemplate> 
    <InsertItemTemplate> 
      <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td colspan="2"
                    <asp:Localize ID="Localize2" meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td colspan="2"
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                    <telerik:RadTextBox ID="RadTextBox4" Runat="server"  
                        Text='<%# Bind("REFNOREP_INST") %>' Width="125px"
                    </telerik:RadTextBox> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <telerik:RadComboBox ID="RadComboBox2" Runat="server"  
                        DataSourceID="linqTiposRelaciones" DataTextField="TIPREL_DES"  
                        DataValueField="TIPREL_ID" SelectedValue='<%# Bind("TIPREL_ID") %>' > 
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="linqTiposRelaciones" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (TIPREL_ID, TIPREL_DES)" TableName="CTG_TIPREL_TIPO_RELACION"  
                        Where="TIPREL_ACTIVO == @TIPREL_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="TIPREL_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <telerik:RadComboBox ID="RadComboBox3" Runat="server"  
                        DataSourceID="linqFormaDePago" DataTextField="FPAGO_DES"  
                        DataValueField="FPAGO_ID" SelectedValue='<%# Bind("FPAGO_ID") %>'
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="linqFormaDePago" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (FPAGO_DES, FPAGO_ID)" TableName="CTG_FPAGO_FORMA_PAGO"  
                        Where="FPAGO_ACTIVO == @FPAGO_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="FPAGO_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Saldo:</td> 
                <td> 
                    Cuota:</td> 
                <td> 
                    Cancelar:</td> 
                <td> 
                    Días de Atraso:</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                    <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"  
                        Culture="Spanish (El Salvador)" Type="Currency" Width="125px"
                    </telerik:RadNumericTextBox> 
                </td> 
                <td> 
                    <telerik:RadNumericTextBox ID="RadNumericTextBox3" Runat="server"  
                        Culture="Spanish (El Salvador)" Type="Currency" Width="125px"
                    </telerik:RadNumericTextBox> 
                </td> 
                <td> 
                    <telerik:RadComboBox ID="RadComboBox1" Runat="server"
                    <Items> 
                    <telerik:RadComboBoxItem runat="server" Text="SI" Value="SI"/> 
                    <telerik:RadComboBoxItem runat="server" Text="NO" Value="NO"/> 
                    </Items> 
                    </telerik:RadComboBox> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <telerik:RadTextBox ID="RadTextBox3" Runat="server" Text='<%# Bind("REFNOREP_NUM_REFERENCIA") %>'
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Fecha de Apertura:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
            </tr> 
            <tr> 
                <td> 
                    <telerik:RadDateInput ID="RadDateInput1" Runat="server"
                    </telerik:RadDateInput> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
            </tr> 
        </table> 
          <asp:Button ID="Button1" runat="server" Text="Cancelar" CommandName="Cancel" /> 
          <asp:Button ID="Button2" runat="server" Text="Guardar"  
              CommandName="PerformInsert" /> 
    </fieldset> 
 
    </InsertItemTemplate> 
    <ItemTemplate> 
    <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td colspan="2"
                    <asp:Localize meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td colspan="2"
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("SRCREF_NOM_ASOC") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label5" runat="server"  
                        Text='<%# Eval("SRCREF_DESCR_CORTA_RELA") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Monto Original</td> 
                <td> 
                    Saldo</td> 
                <td> 
                    Cuota:</td> 
                <td> 
                    Días de Atraso:</td> 
                <td> 
                    Historial:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label2" runat="server"  
                        Text='<%# Eval("SRCREF_MONTO_ORIGINAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label3" runat="server"  
                        Text='<%# Eval("SRCREF_SALDO_ACTUAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("SRCREF_SALDO_ACTUAL") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label6" runat="server"  
                        Text='<%# Eval("SRCREF_NUM_DIAS_ATRASO") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("SRCREF_HISTORIA") %>'></asp:Label> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Fecha de Apertura:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    Cancelar:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label10" runat="server"  
                        Text='<%# Eval("SRCREF_FEC_INICIO_REL", "{0:d}") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("SRCREF_NUM_REFER") %>'></asp:Label> 
                </td> 
            </tr> 
        </table> 
     
    </fieldset> 
    </ItemTemplate> 
</telerik:RadListView> 
<asp:LinqDataSource ID="linqDetalleReferencia" runat="server"  
    ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
    TableName="GST_SRCREF_SRC_REFERENCIA" Where="SRCREF_ID == @SRCREF_ID"  
    oninserting="linqDetalleReferencia_Inserting"
    <WhereParameters> 
        <asp:Parameter DefaultValue="0" Name="SRCREF_ID" Type="Int32" /> 
    </WhereParameters> 
</asp:LinqDataSource> 
 
 
<telerik:RadListView ID="RadListView2" runat="server" DataKeyNames="REFNOREP_ID"  
    DataSourceID="llinqDetalleReferenciaNoReportada" ItemPlaceholderID="listViewContainer"  
    PageSize="1"  
    oniteminserted="RadListView2_ItemInserted" Visible="False"
   
    <LayoutTemplate> 
    <asp:PlaceHolder runat="server" ID="listViewContainer"></asp:PlaceHolder> 
    </LayoutTemplate> 
    <EmptyDataTemplate> 
        <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td colspan="2"
                    <asp:Localize ID="Localize1" meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td colspan="2"
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("SRCREF_NOM_ASOC") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label5" runat="server"  
                        Text='<%# Eval("SRCREF_DESCR_CORTA_RELA") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Monto Original</td> 
                <td> 
                    Saldo</td> 
                <td> 
                    Cuota:</td> 
                <td> 
                    Días de Atraso:</td> 
                <td> 
                    Historial:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label2" runat="server"  
                        Text='<%# Eval("SRCREF_MONTO_ORIGINAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label3" runat="server"  
                        Text='<%# Eval("SRCREF_SALDO_ACTUAL", "{0:C}") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("SRCREF_SALDO_ACTUAL") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp; 
                </td> 
                <td> 
                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("SRCREF_HISTORIA") %>'></asp:Label> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Fecha de Apertura:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    Cancelar:</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label10" runat="server"  
                        Text='<%# Eval("SRCREF_FEC_INICIO_REL", "{0:d}") %>'></asp:Label> 
                </td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    &nbsp;</td> 
                <td> 
                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("SRCREF_NUM_REFER") %>'></asp:Label> 
                </td> 
            </tr> 
        </table> 
     
    </fieldset> 
 
    </EmptyDataTemplate> 
    <EditItemTemplate> 
           <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td> 
                    <asp:Localize ID="Localize3" meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td> 
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                                      <telerik:RadTextBox ID="RadTextBox4" Runat="server"  
                        Text='<%# Bind("REFNOREP_INST") %>' Width="125px"
                    </telerik:RadTextBox> 
                </td> 
    
                <td> 
                                     <telerik:RadComboBox ID="RadComboBox4" Runat="server"  
                        DataSourceID="LinqDataSource1" DataTextField="TIPREL_DES"  
                        DataValueField="TIPREL_ID" SelectedValue='<%# Bind("TIPREL_ID") %>' > 
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (TIPREL_ID, TIPREL_DES)" TableName="CTG_TIPREL_TIPO_RELACION"  
                        Where="TIPREL_ACTIVO == @TIPREL_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="TIPREL_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
                <td> 
                   <telerik:RadComboBox ID="RadComboBox5" Runat="server"  
                        DataSourceID="LinqDataSource2" DataTextField="FPAGO_DES"  
                        DataValueField="FPAGO_ID" SelectedValue='<%# Bind("FPAGO_ID") %>'
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="LinqDataSource2" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (FPAGO_DES, FPAGO_ID)" TableName="CTG_FPAGO_FORMA_PAGO"  
                        Where="FPAGO_ACTIVO == @FPAGO_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="FPAGO_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Cuota:</td> 
                <td> 
                    Saldo:</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                                                       <telerik:RadNumericTextBox ID="RadNumericTextBox4" Runat="server"  
                        Culture="Spanish (El Salvador)" Value='<%# Bind("REFNOREP_CUOTA") %>' DataType="System.Decimal" Type="Currency" Width="125px"
                    </telerik:RadNumericTextBox> 
                </td> 
 
                <td> 
                                    <telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"  
                        Culture="Spanish (El Salvador)" Value='<%# Bind("REFNOREP_SALDO") %>' DataType="System.Decimal" Type="Currency" Width="125px" > 
                    </telerik:RadNumericTextBox> 
                </td> 
 
                <td> 
                                    <telerik:RadTextBox ID="RadTextBox1" Runat="server" Text='<%# Bind("REFNOREP_NUM_REFERENCIA") %>'
                    </telerik:RadTextBox> 
 
                </td> 
            </tr> 
        </table> 
         <asp:Button ID="Button4" runat="server" Text="Cancelar" CommandName="Cancel" /><asp:Button ID="Button5" 
            runat="server" Text="Guardar" CommandName="Update" /> 
    </fieldset> 
    </EditItemTemplate> 
    <InsertItemTemplate> 
        <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td> 
                    <asp:Localize ID="Localize3" meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td> 
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                                      <telerik:RadTextBox ID="RadTextBox4" Runat="server"  
                        Text='<%# Bind("REFNOREP_INST") %>' Width="125px"
                    </telerik:RadTextBox> 
                </td> 
    
                <td> 
                                     <telerik:RadComboBox ID="RadComboBox4" Runat="server"  
                        DataSourceID="LinqDataSource1" DataTextField="TIPREL_DES"  
                        DataValueField="TIPREL_ID" SelectedValue='<%# Bind("TIPREL_ID") %>' > 
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (TIPREL_ID, TIPREL_DES)" TableName="CTG_TIPREL_TIPO_RELACION"  
                        Where="TIPREL_ACTIVO == @TIPREL_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="TIPREL_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
                <td> 
                   <telerik:RadComboBox ID="RadComboBox5" Runat="server"  
                        DataSourceID="LinqDataSource2" DataTextField="FPAGO_DES"  
                        DataValueField="FPAGO_ID" SelectedValue='<%# Bind("FPAGO_ID") %>'
                    </telerik:RadComboBox> 
                    <asp:LinqDataSource ID="LinqDataSource2" runat="server"  
                        ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
                        Select="new (FPAGO_DES, FPAGO_ID)" TableName="CTG_FPAGO_FORMA_PAGO"  
                        Where="FPAGO_ACTIVO == @FPAGO_ACTIVO"
                        <WhereParameters> 
                            <asp:Parameter DefaultValue="true" Name="FPAGO_ACTIVO" Type="Boolean" /> 
                        </WhereParameters> 
                    </asp:LinqDataSource> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Cuota:</td> 
                <td> 
                    Saldo:</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                                                       <telerik:RadNumericTextBox ID="RadNumericTextBox4" Runat="server"  
                        Culture="Spanish (El Salvador)" Value='<%# Bind("REFNOREP_CUOTA") %>' Width="125px"  
                                                           DataType="System.Decimal"
                    </telerik:RadNumericTextBox> 
                </td> 
 
                <td> 
                                    <telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"  
                        Culture="Spanish (El Salvador)" Value='<%# Bind("REFNOREP_SALDO") %>' Type="Currency"  
                                        Width="125px" DataType="System.Decimal"
                    </telerik:RadNumericTextBox> 
                </td> 
 
                <td> 
                                    <telerik:RadTextBox ID="RadTextBox1" Runat="server" Text='<%# Bind("REFNOREP_NUM_REFERENCIA") %>'
                    </telerik:RadTextBox> 
 
                </td> 
            </tr> 
        </table> 
     <asp:Button ID="Button4" runat="server" Text="Cancelar" CommandName="Cancelar" /><asp:Button ID="Button5" 
            runat="server" Text="Guardar" CommandName="PerformInsert" /> 
    </fieldset> 
        
    </InsertItemTemplate> 
    <ItemTemplate> 
    <fieldset class="fieldset_form"
    <legend>Referencia</legend> 
     
        <table class="table_encabezado" style="width: 700px;"
            <tr class="odd"
                <td> 
                    <asp:Localize meta:resourcekey="Institucion" runat="server">Institución:</asp:Localize></td
                <td> 
                    Relación:</td> 
                <td> 
                    Forma de Pago:</td> 
            </tr> 
            <tr > 
                <td> 
                    <asp:Label ID="Label12" runat="server" Text='<%# Eval("REFNOREP_INST") %>'></asp:Label> 
                </td> 
    
                <td> 
                    <asp:Label ID="Label13" runat="server"  
                        Text='<%# Eval("CTG_TIPREL_TIPO_RELACION.TIPREL_DES") %>'></asp:Label> 
                </td> 
                <td> 
                    <asp:Label ID="Label20" runat="server"  
                        Text='<%# Eval("CTG_FPAGO_FORMA_PAGO.FPAGO_DES") %>'></asp:Label> 
                </td> 
            </tr> 
            <tr class="odd"
                <td> 
                    Cuota:</td> 
                <td> 
                    Saldo:</td> 
                <td> 
                    No. de Referencia:</td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:Label ID="Label16" runat="server"  
                        Text='<%# Eval("REFNOREP_CUOTA", "{0:C}") %>'></asp:Label> 
                </td> 
 
                <td> 
                    <asp:Label ID="Label15" runat="server"  
                        Text='<%# Eval("REFNOREP_SALDO", "{0:C}") %>'></asp:Label> 
                </td> 
 
                <td> 
                    <asp:Label ID="Label19" runat="server"  
                        Text='<%# Eval("REFNOREP_NUM_REFERENCIA") %>'></asp:Label> 
                </td> 
            </tr> 
        </table> 
       <asp:Button ID="Button6" runat="server" CommandName="Edit" Text="Modificar" /> 
    </fieldset> 
      
    </ItemTemplate> 
</telerik:RadListView> 
<asp:LinqDataSource ID="llinqDetalleReferenciaNoReportada" runat="server"  
    ContextTypeName="Gestor.Data.Core.GestorAPCDataContext" EnableDelete="True"  
    EnableInsert="True" EnableUpdate="True" TableName="EXP_REFNOREP_NO_REPORTADAS"  
    Where="REFNOREP_ID == @REFNOREP_ID"  
    oninserting="llinqDetalleReferenciaNoReportada_Inserting"
    <WhereParameters> 
        <asp:Parameter DefaultValue="0" Name="REFNOREP_ID" Type="Int32" /> 
    </WhereParameters> 
</asp:LinqDataSource> 
 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server"  
    MultiPageID="RadMultiPage1" SelectedIndex="0"
    <tabs> 
        <telerik:RadTab runat="server" Text="Activas" Selected="True"
        </telerik:RadTab> 
        <telerik:RadTab runat="server" Text="Canceladas"
        </telerik:RadTab> 
        <telerik:RadTab runat="server" Text="Activas no Reportadas"
        </telerik:RadTab> 
    </tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0"
    <telerik:RadPageView ID="RadPageView1" runat="server"
        <telerik:RadGrid ID="gridActivas" runat="server" AutoGenerateColumns="False"  
            DataSourceID="linqReferenciasActivas" GridLines="None" Width="100%"  
            onselectedindexchanged="gridCanceladas_SelectedIndexChanged"
            <HeaderContextMenu EnableAutoScroll="True"
            </HeaderContextMenu> 
            <ClientSettings EnablePostBackOnRowClick="true"
            <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
            <MasterTableView DataSourceID="linqReferenciasActivas" DataKeyNames="SRCREF_ID"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                  <telerik:GridBoundColumn DataField="SRCREF_NOM_ASOC"  
                        HeaderText="Institución"  ReadOnly="True" SortExpression="SRCREF_NOM_ASOC"  
                        UniqueName="SRCREF_NOM_ASOC"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="SRCREF_NUM_REFER"  
                        HeaderText="No. de Referencia" SortExpression="SRCREF_NUM_REFER"  
                        UniqueName="SRCREF_NUM_REFER" ReadOnly="True"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_DESCR_CORTA_RELA"  
                        HeaderText="Relación" ReadOnly="True" SortExpression="SRCREF_DESCR_CORTA_RELA"  
                        UniqueName="SRCREF_DESCR_CORTA_RELA"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_MONTO_ORIGINAL" DataFormatString="{0:C}" 
                        HeaderText="Monto" SortExpression="SRCREF_MONTO_ORIGINAL"  
                        UniqueName="SRCREF_MONTO_ORIGINAL" DataType="System.Decimal"  
                        ReadOnly="True"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_SALDO_ACTUAL"  
                        DataType="System.Decimal" HeaderText="Saldo Actual"  
                        SortExpression="SRCREF_SALDO_ACTUAL" UniqueName="SRCREF_SALDO_ACTUAL"  
                        ReadOnly="True"
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <asp:LinqDataSource ID="linqReferenciasActivas" runat="server"  
            ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
            TableName="GST_SRCREF_SRC_REFERENCIA"  
              Where="PER_ID == @PER_ID &amp;&amp; SRCREF_ACTIVA == @SRCREF_ACTIVA"  
            OnSelecting="linqReferenciasInactivas_Selecting" 
            Select="new (SRCREF_ID,SRCREF_DESCR_CORTA_RELA, SRCREF_MONTO_ORIGINAL, SRCREF_NUM_REFER, SRCREF_SALDO_ACTUAL, SRCREF_NOM_ASOC)"
            <whereparameters> 
            <asp:Parameter Name="PER_ID" Type="Int64" /> 
                <asp:Parameter DefaultValue="true" Name="SRCREF_ACTIVA" Type="Boolean" /> 
            </whereparameters> 
        </asp:LinqDataSource> 
</telerik:RadPageView> 
    <telerik:RadPageView ID="RadPageView2" runat="server"
    <telerik:RadGrid ID="gridCanceladas" runat="server"  
            DataSourceID="linqReferenciasInactivas" GridLines="None"  
            onselectedindexchanged="gridCanceladas_SelectedIndexChanged"
        <headercontextmenu enableautoscroll="True"
        </headercontextmenu> 
        <ClientSettings EnablePostBackOnRowClick="true"
      <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
        <mastertableview autogeneratecolumns="False" datakeynames="SRCREF_ID"  
            datasourceid="linqReferenciasInactivas"
            <rowindicatorcolumn> 
                <HeaderStyle Width="20px" /> 
            </rowindicatorcolumn> 
            <expandcollapsecolumn> 
                <HeaderStyle Width="20px" /> 
            </expandcollapsecolumn> 
                 <Columns> 
                  <telerik:GridBoundColumn DataField="SRCREF_NOM_ASOC"  
                        HeaderText="Institución" ReadOnly="True" SortExpression="SRCREF_NOM_ASOC"  
                        UniqueName="SRCREF_NOM_ASOC"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="SRCREF_NUM_REFER"  
                        HeaderText="No. de Referencia" SortExpression="SRCREF_NUM_REFER"  
                        UniqueName="SRCREF_NUM_REFER" ReadOnly="True"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_DESCR_CORTA_RELA"  
                        HeaderText="Relación" ReadOnly="True" SortExpression="SRCREF_DESCR_CORTA_RELA"  
                        UniqueName="SRCREF_DESCR_CORTA_RELA"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_MONTO_ORIGINAL" DataFormatString="{0:C}" 
                        HeaderText="Monto" SortExpression="SRCREF_MONTO_ORIGINAL"  
                        UniqueName="SRCREF_MONTO_ORIGINAL" DataType="System.Decimal"  
                        ReadOnly="True"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SRCREF_FEC_FIN_REL" DataFormatString="{0:d}" 
                        DataType="System.Decimal" HeaderText="Fecha de Cancelación"  
                        SortExpression="SRCREF_SALDO_ACTUAL" UniqueName="SRCREF_SALDO_ACTUAL"  
                        ReadOnly="True"
                    </telerik:GridBoundColumn> 
                </Columns> 
        </mastertableview> 
    </telerik:RadGrid> 
        <asp:LinqDataSource ID="linqReferenciasInactivas" runat="server"  
            ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
            TableName="GST_SRCREF_SRC_REFERENCIA"  
            Where="PER_ID == @PER_ID &amp;&amp; SRCREF_ACTIVA == @SRCREF_ACTIVA"  
            onselecting="linqReferenciasInactivas_Selecting"
            <whereparameters> 
                <asp:Parameter Name="PER_ID" Type="Int64" /> 
                <asp:Parameter DefaultValue="false" Name="SRCREF_ACTIVA" Type="Boolean" /> 
            </whereparameters> 
        </asp:LinqDataSource> 
    <br /> 
</telerik:RadPageView> 
    <telerik:RadPageView ID="RadPageView3" Runat="server" Width="100%"
        <telerik:RadGrid ID="gridNoReportadas" runat="server"  
            DataSourceID="linqReferenciasNoReportadas" GridLines="None"  
            onselectedindexchanged="RadGrid1_SelectedIndexChanged"
            <HeaderContextMenu EnableAutoScroll="True"
            </HeaderContextMenu> 
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="REFNOREP_ID"  
                DataSourceID="linqReferenciasNoReportadas" CommandItemDisplay="Top"
                <Columns> 
                    <telerik:GridBoundColumn DataField="REFNOREP_INST" HeaderText="Institución"  
                        SortExpression="REFNOREP_INST" UniqueName="REFNOREP_INST"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="REFNOREP_NUM_REFERENCIA"  
                        HeaderText="No. Referencia" SortExpression="REFNOREP_NUM_REFERENCIA"  
                        UniqueName="REFNOREP_NUM_REFERENCIA"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="CTG_TIPREL_TIPO_RELACION.TIPREL_DES" DataType="System.Int32"  
                        HeaderText="Relación" SortExpression="TIPREL_ID" UniqueName="TIPREL_ID"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="REFNOREP_SALDO" DataType="System.Decimal"  
                        HeaderText="Saldo" SortExpression="REFNOREP_SALDO"  
                        UniqueName="REFNOREP_SALDO"
                    </telerik:GridBoundColumn> 
                  <telerik:GridBoundColumn DataField="REFNOREP_CUOTA" DataType="System.Decimal"  
                        HeaderText="Cuota" SortExpression="REFNOREP_CUOTA"  
                        UniqueName="REFNOREP_CUOTA"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <CommandItemTemplate> 
                    <telerik:RadToolBar ID="RadToolBar2" Runat="server"  
                        onbuttonclick="RadToolBar2_ButtonClick"
                        <Items> 
                            <telerik:RadToolBarButton runat="server" Text="Nueva" CommandName="NUEVO"
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="Modificar" CommandName="MODIFICAR"
                            </telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar> 
                </CommandItemTemplate> 
            </MasterTableView> 
            <ClientSettings EnablePostBackOnRowClick="True"
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:LinqDataSource ID="linqReferenciasNoReportadas" runat="server"  
            ContextTypeName="Gestor.Data.Core.GestorAPCDataContext"  
            onselecting="linqReferenciasNoReportadas_Selecting"  
            TableName="EXP_REFNOREP_NO_REPORTADAS" Where="PER_ID == @PER_ID"
            <WhereParameters> 
                <asp:Parameter DefaultValue="0" Name="PER_ID" Type="Int64" /> 
            </WhereParameters> 
        </asp:LinqDataSource> 
        <asp:Button ID="Button3" runat="server" onclick="Button3_Click"  
            Text="Nuevo" /> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 
 
0
Rosen
Telerik team
answered on 02 Jun 2010, 11:40 AM
Hi Roberto,

The cause for the error you are getting is the fact that RadListView's RadListViewInsertItem is not databound by default, similar to the MS ListView. Therefore in order to use such binding you may need to manually call DataBind of the InsertItem. For example:

protected void RadListView1_DataBound(object sender, EventArgs e)
{
    if (RadListView1.InsertItemPosition != 
            Telerik.Web.UI.RadListViewInsertItemPosition.None)
    {
        RadListView1.InsertItem.DataBind();
    }
}

However as we identify this behavior not very intuitive, we will consider to modify this behavior for the next version of the control.

Kind regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nicolaï
Top achievements
Rank 2
answered on 20 May 2011, 02:19 PM
Hello,

"
However as we identify this behavior not very intuitive, we will consider to modify this behavior for the next version of the control."

- Is this still under consideration or abandonned?

Best regards,
Nicolaï
0
Veli
Telerik team
answered on 26 May 2011, 05:14 PM
Hello Nicolai,

This issue has been fixed after gathering enough feedback in favor of implicit databinding of the insert item. Binding expressions now work inside the InsertItemTemplate. Consider updating to the latest version if you are using an older version of Telerik RadControls. If this issue persists, give us more info on your particular scenario, so that we can investigate it further.

Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Peter
Top achievements
Rank 1
answered on 24 Jul 2012, 06:56 AM
I'm getting this error with v2012.1.411.40:

<GroupTemplate>
    <table>
        <asp:PlaceHolder ID="phQuarters" runat="server" />
    </table>
</GroupTemplate>
<ItemTemplate>
    <tr>
        <td>
            Q<% Eval("ForQuarter"); %></td>
        <td>
            <asp:Label runat="server" ID="lblMonthRange" />
        </td>
    </tr>


etc.
0
Nicolaï
Top achievements
Rank 2
answered on 24 Jul 2012, 07:37 AM
Q<%# Eval("ForQuarter"); %></td>

?

The #..?
Tags
ComboBox
Asked by
Roberto Yudice
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Roberto Yudice
Top achievements
Rank 1
Rosen
Telerik team
Nicolaï
Top achievements
Rank 2
Veli
Telerik team
Peter
Top achievements
Rank 1
Share this question
or