Sep 02, 2010, 9:21 AM
[CLOSED] Issues with Fieldlable in Coolite 1.0
Hi Team,
We are migrating our project from 0.8 to 1.0.while migrating we are facing fallowing issues.
1.FieldLable value is getting displayed everywhere.we tried with hidelable property ,it works fine but events are not getting fired.if we change fieldlabel tag to text everything works.We are using feildlabel for supporting multiple languages. Fieldlabel contains fixed strings and text contains language variant text.
2. in menuitem can we active item? Previously we could get it by menu.activeitem. We Want to avoid handler for each checkmenuitem.
We are migrating our project from 0.8 to 1.0.while migrating we are facing fallowing issues.
1.FieldLable value is getting displayed everywhere.we tried with hidelable property ,it works fine but events are not getting fired.if we change fieldlabel tag to text everything works.We are using feildlabel for supporting multiple languages. Fieldlabel contains fixed strings and text contains language variant text.
2. in menuitem can we active item? Previously we could get it by menu.activeitem. We Want to avoid handler for each checkmenuitem.
<ext:Menu ID="mnuTheme" runat="server" HideLabels="true">
<DirectEvents>
<ItemClick OnEvent="cbTheme_Change">
<EventMask ShowMask="true" />
<ExtraParams>
<ext:Parameter Name="selectedTheme" Value="hdnSelectedItem.getValue()" Mode="Raw">
</ext:Parameter>
</ExtraParams>
</ItemClick>
</DirectEvents>
<Items>
<ext:CheckMenuItem ID="CheckMenuItem1" runat="server" IconUrl="common/Images/Blue.png"
Group="theme1" FieldLabel="default" Handler="onThemeItemClick">
</ext:CheckMenuItem>
<ext:CheckMenuItem ID="CheckMenuItem2" runat="server" IconUrl="common/Images/light-blue.png"
Group="theme1" FieldLabel="blue" Handler="onThemeItemClick">
</ext:CheckMenuItem>
</Items>
</ext:Menu>
//script
var onThemeItemClick = function(item) {
switch (item.id) {
case "CheckMenuItem1":
hdnSelectedItem.setValue("default");
break;
case "CheckMenuItem2":
hdnSelectedItem.setValue("blue");
break;
}
}
Last edited by Daniil; Sep 03, 2010 at 6:26 PM.
Reason: [CLOSED]