Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello
I am new to Sharepoint.
I have added an enum property to add a dropdown with static list items like this:
HTML
<pre> <Content Type="html" Src="~appWebUrl/Pages/xxxxx.aspx?{StandardTokens}" />

    <!-- Define properties in the Properties element.
         Remember to put Property Name on the Src attribute of the Content element above. -->
    <Properties>
      <Property Name="EnumProperty" Type="enum" WebBrowsable="true" WebDisplayName="AppPart Header Color" WebDescription="AppPart Header Color" WebCategory="AppPart Header Properties" DefaultValue="Blue" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem Value="Green" WebDisplayName="Green"/>
          <EnumItem Value="Blue" WebDisplayName="Blue"/>
          <EnumItem Value="Purple" WebDisplayName="Purple"/>
        </EnumItems>
      </Property>
    </Properties>

  </ClientWebPart>


I need to bind dynamic data/data fetched from API to be bound as enum items.The limitation I have is that I cannot use server-side code. Any solution is required to be done from Client -end only.
Any guidance will be appreciated.

What I have tried:

I have tried multiple solutions but no success and everywhere I found requires server-side code.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900