logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Custom Icons in ToolCommands
Manoj Kumar P
#1 Posted : Friday, February 10, 2012 9:51:04 AM(UTC)
Rank: Advanced Member

Groups: Registered, Customer
Joined: 8/19/2010(UTC)
Posts: 56
Man
Location: Hyderabad

Hi Tansu,

Can we add our own custom icons/images in Widget ToolCommands?

Regards,
Manoj
Regards,
Manoj.

Reg. Name: [Interactive Softworks, Inc.]
berkay
#2 Posted : Friday, February 10, 2012 10:26:11 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hi Manoj,

You should make own custom theme to achieve this.

In sample application there is a sample.

firstly you should set custom theme attribute of dashboard framework section. | in sample application -> customThemesDirectory="~/CustomThemes/"

after that make your custom theme. | in sample application -> go CustomThemes directory in solution.

finally set your theme to surface | in sample application -> go defaultmaster.master.cs

protected override void OnInit(EventArgs e)
{
// set custom theme
if (!string.IsNullOrEmpty(WebConfigurationManager.AppSettings["CustomTheme"]))
Kalitte.Dashboard.Framework.ScriptManager.GetInstance(this.Page).CustomTheme = WebConfigurationManager.AppSettings["CustomTheme"];
base.OnInit(e);
}

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
Manoj Kumar P
#3 Posted : Friday, February 10, 2012 12:31:33 PM(UTC)
Rank: Advanced Member

Groups: Registered, Customer
Joined: 8/19/2010(UTC)
Posts: 56
Man
Location: Hyderabad

Hi Berkay,

My requirement is, I need to set my own image to the toolcommand which i created progammatically from the following event handler irrespective of the theme.

Ex:

protected void surface_WidgetPropertiesSetting( object sender, WidgetEventArgs e )
{
ToolCommand setPlaceHolderCommand = new ToolCommand( "SetPlaceHolder" );
setPlaceHolderCommand.CommandName = "SetPlaceHolder";
setPlaceHolderCommand.DisplayOrder = 4;

setPlaceHolderCommand.CommandIcon = ToolCommandIcon.Search; // Instead of hardcoded icons can i set my own icon here

setPlaceHolderCommand.MaskMessage = "Loading...";
setPlaceHolderCommand.Hint = "Filter Data";
if ( e.Instance.Editable == true )
{
e.Instance.ToolCommands.Add( setPlaceHolderCommand );
}
}

Regards,
Manoj
Regards,
Manoj.

Reg. Name: [Interactive Softworks, Inc.]
berkay
#4 Posted : Friday, February 10, 2012 2:53:29 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hello Manoj,

you can only use hardcoded icons. Ext.Net does not provide this feature.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


This page was generated in 0.061 seconds.