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
65
Webgrid Dropdown
posted

I have AllowRowFiltering turned on my grid. The dropdown looks fine for the first two columns as a single item shows up in the dropdown such as the Job No. or Completion Date from SharePoint.

 

My problem is the third column which has a combination of ‘colored icon + status’ as the data that it is pulling from SharePoint. Is there a way of manipulating that dropdown so that the dropdown in the third column shows just the status (New/In Progress/Completed/Not Applicable) part?

 

This is what my dropdown shows currently in the third column:

 

<img src=”..\..\Images\Networks.Job.PastDue.png”/>&nbsp;In Progress

 

<img src=”..\..\Images\Networks.Job.PastDue.png”/>&nbsp;New

 

<img src=”..\..\Images\Networks.Job.InProgress.png”/>&nbsp;New

 

<img src=”..\..\Images\Networks.Job. InProgress.png”/>&nbsp;In Progress

 

<img src=”..\..\Images\Networks.Job.Complete.png”/>&nbsp;Completed

 

<img src=”..\..\Images\Networks.Job.Complete.png”/>&nbsp;Not Applicable

 

(Please Note the COLORS are: PastDue.png is RED; InProgress.png is YELLOW;  Complete.png is GREEN)

 

Thanks in advance.

Parents
  • 28464
    posted

    Hello,

    I am not sure I understand the scenario, but are you trying to have the third filter dropdown display both image and text at once? Maybe you can embedding HTML directly in the FilterCollectionValue collection of the respective column, for example:

    column.FilterCollectionValues.Add("someValue","<img src='someImage.gif' /> New text");

    Is this what you are looking for, or I am missing something?

Reply Children