Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
UltraWebGridExcelExporter: export text instead of an image
posted

Hi Guys!

 

I have a UltraWebGrid which can also be exported into an excel.

At one Column I have a image inside.

When I am exporting the grid now, you can see the html-string inside the column instead of the image, like <img ..... />.

I found an event called CellExporting. Is it possible to check if the image column is just exported and replace the html string with a text?

I am trying like this, but I don't know you to continue:

    protected void UltraWebGridExcelExporter1_CellExporting(object sender, Infragistics.WebUI.UltraWebGrid.ExcelExport.CellExportingEventArgs e)
    {
        if ( ((UltraGridColumn)sender).Header.Title.Equals("Status") )
        {
                // how to replace the html-string with a text (active, inactive) and export cell to excel
        }
    }


I checked the forum here, but i didn't found a solution. Please help me.




 

Parents Reply Children