IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP.NET Discussion :

Insertion d'un scrollbar dans un TabContainer


Sujet :

ASP.NET

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    526
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 526
    Par défaut Insertion d'un scrollbar dans un TabContainer
    Bonjour,

    J'ai un TabContainer dans lequel j'ai une zone zoneBoxCriteresReferencement.
    Celle-ci contient deux autres zones zoneBoxSelectionsPossibles et zoneBoxVosSelections côte à côte.

    La première zone zoneBoxSelectionsPossibles contient un Treeview et a une taille qui s'ajuste en fonction du déploiement de l'arbre.

    Mon problème est que ma deuxième zone zoneBoxVosSelections va se mettre en dessous.
    Ce que je voudrais, c'est insérer un scrollbar à mon TabContainer lorsque cela est nécéssaire afin que les deux zones zoneBoxSelectionsPossibles et zoneBoxVosSelections restent côte à côte lorsque l'arbre est déployé.

    Voici mon code, si quelqu'un voit comment faire, merci.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"  CssClass="ajax__tab_yuitabview-theme" >
     
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Données de détection">
                    <ContentTemplate>
     
     
    <div id="zoneBoxCriteresReferencement">
     
      <div id="boitelibelleCriteresReferencement">
            <asp:Panel ID="CriteresReferencement" runat="server" style="background: #A8C1DF; width:220px ;text-align:center; color:#F7FBFA" >  Critères de référencement  </asp:Panel>
       </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender3" TargetControlID="CriteresReferencement" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
        <asp:Panel ID="Panel1" runat="server" ScrollBars="auto">
     
     
     <div id="boiteCriteresReferencement">
     
         <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto">
     
     
          <div id="zoneBoxSelectionsPossibles">
     
          <div id="boitelibelleSelectionsPossibles">
            <asp:Panel ID="SelectionsPossibles" runat="server" style="background: #A8C1DF; width:180px ;text-align:center; color:#F7FBFA" >  Sélections possibles  </asp:Panel>
         </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender4" TargetControlID="SelectionsPossibles" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
      <div id="boiteSelectionsPossibles">
          <asp:Panel ID="PanelSelectionsPssibles" runat="server" >
     
       <asp:TreeView ID="ReferencesNominatives" runat="server" ImageSet="Simple" 
               NodeIndent="10" >
            <ParentNodeStyle Font-Bold="False" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
            <SelectedNodeStyle Font-Underline="True" ForeColor="#DD5555" 
                HorizontalPadding="0px" VerticalPadding="0px" />
            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
                HorizontalPadding="0px" NodeSpacing="0px" VerticalPadding="0px" />
        <Nodes >
          <asp:TreeNode Text="Références nominatives"  NavigateUrl="" Expanded="False">
    ...
          </asp:TreeNode>
        </Nodes>
     
        </asp:TreeView>
      </asp:Panel>
      </div> <%-- Fin de boiteSelectionsPossibles --%>
     
       </div> <%-- Fin de zoneBoxSelectionsPossibles --%>
     
     
    <div id="zoneBoxVosSelections">
     
         <div id="boitelibelleVosSelections">
     
     
            <asp:Panel ID="VosSelections" runat="server" style="background: #A8C1DF; width:180px ;text-align:center; color:#F7FBFA" >  Vos sélections  </asp:Panel>
         </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender5" TargetControlID="VosSelections" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
       <div id="boiteVosSelections">
     
           <asp:Panel ID="PanelVosSelections" runat="server" Height="300px" ScrollBars="Auto"></asp:Panel>
     
       </div> <%-- Fin de boiteVosSelections --%>
     
      </div> <%-- Fin de zoneBoxVosSelections --%>
    </asp:Panel>
     
    </div> <%-- Fin de boiteCriteresReferencement --%>
     
    </asp:Panel>
     
    </div> <%-- Fin de zoneBoxCriteresReferencement --%>
     
                     </ContentTemplate>
                </asp:TabPanel>
     
            </asp:TabContainer>

    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    #zoneBoxCriteresReferencement
    {
     position:relative;
     width:99%;
     margin-top: 10px;
    } 
     
     
    #zoneBoxSelectionsPossibles,#zoneBoxVosSelections
    {
     float:left;
     width:auto;
     min-width:290px;
     margin-top: 10px;  
     margin-left:10px;
    }
     
    /*Partie CritèresReferencement*/
    #boiteCriteresReferencement
    { 
     float:left;      
     width:98.1%;
     border: 1px solid #C2C4C6;
     padding: 5px;
     margin-left:1px;  
     background: #DEE2EA;   
    }  
     
     
    #boiteSelectionsPossibles,#boiteVosSelections
    {
     min-width:275px;
     width:auto;
     min-height:300px;
     border: 1px solid #C2C4C6;
     padding: 5px;
     margin-left:1px;  
     background: #ECEBEF; 
    }

  2. #2
    Membre chevronné Avatar de jacky01
    Profil pro
    Développeur .NET
    Inscrit en
    Juin 2007
    Messages
    537
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Juin 2007
    Messages : 537
    Par défaut
    Bonjour,

    Si tu rajoute un panel contenant zoneBoxSelectionsPossibles et zoneBoxVosSelections avec ScrollBars = "Auto" ça fonctionnerais pas ?

    du genre :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"  CssClass="ajax__tab_yuitabview-theme" >
     
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Données de détection">
                    <ContentTemplate>
     
     <asp:Panel ID="Panel" runat="server" ScrollBars="Auto" >
    <div id="zoneBoxCriteresReferencement">
     
      <div id="boitelibelleCriteresReferencement">
            <asp:Panel ID="CriteresReferencement" runat="server" style="background: #A8C1DF; width:220px ;text-align:center; color:#F7FBFA" >  Critères de référencement  </asp:Panel>
       </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender3" TargetControlID="CriteresReferencement" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
        <asp:Panel ID="Panel1" runat="server" ScrollBars="auto">
     
     
     <div id="boiteCriteresReferencement">
     
         <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto">
     
     
          <div id="zoneBoxSelectionsPossibles">
     
          <div id="boitelibelleSelectionsPossibles">
            <asp:Panel ID="SelectionsPossibles" runat="server" style="background: #A8C1DF; width:180px ;text-align:center; color:#F7FBFA" >  Sélections possibles  </asp:Panel>
         </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender4" TargetControlID="SelectionsPossibles" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
      <div id="boiteSelectionsPossibles">
          <asp:Panel ID="PanelSelectionsPssibles" runat="server" >
     
       <asp:TreeView ID="ReferencesNominatives" runat="server" ImageSet="Simple" 
               NodeIndent="10" >
            <ParentNodeStyle Font-Bold="False" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
            <SelectedNodeStyle Font-Underline="True" ForeColor="#DD5555" 
                HorizontalPadding="0px" VerticalPadding="0px" />
            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
                HorizontalPadding="0px" NodeSpacing="0px" VerticalPadding="0px" />
        <Nodes >
          <asp:TreeNode Text="Références nominatives"  NavigateUrl="" Expanded="False">
    ...
          </asp:TreeNode>
        </Nodes>
     
        </asp:TreeView>
      </asp:Panel>
      </div> <%-- Fin de boiteSelectionsPossibles --%>
     
       </div> <%-- Fin de zoneBoxSelectionsPossibles --%>
     
     
    <div id="zoneBoxVosSelections">
     
         <div id="boitelibelleVosSelections">
     
     
            <asp:Panel ID="VosSelections" runat="server" style="background: #A8C1DF; width:180px ;text-align:center; color:#F7FBFA" >  Vos sélections  </asp:Panel>
         </div> 
           <asp:RoundedCornersExtender ID="RoundedCornersExtender5" TargetControlID="VosSelections" Corners="Top" Radius="6" runat="server"> </asp:RoundedCornersExtender>
     
       <div id="boiteVosSelections">
     
           <asp:Panel ID="PanelVosSelections" runat="server" Height="300px" ScrollBars="Auto"></asp:Panel>
     
       </div> <%-- Fin de boiteVosSelections --%>
     
      </div> <%-- Fin de zoneBoxVosSelections --%>
    </asp:Panel>
     
    </div> <%-- Fin de boiteCriteresReferencement --%>
     
    </asp:Panel>
     
    </div> <%-- Fin de zoneBoxCriteresReferencement --%>
     </panel>
                     </ContentTemplate>
                </asp:TabPanel>
     
            </asp:TabContainer>

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    526
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 526
    Par défaut
    Non ça ne change rien.

Discussions similaires

  1. Insertion d'une icone dans le SystemTray
    Par Vow dans le forum MFC
    Réponses: 23
    Dernier message: 25/01/2008, 14h50
  2. Insertion scrollbar dans onglet -> viewText
    Par vica6a dans le forum GTK+ avec C & C++
    Réponses: 7
    Dernier message: 10/06/2007, 23h47
  3. Réponses: 17
    Dernier message: 15/05/2006, 12h28
  4. Réponses: 4
    Dernier message: 13/04/2004, 19h12
  5. Insertion d'un noeud dans une liste chaînée
    Par habib106 dans le forum Assembleur
    Réponses: 8
    Dernier message: 07/04/2004, 22h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo