Mar 01, 2010, 5:24 PM
[CLOSED] Images in SplitButton Menu off
Hi, the images in my splitbutton menu are off when migrating to V1.0.
See image for example...
function AttendeeList(toolbar, attendees)
{
var template = '<a target=\"_top\" href="../../ContactPage.aspx?id={0}">{1}</a><br/>';
var tmeplateUrl = '../../ContactPage.aspx?id={0}';
var rolesButton = toolbar.items.get(0);
rolesButton.menu = new Ext.menu.Menu({});
var attendeesArr = attendees.split(',');
rolesButton.setText(attendeesArr.length - 1);
if (attendeesArr.length - 1 > 0)
{
for (x = 0; x <= attendeesArr.length - 2; x++)
{
var dt = attendeesArr[x];
var d = dt.split(':');
rolesButton.menu.addMenuItem({
text: String.format(template, d[0], d[1]),
url: String.format(tmeplateUrl, d[0]),
icon: '../../images/user.png',
handler: function(item)
{
window.parent.location.href = item.url;
}
});
}
}
else
{
toolbar.destroy();
}
}
Grid Panel that calls method: <ext:GridPanel ID="GridPanel1" AutoDataBind="true" AutoExpandColumn="Title" runat="server" height="650" StripeRows="true" TrackMouseOver="true" StoreID="Store1" header="false">
<LoadMask showmask="true" />
<ColumnModel id="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="Title" Header="Title" Width="200" Sortable="true" DataIndex="Title">
<Renderer Handler="return '<div class=rowCrmTitle>' + record.data.Title + '
';" />
</ext:Column>
<ext:CommandColumn Header="Attendees" Width="50">
<Commands>
<ext:SplitCommand StandOut="false" >
<Menu>
<Items>
</Items>
</Menu>
</ext:SplitCommand>
</Commands>
</ext:CommandColumn>
<ext:Column ColumnID="CallType" Header="Call Type" Width="50" Align="center" Sortable="true" DataIndex="CallType">
<Renderer Fn="GetCallIcon" />
</ext:Column>
<ext:Column ColumnID="StartDateTime" Header="Start" Width="80" Sortable="true" DataIndex="StartDateTime">
<Renderer Handler="return FormatDate(record.data.StartDateTime);" />
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>