Share my pleasure with you.

Page 1 of 2 12 LastLast
  1. #1

    Share my pleasure with you.

    hi,

    guys,thanks to the coolite team.I am very happy that I can do something with coolite component.the attachement pic is my production,share my pleasure with everyone.:)
  2. #2

    RE: Share my pleasure with you.

    very cool. how did u get the purple theme to work?
  3. #3

    RE: Share my pleasure with you.

    ok,I show my job.

    in Default.aspx,
    html:
    <ext:ComboBox ID="ddl_Theme" runat="server" Width="100px" 
                                            Editable="false" 
                                            ForceSelection="true">         
                                            <AjaxEvents>
                                                <Select OnEvent="SetThemeSession"></Select>
                                            </AjaxEvents>
                                           <Listeners>
                                                <Select Handler="ChangeTheme(#{CenterTabPanel},#{ddl_Theme});" />
                                            </Listeners>
                                            <Items>
                                                <ext:ListItem Text="Default" Value="" />
                                                <ext:ListItem Text="Slate" Value="ExtJS/resources/css/xtheme-slate.css" />
                                                <ext:ListItem Text="Gray" Value="ExtJS/resources/css/xtheme-gray.css" />
                                                <ext:ListItem Text="Black" Value="ExtJS/resources/css/xtheme-black.css" />
                                                <ext:ListItem Text="Calista" Value="ExtJS/resources/css/xtheme-calista.css" />
                                                <ext:ListItem Text="Chocolate" Value="ExtJS/resources/css/xtheme-chocolate.css" />
                                                <ext:ListItem Text="Darkgray" Value="ExtJS/resources/css/xtheme-darkgray.css" />
                                                <ext:ListItem Text="Green" Value="ExtJS/resources/css/xtheme-green.css" />
                                                <ext:ListItem Text="Indigo" Value="ExtJS/resources/css/xtheme-indigo.css" />
                                                <ext:ListItem Text="Midnight" Value="ExtJS/resources/css/xtheme-midnight.css" />
                                                <ext:ListItem Text="Olive" Value="ExtJS/resources/css/xtheme-olive.css" />
                                                <ext:ListItem Text="Peppermint" Value="ExtJS/resources/css/xtheme-peppermint.css" />
                                                <ext:ListItem Text="Pink" Value="ExtJS/resources/css/xtheme-pink.css" />
                                                <ext:ListItem Text="Purple" Value="ExtJS/resources/css/xtheme-purple.css" />
                                                <ext:ListItem Text="Slickness" Value="ExtJS/resources/css/xtheme-slickness.css" />
                                            </Items>
                                        </ext:ComboBox>
    client side script:
    <script language="javascript">
            var ChangeTheme=function(tabPanel,theme)
            {
                Coolite.Ext.setTheme(theme.getValue());
                tabPanel.items.each(function(el) {
                    if(!Ext.isEmpty(el.iframe)) 
                    {
                        el.iframe.dom.contentwindow.Coolite.Ext.setTheme(theme.getValue());
                    }
                });
            }
    </script>
    server side script:
    //  save the value to db.
        protected void SetThemeSession(object sender,EventArgs e)
        {
            OATheme.SetTheme(this, ddl_Theme.SelectedItem.Value);
        }
    
        //and initiate the theme
        protected void Page_Load(object sender, EventArgs e)
        {
            string myTheme = OATheme.GetTheme(this);
            for (int i = 0; i < ddl_Theme.Items.Count; i++)
            {
                if (ddl_Theme.Items[i].Value == myTheme)
                {
                    ddl_Theme.SetValueAndFireSelect(myTheme);
                        break;
                }
            }
        }
    in others pages' page_load method:

     
        protected void Page_Load(object sender, EventArgs e)
        {
            //select the theme from db and set the page's theme.
            OATheme.GetTheme(this);
        }
    hope this helps
  4. #4

    RE: Share my pleasure with you.

     here's mine, some prototype i produce to convince my boss about coolite, i used ADO.NET entity framework for data layer, i feel great to produce s'thing like this hahaha.... man, coolite rocks.
  5. #5

    RE: Share my pleasure with you.

    hi,

    guys,I can't open the attachments,why?i click the attachments then redirect to the http://forums.ext.net/.
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 2:59 AM.
  6. #6

    RE: Share my pleasure with you.

    Hi, i have the same issue. Anyone can help us?
  7. #7

    RE: Share my pleasure with you.

    Please ensure that you logged in when try to open attachments
    Vladimir Shcheglov
    Sr. Developer
  8. #8

    RE: Share my pleasure with you.

    thanks vladimir, that was the problem.
  9. #9

    RE: Share my pleasure with you.

    @aswad32 - Thanks for sharing your screen captures... your app looks great. Nice job!

    Geoffrey McGill
    Founder & CEO
  10. #10

    RE: Share my pleasure with you.


    Hello ,jachnicky !

    Are you Chinese? hehe, me too. Could you send something about your project to me? I want to study your good project! Thank you very much!

    This is my email: coolcode@live.com
    and my blog in China: http://blog.csdn.net/fengart

    Bruce
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Jun 11, 2012, 8:33 PM
  2. somebody can share a home page UI?
    By DanielXu in forum 1.x Help
    Replies: 4
    Last Post: Jun 19, 2011, 3:45 PM
  3. Combobox share Store
    By julienguill in forum 1.x Help
    Replies: 4
    Last Post: May 20, 2011, 10:22 AM
  4. Replies: 7
    Last Post: Mar 09, 2011, 8:15 PM

Posting Permissions