Datagrid column header word wrap issue

Hi All,
I'm passing dynamic text to a datagrid column header. The word wrap is true but it's not working.
Any ideas how to fix this issue?
DataGridColumn headerText="{myVar.text} Total" headerWordWrap="true"
Thanks
Johnny

@Johnny,
Try to make use of the headerRenderer property and use <mx:Text /> control as a renderer so that your headerText gets wrapped..
Thanks,
Bhasker
Message was edited by: BhaskerChari

Similar Messages

  • Tooltip show forever until the mouse exists the datagrid column header

    Hi,
    Any idea on showing tooltip forever until the mouse exists the datagrid column header.
    Thanks
    Atul

    Hi JamieVJohnson,
    Please specify the
    GroupStyle.Panel to the
    DataGridRowsPresenter in DataGrid, since the default GroupStyle.Panel (StackPanel) cannot fit for the DataGrid Width "*" and the columns collapse.
    <DataGrid Height="100">
    <DataGrid.GroupStyle>
    <GroupStyle>
    <GroupStyle.Panel>
    <ItemsPanelTemplate>
    <DataGridRowsPresenter/>
    </ItemsPanelTemplate>
    </GroupStyle.Panel>
    <GroupStyle.ContainerStyle>
    <Style TargetType="{x:Type GroupItem}">
    </Style>
    </GroupStyle.ContainerStyle>
    </GroupStyle>
    </DataGrid.GroupStyle>
    <DataGrid.Columns>
    <DataGridTextColumn Header="Column 1" Width="2*"/>
    <DataGridTextColumn Header="Column 2" Width="1*"/>
    </DataGrid.Columns>
    </DataGrid>
    Sincerely,
    Bob Bao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Are you looking for a typical code sample? Please download
    all in one code framework !

  • Datagrid column header event issue

    Hi,
    I'm trying to find the event that gets triggered when a
    column header is dragged and one when its droped to a new position
    in the grid but no luck so far Any ideas ?
    Thanks.

    The DataGrid's headerShift event will be dispatched when the
    mouse is released with the column in a new position.
    As for detecting the actual drag of the column, you need more
    primative events. You can listen for mouseDown events and note the
    row number (header row is row 0). You can then listen for mouseMove
    events while the mouse is dragging the column.

  • Checkbox in a datagrid column header not working properly

    Hi,
    I have rendered a checkbox in the header of a datagrid column
    using headerRenderer property. That column also has all entries as
    checkboxes. What I want to do is that on checking the header
    checkbox, all checkboxes should get checked. Though I am able to do
    this BUT the header checkbox remains uncheched in the whole
    process! Whereas, if I remove this eventHandler from it, then the
    header checkbox shows the correct state i.e., show checked on
    checking & unchecked on unchecking!
    Any input?
    Thanks in advance,
    Cheree

    hi many thanks for looking at my problem
    what i am trying to do is show a column if the proc_id is greater than 2
    it just looks a bit silly when a user configures the file (but not submitted it for loading)
    the file cnt is null or zero - i had hoped not to show this - the proc_id is found from the report query !

  • Hide Specific Datagrid Column Header

    Hi,
    I'm asking for if ther is a method to hide a specific
    datagrid header colum;
    The showHeaders property of datagrid give me the possibility
    to set the visibility of all datagrid header column.
    There is a way to hide, for example, the header of first
    datagrid column?
    PLEASE HELP ME!!
    Thank you

    "markuspedro" <[email protected]> wrote in
    message
    news:glvr3g$gls$[email protected]..
    > thank's, but this solution not run.. i would hide the
    header of specif
    > column..
    >
    > It' s impossible that flex give us the possibility to
    hide only the header
    > of all columns...
    If you hide the header, then the space it occupies will still
    be there, so
    the rows will line up. Try using a headerRenderer wit one
    state that shows
    the header text and one state that shows nothing.

  • Datagrid column header split

    Greetings,
    I am using flashbuilder 4.5 for php premium.    I have a datagrid and need
    to have multiple column headers some spanning others.  I found an
    example that has multiple header/iterm renderers, but it is for the mx:datagrid,
    not the spark.  The example calls it SplitDataGridHeader.   Is there a way to
    do this with a spark (s:datagrid) without all the extra?
    The following is an image of the mx version running:
    thanks.

    @Johnny,
    Try to make use of the headerRenderer property and use <mx:Text /> control as a renderer so that your headerText gets wrapped..
    Thanks,
    Bhasker
    Message was edited by: BhaskerChari

  • Can't wrap column header if column is sized smaller

    I have been reading through all the threads here and have not found a solution to my particular problem. I have a column with a long title that I want wrapped so the column itself is narrower. I have tried the "display:block;width:150px;overflow:hidden;white-space:normal" approach which works fine with the column data but still leaves the header wrapped. I also tried the "<table><col style="width:100px;"><tr><td>#COL04#</td></tr></table>" approach which had no effect. I'm using Theme 2 and have examined the t2header tags and see that the default tag contains a nowrap directive, but the tags for the other templates such as standard and borderless do not contain a nowrap. I have tried using all of these templates to no avail. Any ideas on how to get my column header to wrap?

    Hi,
    Following is the jsp code that i am using but not able to wrap the text in column:
    <af:table id="logTable"
    value="#{abc.listWorkBenchLog}"
    var="log"
    bandingInterval="1"
    banding="row"
    rows="5"
    inlineStyle="border: 1px solid Silver ;width:700px;height:100px;overflow:scroll;" >
    <af:column sortable="true" sortProperty="strDesc" width="700" noWrap="false" >
    <f:facet name="header">
    <af:outputText value="Description"/>
    </f:facet>
    <af:outputText value="#{log.strDesc}" />
    </af:column>
    </af:table>
    I tried removing noWrap however it places a horizontal scroll bar (which i dont want and hence implementing this wrap text functionality) in the table.
    please help,
    Manglesh

  • ITunes 7 column header bug

    Here's a screenshot: http://img175.imageshack.us/img175/2452/picture1fs5.png
    Has anyone else noticed this problem?

    Glad to see I'm not alone in experiencing this issue. Anyone have any word on a fix?
    For what it's worth, this particular redraw issue is repeatable both on my new iMac and my elderly G3 iBook: I launch iTunes, hide it (⌘H), bring it back to the front, and, voila -- column-heading font redraw issues.
    iMac 20", G3 icebook   Mac OS X (10.4.8)   Mac user since 1981

  • How to disable right click option re-size on table column header?

    Hi All,
    Please let us know how to disable right click option re-size on table column header.
    The issue is that when I right click on the column header, the column is selected and the context menu with options like Sort, Columns, Resize Columns, etc.. is popping. we want to disable column  re-size option.
    We are binding the table values programatically (not using Bc4J) and the Jdeveloper version is 11.1.2.2
    Thanks in advance,
    - Vignesh S.

    Hi Gawish,
    Thanks for the reply.
    This will make the particular column frozen and only work for that particular column.
    My use case is that to remove the resize columns option from the context menu or to disable the right click option.
    Making column selection as none will disable the right click option but we need column selection for sorting.
    Is there any other way to achieve this?
    Thanks in advance,
    -Vignesh S.

  • Column Header Wrapping Issue in OBIEE

    Hi All,
    We are facing issue with the Column Header Wrapping . Our requirement is to wrap the column header to three lines. Few users are able to see the wrapped header in three lines, few are able to see it in two lines . Even though the Browser is same and the screen size (of laptop / desktop) is same we are facing issue with few users. It is also different in different instances . For ex, In DEV instance it is wrapped in three lines but for the same user with same laptop same browser , it is not wrapped in TEST instance.
    Options tried :
    Reducing the width in the additional column properties wraps the header in four line
    CSS Styling : word-wrap:break-word
    Why is there difference in wrapping between the instance for the same user ? Any help , would be appreciated.

    My dear,
    All blogs and sites are teaches about the ways to implement/create a specific functionality.
    Let me go to bed to dream your issue and share that with blog owner so that he can put your issue ;)
    stay tune
    thanks

  • Prob with fixed column widths and word wrapping in viewer

    i have a report where each record has a very long paragraph of text in it.
    In desktop and plus, the text column is at a fixed width and the text just wraps nicely according to the column width.
    But in Viewer, the column widths do not stay fixed, the text does not wrap, and the long text is displayed in a single line that completely stretches the column width off the page and requires a horizontal scroll bar.
    is there anyway to fix the column width in viewer, have the text naturally wrap, and prevent the column stretching. All word wrapping settings are on, but seem to have no effect. I can't seem to find any solution to this.
    Thanks...

    Hi Pritam,
    Per my understanding that you can't see the vertical scrollbar of the ReportViewer controls 2012 to scroll for the grid rows, but can see the vertical scrollbar of the web application, you also can't fix the headers while scrolling, right?
    I have tested on my local environment and can't reproduce your issue, but you have an alternative way to add some css  to the web form's source code to display the vertical scrollbar.
    Details information below for your reference:
    Please check below properties setting of the reportviewer which control the visibility of the scrollbar:
    AsyncRendering="true"
    SizeToReportContent="false"
    Please check if this problem also occur on other version of IE and other type of browser.
    Please check if you have done correct setting of the Fix data to freeze the table header as the step of below:
    http://technet.microsoft.com/en-us/library/bb934257(v=sql.100).aspx
    If step1 doesn't work, please click the source of webform.aspx and add below CSS to add the vertical scrollbar manually:
    #ReportViewer1 {
              overflow-y: scroll;
    Run the application you will see it display as below:
    Similar thread for your reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/f96b3b56-e920-411b-82ea-40467c922e66/reportviewer-control-vertical-scroll-bars
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Webforms - Wrap Text/Word Wrap for Column Headings

    I have some member aliases that are set as my webform's column headings, but they are fairly long. Setting the column width to a custom value that fits most of the text in the heading makes the form very wide and ugly to work with. I don't see any option to Wrap Text or use Word Wrap in the column headings. Is there any way to do this?
    Thanks!

    Hi,
    I am not aware of any option which allows you to wrap the text, it may be possible customizing the [CSS |http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/ch12s03.html] though to be honest I am not even sure about that and even if it was possible it would apply to all apps.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • DataGrid, HTML Text, and WORD WRAPPING

    I have a datagrid, with 2 columns:
    - comment
    - date
    The dataprovider that feeds the datagrid is an array
    collection, with each object containing the following fields:
    - comment
    - date
    - viewed
    What I want to do is BOLD the comment cell if the comment has
    not yet been viewed. What I first tried doing was to just insert
    the <b></b> tags on the server and then feed them up to
    Flex. So here's the code that I had tried to do this with:
    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}" />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    This works, but I lose the word wrapping for long comments (I
    have wordwrap="true" defined on my DataGrid).
    Then I tried changing my approach and doing something a
    little more simple to try and preserve the word wrapping, like
    this:
    <mx:DataGridColumn dataField="comment" width="100"
    wordWrap="true" fontWeight="{(data.viewed==0 ? 'bold' : 'normal')}"
    />
    Yet that doesn't seem to work either, it appears to just
    completely ignore everything... no bolding whatsoever.
    So my question is: what's the best to to control the BOLDING
    of a DataGrid cell while at the same time retaining the word wrap
    features?
    Thanks,
    Jacob

    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}"
    wordWrap="true" height="100%"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    You might also have a little more luck working with a
    TextArea

  • How to avoid WRAP of EXCEL Column HEADER Fields

    We have 3 tablix in the rdl file with 11 inch * 8.5 inch (to print in A4)
    Tablix 1 - HTML viewer
    Tablix 2 - EXCEL
    Tablix 3 - PDF 
    The size of the rdl is fixed , if size altered then printing becomes an issue.
    So we have to keep the rdl size fix
    but at the same time the WRAP of column header of the EXCEL need to be avoided ,
    because if the size of the column header is not reduced then we cannot be able to accomodate in the defined page size
    Eaxmple of SOme Header Field Name 
    1.OccupationCode 
    2.ChargeJobPhase which are quiet large fields, so it need to be wrapped(to reduce the length of the column to accomodate ) to fit in the page.
    So as an Alternative option  I use the COncept of Subreport and called it by adding row outside group otherwise the
    Report Server treats subreport as new report for each instance of the parent report.
    The challenge we faced is when export to EXCEL some of the columns is getting merged , I believe the size of the child report (sub report) is having the length
    greater than the parent report (Called Report )  and the size has to be large otherwise the COLUMN HEADER need to reduced which makes it Wrapped 
    So  is there any alternative without changing the parent report size and without WRAPPING the HEADER text of CHild report the MERGING of cell can be avoided.
    Since MERGING is happening which is not allowing us to PUT  FILTER in EXCEL but we need to have FILTER applicable since the END user use it to sort, find the records.

    Hi SubhadipRoy,
    In Reporting Services, whether to wrap text or not is depended on the CanGrow property. If we set the CanGrow property of tablix header row to true, then the header row of tablix will be expanded. If we set the CanGrow property of tablix header row
    to false, the header row will be shrunk as the designed size.
    So if we want to avoid wrap text, we can try to set the CanGrow property of tablix header row to false in Reporting Services level. Alternatively, we can click the Wrap Text button to enable the expended extra-long text property in Excel level.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Way to wrap Column Heading in two lines

    Hi,
    We have created one table UI element in web dynpro application.
    We have a requirement to wrap a table column heading in the table.
    Is there any way to wrap or keep the column heading in two lines.
    Thanks in advance..
    Regards,
    Kranthi.

    Hi Kranthi,
    not that I know of - but then again that doesn't mean there isn't!
    however, you could force two lines by inserting your column in the table as a column inside a column group - you would get a line for the column group and a line for the column - effectively two lines. If this was the only column in the column group I can't see how it could cause any issue.
    Hope this helps,
    Cheers,
    Chris

Maybe you are looking for

  • Where can I find my IMAP  Path Prefix for MAIL?

    I am unable to send mail from my IMAC OS X v 10.6.8. I use Airport Extreme and Use a WiFi Network.  This only happened recently but whenever I try to sent a message it says "Can't send message using the server smpt.aol.com" This is what I use and if

  • Restrict duplicate condition type in va01

    Hello Experts. I want to restrict user from entering duplicate condition types in tcode va01, how can I go about it? Is there any user exit or BADI available, if yes please let me know how to go about it Thanks in Advance...

  • XML version attribute

    I am writing java through lotus notes. In it I go out and hit a web service and return the xml data. Once in the xml I use a transformer but I get the following error: javax.xml.transform.TransformerException: stylesheet requires attribute: version T

  • .mts file unsupported compression type

    This is the error that I get when I try and upload a .MTS file to CS 5.5. I have CS 5.0 on another machine, and I am able to load them fine. I have ran the Adobe Creative Suite Cleaner Tool and I have the latest Quicktime 7.7 with the H.264 Codec. I

  • Intercompany STO with CIN

    Dear Gurus,                    I am facing a genuine problem, am not sure whether you have faced the same problem in your company. we are running on a global system, by taking this advantage our India company will use intercompany STO for importing t