RadGrid Export word highlighting

3 posts, 0 answers
  1. Corey
    Corey avatar
    8 posts
    Member since:
    Feb 2007

    Posted 20 Jun 2008 Link to this post

    I need to see if anyone has any input or help they can give me.  I am using the export capabilities of the RadGrid and it exports fine but I need to find out if I can get any word highlighting that I have built into the dataset to be exported through the RadGrid export functions.

    I am doing a regex search for words in a particular column in the dataset.  Then I wrap that text in a span tag with css to make word appear highlighted.  Then I bind it to the radgrid.

    I would have thought that since the datatable had the html within the column information before it is bound to the radgrid it would show up in the exported documents of at least Word or Excel, and hoped it would for PDF as well but it is not showing.  Does anyone have any thoughts or ideas I might try to fix this problem.


    Corey Hambrick
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jun 2008 Link to this post


    Try setting  the ExportOnlyData  property to false.

     RadGrid1.ExportSettings.ExportOnlyData = false

  3. DevCraft R3 2016 release webinar banner
  4. Daniel
    Daniel avatar
    4935 posts

    Posted 23 Jun 2008 Link to this post

    Hi Corey,

    Please take a look at the following article. It describes the way you can handle this case.
    Grid Export - Tips and Tricks

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top