| |
Custom colors can be added to ColorPicker without default palettes.
Example code
<obout:ColorPicker runat="server" OnClientPicked="OnColorPicked" Id="picker" PickButton="false" TargetId="color" TargetProperty="style.backgroundColor" Width="160" CustomColorsOnly="true" > <asp:TextBox readOnly="true" id="color" style="cursor: pointer;" runat="server"/> <obout:CustomColors runat="server"> <Collection> <obout:CustomColor Value="TRANSPARENT" Title="transparent" /> <obout:CustomColor Value="#FFFF00" /> ... <obout:CustomColor Value="#FFFFFF" /> </Collection> </obout:CustomColors> </obout:ColorPicker>
See the full source code in /ColorPicker/aspnet_CustomColors_only.aspx file of downloaded Suite.
| | |
| "Since the birth of ASP.NET I have tried several components,
but your product is unquestionably the best collection of ASP.NET controls.
Absolutely great products!" |
Viggo Barbala |
| Norway |
| | |
|
|
|
|