[CLOSED] [1.0] Problem with revision 2973

  1. #1

    [CLOSED] [1.0] Problem with revision 2973

    i have updated from revision 2969 to 2973 and i got a new error when adding a tabpanel by code, here is a screen
    the code is:

    
            Dim oTab As New Ext.Net.Panel
            Dim oIdioma As Modulos.Admin_Page_Idioma
            oTab.ID = "tabIdiom_" & pIdiomaID
            If pBandera.Length = 0 Then
                oTab.Title = pTitulo
            Else
                oTab.Title = "<img src='" & Page.ResolveUrl("~/images/flags/") & pBandera & "' />&nbsp;" & pTitulo
            End If
            oTab.Border = False
    
            'Cargo el Idioma
            oIdioma = LoadControl("~/Modules/Admin/Page_Idioma.ascx")
            oIdioma.ID = "CTRLIDIOMA_" & pIdiomaID
            oIdioma.IdiomaID = pIdiomaID
            oIdioma.PageID = pPageID
    
            oTab.ContentControls.Add(oIdioma)
            oTab.Render(tabEdit, intIndice, RenderMode.InsertTo)
            oTab.UpdateContent()
    
            intIndice += 1
    
        <ext:Viewport runat="server" Layout="Fit">
            <Items>
                <ext:TabPanel ID="tabEdit" runat="server" ActiveTabIndex="0" Border="false" AnimScroll="true" AutoScroll="true">
                    <Items>
                    </Items>
                </ext:TabPanel>
            </Items>
        </ext:Viewport>
    Attached Thumbnails Click image for larger version. 

Name:	Capture1.jpg 
Views:	69 
Size:	94.7 KB 
ID:	1451  
    Last edited by geoffrey.mcgill; Aug 10, 2010 at 7:51 PM. Reason: [CLOSED]
  2. #2
    i tested the component ascx alone and i get this error, it points to: xtype:"form"

    Error: invalid label
    Source Code:
    frmDetalle",xtype:"form",autoScroll:true,region:"center",defaults:{"blankText":"Campo Requerido.","msgTarget":"side"},items:[{id:"txtUsuario_txtID",xtype:"textfield",fieldLabel:"ID",width:100,readOnly:true},{id:"txtUsuario_txtNombre",xtype:"textfield",anc
    Last edited by geoffrey.mcgill; Aug 09, 2010 at 10:34 PM. Reason: please use [CODE] tags
  3. #3
    Hi,

    Please provide test sample reproduces the issue and which can be run locally on our side
  4. #4
    I have updated to version 2977 and the error is still there, Here is a testing page attached

    the error is the following:

    Error: unterminated string literal
    Line: 16, Column: 208
    Source Code:
    ","<script type=\"text/javascript\">","//<![CDATA[","Ext.onReady(function(){Ext.QuickTips.init();});Ext.net.ResourceMgr.init({id:\"id56dc717b0a054296accf01432db26988\",theme:\"blue\"});","//]]>","<\/script>","</head>
    Last edited by geoffrey.mcgill; Aug 09, 2010 at 10:33 PM. Reason: please use [CODE] tags
  5. #5
    Hello, juane66!

    Here is a testing page attached
    Unfortunately I can't see any attachment. Are there any dll's? In according to the forum's rules the attachment with dll are deleted. Please remove all dll's and try to post it again.
  6. #6
    Here is the attachment, it was .rar that's why it didn't upload it.
    It's only aspx pages
    Attached Files
  7. #7
    Hi,

    1. Do not call Render and UpdateContent for one control at the one request
    2. Call Render or UpdateContent during DirectRequest only (or DirectMethod). Do not call it during initial page load
  8. #8
    Quote Originally Posted by vladimir View Post
    Hi,

    1. Do not call Render and UpdateContent for one control at the one request
    2. Call Render or UpdateContent during DirectRequest only (or DirectMethod). Do not call it during initial page load
    Can you give me an example, because without the render it's possible to add it to the tabpanel, and i must do it at page load
    Thanks in advance
  9. #9
    Hi,

    Just add the tab to the TabPanel

    During initial page load
    tabb.Items.Add(oTab)
    During direct request
    oTab.Render(tabb, 0, RenderMode.InsertTo)
    Last edited by Vladimir; Aug 10, 2010 at 11:37 AM.

Similar Threads

  1. [CLOSED] [1.2] Problem since revision 3809
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 08, 2012, 9:44 AM
  2. [CLOSED] [1.0] Problem with revision 3409
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 18, 2011, 7:54 PM
  3. [CLOSED] Please help with update revision
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 27, 2010, 9:06 AM
  4. [CLOSED] [1.0] Problem with last revision
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 12, 2010, 8:15 AM
  5. [CLOSED] [1.0] problem with revision 2550
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 13, 2010, 6:56 PM

Posting Permissions