Skip navigation
diana.c10
Currently Being Moderated

Display flex component on top of other component

Apr 17, 2012 5:40 AM

Hi all,


We are having a DataGrid on top of which we would like to display a simple table on a button click. I have tried to use Canvas and set the table visible and includeInLayout to false and on the button clcik to set them to true, but it does not work. Do you have any idea on how we could achieve this ? Dynamically displaying a component on top of another component.

 

Thanks,

 
Replies
  • Currently Being Moderated
    Apr 17, 2012 2:09 PM   in reply to diana.c10

    Make sure the order is as follows:

     

    <DataGrid>

    <Table>

     

    and not:

     

    <Table>

    <DataGrid>

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 5:44 AM   in reply to diana.c10

    try like this. this will work.

     

    <canvas width="800" height=800>

         <canvas id=can1 width="100%" height="100%">

              <button click=btnClickHandler()>

         <canvas>

     

        <canvas id=can2 width="100%" height="100%" visible=false includeInLayout=false>

         <canvas>

    <canvas>

     

     

    btnClickHandler()

    {

         can2.visible = can2.includeInLayout = true;

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points