how to user Coolite.Ext.Web.Button in new 1.0 version

  1. #1

    how to user Coolite.Ext.Web.Button in new 1.0 version

    Hello All,
    we were using 0.8 version of coolite in that i have created buttons using following syntex
    Coolite.Ext.Web.Button objButton = new Coolite.Ext.Web.Button();
    and added to Accordion.
    i am using Ext.Net.Button objButton = new Ext.Net.Button();
    but this is giving some wrong look and feel.

    so somebody please tell how to solve this problem

    Thanks and Regards
    Harshad Jadhav
  2. #2
    Hi,

    Button cannot be added as direct AccordionLayout item.
    Please provide test sample which demosntrates your scenario
  3. #3

    how to user Coolite.Ext.Web.Button in new 1.0 version

    Hi vladimir,

    Thankyou very much for your help. My problem is resolved now.

    I made some changes in my design code and problem is resolved.

    Previously i was using

    <west minwidth="225" maxwidth="400" split="true" collapsible="true">
        <ext:Panel ID="WestPanel" runat="server" Title="Main Menu" Width="180">
            <Body>
                <ext:Accordion ID="AccordionMain" runat="server" Animate="true">
                </ext:Accordion>
            </Body>
        </ext:Panel>
    </west>
    Now I changed it to

    <West MinWidth="225" MaxWidth="400" Split="true" Collapsible="true">
        <ext:Panel ID="WestPanel" runat="server" Title="Main Menu" Width="180" Layout="VBox">
        <LayoutConfig>
            <ext:VBoxLayoutConfig Align="Stretch" />
        </LayoutConfig>
            <Items> 
                <ext:Panel ID="Panel2" runat="server" Flex="1" Layout="Accordion">
                </ext:Panel>
            </Items>
        </ext:Panel>
    </West>
    and we are adding button in code behind

    Ext.Net.Panel[] objPanel1 = new Ext.Net.Panel[2];
    Ext.Net.Button objButton = new Ext.Net.Button();
    objButton.Text = "ProductName";
    objButton.Flat = true;
    objPanel1[0].ContentControls.Add(objButton);
    Panel2.Items.Add(objPanel1[0]);
    Thanks and Regards
    Harshad Jadhav
    Last edited by geoffrey.mcgill; Jul 08, 2010 at 6:09 PM. Reason: added code formatting and [code] tags

Similar Threads

  1. Upgrade to Coolite version 0.8.2
    By CasualXX in forum 1.x Help
    Replies: 1
    Last Post: Jun 10, 2010, 4:03 PM
  2. Replies: 3
    Last Post: Mar 14, 2009, 4:02 PM
  3. ExtJS Updates and Coolite's Version
    By davidhoyt in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 08, 2009, 3:49 PM
  4. [CLOSED] about coolite version v6.0 & v7.0
    By supermanok in forum 1.x Help
    Replies: 2
    Last Post: Dec 09, 2008, 2:10 AM
  5. [CLOSED] Coolite version 0.7
    By flaviodamaia in forum 1.x Help
    Replies: 1
    Last Post: Nov 27, 2008, 9:54 AM

Posting Permissions