Panel.LoadContent() with TexArea inside panel

  1. #1

    Panel.LoadContent() with TexArea inside panel

    Hi... my original problem was this

    I have a Tab panel (let's call it TabMom) with 4 Tabs, each tab has several controls (textBox, TextArea, DataField, gridpanel, etc), when I need to update values of controls, I do it Code Behind getting data from Data Base, and updating each control textBox.text = [WathEver], and only the controls of the "Active Tab" were updated.

    I investigate in the forum and using "TabMom.LoadContent()"... Problem Solved.

    But... now when any of my TextArea controls, has Enter Key inside it's text, I call LoadContent of parent panel... a JavaScript error occurs. (see attachments)

    Any suggestion?

    Regards
    Attached Thumbnails Click image for larger version. 

Name:	Error.jpg 
Views:	27 
Size:	108.2 KB 
ID:	24063  
  2. #2
    Hi @LemonMty,

    The original problem happens because the content of not opened tabs is not rendered before first activation.

    I am not sure how LoadContent() helps remedy the problem, but I don't think it is a way to go.

    What you can do is to make all content rendered, even in hidden tabs. To do that please set DeferredRender="false" for the TabPanel.
    http://docs.sencha.com/extjs/4.2.1/#...deferredRender

Similar Threads

  1. [CLOSED] Panel Loader, LoadContent, UpdateContent issue
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 27, 2013, 2:34 PM
  2. Replies: 0
    Last Post: Jan 18, 2013, 10:01 PM
  3. Replies: 2
    Last Post: Apr 02, 2012, 8:03 PM
  4. Replies: 6
    Last Post: Aug 29, 2011, 4:54 PM
  5. [CLOSED] Panel LoadContent
    By drgw74 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 23, 2010, 8:58 AM

Posting Permissions