Can't show a static text-string ...

  1. #1

    Can't show a static text-string ...

    Hello World,

    Is there any option/way to show a text-string ALWAYS as some kind of header to the result of this code:
    <ext:Tab ID="TabDocuments" runat="server" Title="Dokument" Border="false">
                                        <ext:FitLayout runat="server">
                                            <ext:DataView runat="server" StoreID="DocumentStore" ItemSelector="span:first-child">         
                                                <Template ID="Template1" runat="server">   
                                                       <div id="Avtal">Avtal</div>
                                                       <div id="Ovrigt">Ovrigt</div>
                                                       <div id="Prislistor">Prislistor</div>
                                                       <div id="Bilagor">Bilagor</div>                                        
                                                     <tpl for=".">                                          
                                                       <div id="{CategoryName}_text">
                                                            <a href="/pages/downloaddocument/DownloadDocumentHelper.aspx?id={RevisionGuid}&type=SupplierDocument" target="_blank" >{DocumentTitle}</a>
    As it is right now, "Avtal" + "Ovrigt" + "Prislistor" + "Bilagor" only shows if and only if there is something to show after/in the <tpl for=".">
    I always want to show "Avtal" + "Ovrigt" + "Prislistor" + "Bilagor" even if there is no data presented after/in the <tpl for=".">

    Any advice ?

    Please see my three attached images.
    actual_with_data.jpg (Correct with data)
    actual_without_data.jpg (Right now without data, not correct)
    my_dream_without_data.jpg (As I want it to be without data, correct)

    Attached Thumbnails Click image for larger version. 

Name:	actual_without_data.jpg 
Views:	33 
Size:	5.7 KB 
ID:	2838   Click image for larger version. 

Name:	actual_with_data.jpg 
Views:	33 
Size:	12.6 KB 
ID:	2839   Click image for larger version. 

Name:	my_dream_without_data.jpg 
Views:	39 
Size:	33.6 KB 
ID:	2840  
    Last edited by andersgunnare; Jun 09, 2011 at 8:59 AM.

Similar Threads

  1. Replies: 2
    Last Post: Jul 12, 2012, 2:06 PM
  2. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM
  3. Replies: 0
    Last Post: Dec 02, 2011, 12:23 AM
  4. Replies: 13
    Last Post: May 16, 2011, 1:26 PM
  5. Replies: 1
    Last Post: Feb 28, 2011, 8:13 AM

Posting Permissions