[CLOSED] hiding/displaying dynamic panel on ajax postback

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] hiding/displaying dynamic panel on ajax postback

    Different dynamic panel doesnot shows up after iterating once .

    Enclosed is updated sample solution for your reference.

    On my Aspx code behind , i create data for Combo-box -

    Value and Name pair for first 3 entries are -



    "DEM", "Demerot"



    "SA", "Midnight Sun"



    "AZ", "The Grand Canyon State"
    In my ascx code behind ,on init , i create 3 different panels with ID ="DEM","SA" and "AZ"

    On change of combo-box value, respective panels shows up. But, after Iterating through any of given combo-box value, panel in tab doesnot show up properly.



    I am using Coolite 0.8.2.983
  2. #2

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    You have to set Hidden=True after placing a panel to the Controls collection. The script can be generated if a control inside Control collection

    Move pnl.Hidden = True (line 112 in the MultipleDynamicPanel.vb) after Me.Controls.Add(pnl) (line 117)
  3. #3

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    I made the required changes. But, panels seems to overlap from previous one and doesnot show up completly.Its only when i move/resize my window , that controls get rendered properly.

    Please advise.
  4. #4

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Calling .DoLayout() server-side, or .doLayout() client-side on the Panel should force the layout to re-calc.

    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Used .doLayout() server side, but didnot help.
    Problem persist.

    Please advise
  6. #6

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    I cannot reproduce it om your original example.
    Here is modified sample

  7. #7

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi, i still face the same issue.Dynamic panels do not repaint properly unless and until i move window

    FYI, i am using

    0.8.1.27292 version of Coolite.Ext.Web.dll
    1.0.0.27288 version of Colite.Utilities.dll
    3.5.0.0 version of Newtonsoft.Json

    I have enclosed screen-shot of the view.
    File "view after change in combo-box.jpg" contains view after 2nd selection change

    File "view after change in combo-box_2 change.jpg" contains view after 3rd selection change
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 2:38 AM.
  8. #8

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    The issue is reproducible under IE7/6
    The problem that your panels are independent (outside any layout)
    To resolbe the issue set HideParent = True for each Panel (SA, DEM, AZ)
  9. #9

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    Yes, i am working on IE 7 . Though I made - HideParent = True for each panel , problem is still there,
    I checked it in FireFox and it renders as desired.
  10. #10

    RE: [CLOSED] hiding/displaying dynamic panel on ajax postback

    Hi,

    I tested the following test sample under IE7/6, all works fine for me
Page 1 of 2 12 LastLast

Similar Threads

  1. Store Data is not displaying in Dynamic Gridpanel
    By rendongsc in forum 1.x Help
    Replies: 1
    Last Post: Apr 11, 2012, 9:19 PM
  2. Store Data is not displaying in Dynamic Gridpanel
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Apr 11, 2012, 9:18 PM
  3. Replies: 9
    Last Post: May 10, 2010, 5:56 AM
  4. Control exclude in ajax postback
    By jeybonnet in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2009, 6:57 PM
  5. [CLOSED] Dynamic panel construction on ajax event
    By Lex in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 16, 2008, 7:08 AM

Posting Permissions