Header renderer click handler not working

Hi All
Below is code of my header renderer which copied code from default headerrenderer and created new one, I added textinput with down arrow and close button,
But when i click on close button, I am making filter box invisible, If i put a break point inside griditemrenderer1_mouseOutHandler() function then filter box becomes invisible, but while running in debug mode without break point filter box shows visible only,
Please let me know where i am doing wrong.
<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer minWidth="21" minHeight="21"
                    xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    mouseOver="griditemrenderer1_mouseOverHandler(event)"
                    creationComplete="griditemrenderer1_creationCompleteHandler(event)">
    <fx:Declarations>
        <s:Label id="labelDisplay"
                 verticalCenter="1"
                 textAlign="start"
                 fontWeight="bold"
                 verticalAlign="middle"
                 maxDisplayedLines="1"
                 showTruncationTip="true" />
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import com.db.view.components.FilterPopup;
            import mx.managers.PopUpManager;
            import mx.controls.Menu;
            import mx.events.FlexEvent;
            import spark.components.gridClasses.IGridVisualElement;
            import mx.core.IVisualElement;
            import spark.components.DataGrid;
            import spark.components.GridColumnHeaderGroup;
            import spark.components.gridClasses.GridColumn;
            import spark.primitives.supportClasses.GraphicElement;
            // chrome color constants and variables
            private static const DEFAULT_COLOR_VALUE:uint = 0xCC;
            private static const DEFAULT_COLOR:uint = 0xCCCCCC;
            private static const DEFAULT_SYMBOL_COLOR:uint = 0x000000;
            private static var colorTransform:ColorTransform = new ColorTransform();
             *  @private
            private function dispatchChangeEvent(type:String):void
                if (hasEventListener(type))
                    dispatchEvent(new Event(type));
            //  maxDisplayedLines
            private var _maxDisplayedLines:int = 1;
            [Bindable("maxDisplayedLinesChanged")]
            [Inspectable(minValue="-1")]
             *  The value of this property is used to initialize the
             *  <code>maxDisplayedLines</code> property of this renderer's
             *  <code>labelDisplay</code> element.
             *  @copy spark.components.supportClasses.TextBase#maxDisplayedLines
             *  @default 1
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4.5
            public function get maxDisplayedLines():int
                return _maxDisplayedLines;
             *  @private
            public function set maxDisplayedLines(value:int):void
                if (value == _maxDisplayedLines)
                    return;
                _maxDisplayedLines = value;
                if (labelDisplay)
                    labelDisplay.maxDisplayedLines = value;
                invalidateSize();
                invalidateDisplayList();
                dispatchChangeEvent("maxDisplayedLinesChanged");
             *  @private
             *  Create and add the sortIndicator to the sortIndicatorGroup and the
             *  labelDisplay into the labelDisplayGroup.
            override public function prepare(hasBeenRecycled:Boolean):void
                super.prepare(hasBeenRecycled);
                if (labelDisplay && labelDisplayGroup && (labelDisplay.parent != labelDisplayGroup))
                    labelDisplayGroup.removeAllElements();
                    labelDisplayGroup.addElement(labelDisplay);
            private var chromeColorChanged:Boolean = false;
            private var colorized:Boolean = false;
            [Bindable]
            private var _filterVisibility:Boolean = false;
             *  @private
             *  Apply chromeColor style.
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                // Apply chrome color
                if (chromeColorChanged)
                    var chromeColor:uint = getStyle("chromeColor");
                    if (chromeColor != DEFAULT_COLOR || colorized)
                        colorTransform.redOffset = ((chromeColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
                        colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
                        colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
                        colorTransform.alphaMultiplier = alpha;
                        transform.colorTransform = colorTransform;
                        var exclusions:Array = [labelDisplay];
                        // Apply inverse colorizing to exclusions
                        if (exclusions && exclusions.length > 0)
                            colorTransform.redOffset = -colorTransform.redOffset;
                            colorTransform.greenOffset = -colorTransform.greenOffset;
                            colorTransform.blueOffset = -colorTransform.blueOffset;
                            for (var i:int = 0; i < exclusions.length; i++)
                                var exclusionObject:Object = exclusions[i];
                                if (exclusionObject &&
                                    (exclusionObject is DisplayObject ||
                                        exclusionObject is GraphicElement))
                                    colorTransform.alphaMultiplier = exclusionObject.alpha;
                                    exclusionObject.transform.colorTransform = colorTransform;
                        colorized = true;
                    chromeColorChanged = false;
                super.updateDisplayList(unscaledWidth, unscaledHeight);
             *  @private
            override public function styleChanged(styleProp:String):void
                var allStyles:Boolean = !styleProp || styleProp == "styleName";
                super.styleChanged(styleProp);
                if (allStyles || styleProp == "chromeColor")
                    chromeColorChanged = true;
                    invalidateDisplayList();
            protected function griditemrenderer1_mouseOverHandler(event:MouseEvent):void
                _filterVisibility = true;
            protected function griditemrenderer1_mouseOutHandler():void
                _filterVisibility = false;
            protected function griditemrenderer1_creationCompleteHandler(event:FlexEvent):void
                trace(label);
            protected function textinput1_clickHandler(event:MouseEvent):void
                var filterpopUp:FilterPopup = new FilterPopup();
                filterpopUp.filterColumn = label;
                PopUpManager.addPopUp(filterpopUp,this,false);
                filterpopUp.addEventListener("test",testHandler);
                filterpopUp.x = event.stageX - 50;
                filterpopUp.y = event.stageY + 10;
            protected function testHandler(event:Event):void
                owner.dispatchEvent(new Event("test"));
        ]]>
    </fx:Script>
    <s:VGroup left="7" right="7" top="5" bottom="5" gap="2" verticalAlign="bottom">
        <s:HGroup id="tiFilter" width="100%" gap="3" verticalAlign="middle" visible="{_filterVisibility}">
            <s:TextInput width="{labelDisplay.width + 20}" height="16" skinClass="com.db.view.skins.FilterTextInputSkin"
                          text="{label}" click="textinput1_clickHandler(event)"/>
            <s:HGroup id="closeBtn" width="15" height="15" click="griditemrenderer1_mouseOutHandler()"
                      buttonMode="true" useHandCursor="true" mouseChildren="false" keyDown="griditemrenderer1_mouseOutHandler()">
                <s:Image source="@Embed('/assets/images/icon_close.gif')"/>
            </s:HGroup>
        </s:HGroup>
        <s:Group id="labelDisplayGroup" width="100%"/>
        <s:Group id="sortIndicatorGroup" includeInLayout="false" />
    </s:VGroup>
</s:GridItemRenderer>

Hi Sudhir,
Thanks for posting your issue, Kindly find the code snnipet below to Add a new item in Custom list
public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    if (properties.List.Title
== "Test")
Get Properties
        string ABC=
properties.ListItem["Column"].ToString();
        string DEF=
properties.ListItem["Column"].ToString();
        DateTime XYZ=
(DateTime)properties.ListItem["Start Column"];
        DateTime WSD=
(DateTime)properties.ListItem["End Column"];
Create sub site
        SPWeb web
= properties.Site.AllWebs.Add(name.Replace(" ", string.Empty),
name,
            description, 0, SPWebTemplate.WebTemplateSTS, false, false);
        web.Update();
Also, browse the below mentioned URL to implementation your custom list step by step. and how you can debug your custom code.
http://www.c-sharpcorner.com/UploadFile/40e97e/create-site-automatically-when-a-list-item-is-added/
http://msdn.microsoft.com/en-us/library/ee231550.aspx
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh

Similar Messages

  • My left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    my left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    I recommend you to run Apple Hardware Test > http://support.apple.com/kb/ht1509 It's possible that something is damaged, and Apple Hardware Test will help you finding it. Make sure you tick the option to run an extended test, and connect your Mac to the charger.
    If your Mac came with DVDs, you have to insert the Mac OS X DVD to run Apple Hardware Test. As you haven't got the SuperDrive, you will have to buy an external optical drive

  • Right click is not working in Web dynpro explorer

    Hi All,
    I have SAP net weaver developer studio 2.0.9.
    when i right click on web dynpro components, to create a component, the context  menu is not coming, right click is not working.
    though right click works fine in diagram view and outline view.
    Please suggest what might have happened? and how to get back the settings.
    Cheers,
    Srini.

    Hello Srinivas,
    Try closing and opening NWDS. If you still see the same problem, simple solution for this is, Just Change Workspace to new folder.
    Changing workspace - Window -> Workbench -> workspace -> give new path.
    Close nwds and open it again. It should solve the problem.
    Thanks,
    Sridhar

  • My right click is not working. the context menu does not come up and i can no longer drag files/folders. I have checked the mouse and track pad in system preferences and the correct boxes are all checked (with a support member). Please can you help

    My right click is not working and producing the context menu or ability to drag files and folders. I just spoke with a phone support person and we checked that all the mouse/trackpad options for right click were correct and checked.
    Please can you help with this.
    It has only just happened in the last few days.
    Many thanks

    You might want to update your profile so that we can see what model iMac you have and what version of OSX you're running.
    For this question, it might help to know if you're dealing with a trackpad, Magic Mouse, or something else?
    (Until your issue's resolved, you can Control-Left Click to get the right click functionality).

  • Right click problem: I did not know about the Yahoo sidebar issue, I have removed all toolbars from my browser from 'view' menu. There is nothing in my 'extensions' to disable. Right click is not working. What to do?

    Right clicking is not working on any of the websites. I read up that it's a Yahoo sidebar issue. But, in my extentions, Yahoo sidebar is not there. I had removed all toolbars, but from 'view' menu. Now how do I get my right click to work?
    == This happened ==
    Every time Firefox opened
    == I've noticed it on 1 Aug 2010

    This is a user-supported board. You are not addressing Apple here. Nor is it a good idea to post your private information to a public forum. You should edit your post immediately.
    Unfortunately no one here can access your support history. You must respond to the emails directly.

  • In "Show more Bookmarks" if I right click does not work (I want to open in a new tab)

    This is using Mac Firefox current version. I use lots of tabs and don't have space for all of them so there is a >> at the right end for clicking and displaying the rest of them. If I click and display list and highlight one of them, the right click does not work - I want to open in a new tab not use the existing - there are no menu options displayed on these tabs. The tabs across the top work fine for this

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem.

    The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Control-clicking does not work in Finder

    Ever since installing the 10.4.5 update, control-clicking does not work in Finder. When I try to do it, Finder automatically restarts itself. This happens in any Finder window and on the desktop itself. Whether I am control-clicking an Application icon or trying to 'Get Info' on a file, Finder restarts itself. I repaired permissions and it did not fix the problem.
    Any idea on how to fix this? Thanks a lot!
    David
    Edit: Nevermind. I fixed it by deleting the JIMZip.plugin file in my Contexual Menu folder. I found the answer in another thread. I apologize for searching after I created this thread.

    David,
    Can you identify any corrupted or incompatible files in either your Macintosh HD/Library/Contextual Menu Items folder, or your Macintosh HD/Users/yourhomefolder/Library/Contextual Menu Items folder?
    If so you may be able to uninstall/reinstall the associated application.
    You may also consider temporary manual removal and isolation of the suspect file to verify CM functionality.
    ;~)

  • Hotspot Click is not working !!

    Hi,
    I have sucessfully implemented hotspot click using OOALV.
    I still have an issue in one of the hotspot click feature.
    I have a OOALV report where i have implemented hotspot click for Contract # as
    when 'KONNR'.
            if w_listdata-konnr <> ''.
              lv_konn = w_listdata-konnr.
              set parameter id 'VRT' field lv_konn.
              CALL TRANSACTION 'ME33K' and skip first screen.      
            endif.
    since ME33K transaction takes input of type 'EVRTN' ,i have taken a
    temporary parameter called lv_konn declared it as type EVRTN.
    But still the hotspot click is not working.
    Can anyone suggest me how to reslove this issue.
    Appreciate all the help.

    Hi Madan,
                  I will send a syntax for that check it once then ur problem is solved ok..
    FORM usercommand USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      CASE selfield-sel_tab_field.
        WHEN 'GT_HEADERDAT-EBELN'.
              code
          endcase.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
        i_callback_program             = sy-cprog
      I_CALLBACK_PF_STATUS_SET       = ' '
        i_callback_user_command        = 'USERCOMMAND'
      I_STRUCTURE_NAME               =
        is_layout                      = wa_layout
        it_fieldcat                    = gt_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
        it_events                      = gt_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
        t_outtab                       = gt_headerdat
       EXCEPTIONS
        program_error                  = 1
        OTHERS                         = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Award points if helpful.
    Kiran Kumar.G.A
            Have a Nice Day..

  • ODI 11g 11.1.1.7 with Win64 bit OS : Starange problem : Right click does not work for Create new data server in Topology.

    ODI 11g 11.1.1.7 with Win64 bit OS : Strange problem : Right click does not work for Create new data server in Topology.
    On right click nothing happens at all. I have  reinstall the ODI multiple times with right installer. issue persist.
    Please help.

    Hi,
    Did you use the generic installer or the win32 one ? You should use the former with Win64.
    You can also check that your version of Java is supported in the certification matrix.
    Regards,
    JeromeFr

  • Right-click funcionality not working in assessment mode. I NEED HELP!

    Hi - I've recently created a number of assessment recordings. The right-click function works as I'm recording as well as when preview the project and then after I publish it. However, when I give it to a colleague(s) to demo it, for some reason the assessment isn't recognizing her right-click and she gets stuck. We're both running the same IE, flash and windows versions so I am really a at a loss on this one. Has anyone ever encountered the same problem and if so what did you do to fix it?! Thanks a million!

    Check this out.
    http://blogs.adobe.com/captivate/2009/01/adding_rightclick_in_captivate.html
    somewhere towards the middle of the page @Mike says the following. Hope this helps
    quote
    Now when you run the movie in your browser, Right-Click is not  working...
    off course it will not work, as Right-Click uses Flash External  Interface, and this new path
    is not a trusted path by your flash player
    Solution : You need to add this new path to your Flash Player  security
    Scenario 2: You just shared your right-click movie folder over  the network ,
    say the new path for other users is   "\\your-machine-name\My-Right-Click-Movie"
    ( or "\\nework-machine-02\work\captivate-movies\My-Rihgt-Click" )
    and other users are complaining that , Right-Click is not  working...
    Yes once again the reason is same  and new path   "\\your-machine-name\My-Right-Click-Movie"
    ( or "\\nework-machine-02\work\captivate-movies\My-Rihgt-Click" )   in not a trusted path by
    other user's flash player
    Solution : other user need to add this path  "\\your-machine-name\My-Right-Click-Movie"
    into his Flash player security setting.
    How to add a path to flash player security setting?
    Check this URL :
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    unquote

  • OS X Lion secondary click is not working, any help

    Since I`ve downloaded Lion, the secondary click does not work, I can´t even select it on the trackpad window

    More details needed.
    Are you using an Apple mouse or a 3rd party mouse? Can you enable it in System Preferences > Mouse? Can you Control + click and get the menu like you would when you use secondary click?

  • Why is my secondary click is not working on the right?

    why is my secondary click is not working on the right?

    system preferences/Trackpad/point and click
    check and uncheck secondary click or alter method
    Try SMC reset
    http://support.apple.com/kb/HT3964
    Pram Reset
    http://support.apple.com/kb/ht1379

  • My iMac mouse right click does not work now

    Hi all,
    My iMac mouse right click does not work now.  It was fine a couple of days ago. 
    Right click is definitely enabled, I have checked it several times.
    A Google search revealed that in Firefox it could be that I'm not using the latest version of Firebug.  I have auto updates on and Firebug is the latest version 1.11.3
    I use right click for correcting spell checked words, instead of a suggested correct spelling I get the 'open in a new tab' menu.
    In Firefox when I right click to open in a new tab I get the menu but it does nothing.
    It is driving me mad
    Any help will be greatly appreciated,
    Thank you
    P.S. thought it was suddenly working when I did the spell check in this post but it was the left click doign it....

    I don't use Firefox so I can't test it, but it might be something to do with a preference setting. Have a look at this link (ignore all the instructions), just look at the image of the preferences, there appears to be a setting in Javascript preferences relating to contextual menus. Check to see what your settings are:
    http://stackoverflow.com/questions/16377381/disable-firefoxs-silly-right-click-c ontext-menu

  • I HAVE IMAC 27 INCH MY MOUSE RIGHT CLICK IS NOT WORKING PROPERLY .ANY ONE HAVE HIS PROBLEM

    I HAVE IMAC 27 INCH MY MOUSE RIGHT CLICK IS NOT WORKING PROPERLY .ANY ONE HAVE THIS PROBLEM

    Have you tried going to System Preferences>Mouse and making sure that right click is set to secondary click?

Maybe you are looking for

  • Display Incomplete - PSE 11

    Display  of PSE 11 is slightly too large to fit screen - any cure, please?

  • Date format in apex4

    HI How can i change the date foramt in apex 4 when i open the object browser and browse the table's data it display the date in this foramt 'MM/DD/YYYY', how can i change it to default database format 'DD-MON-YYYY' ? BEST REGARDS

  • Older and manually-added podcasts not in iTunes 7 Podcasts

    I recently upgraded to iTunes 7. For some of the older podcasts and ones that I have downloaded manually, they don't appear under the Podcasts icon in either the iTunes:Library:Podcasts or iTunes:Devices:<my iPod>:Podcasts. All these new and old podc

  • I have adobe reader 11 and it isnt working anymore

    I have windows 7 and my adobe reader isnt working anymore now that I have upgraded to the latest version. It opens the PDF up and then times out and says there is a error and the program is closing! I have tried repairing it and uninstalling it and t

  • Plz solve this simple problem.

    here is my program code: import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; public class Coordinate extends JApplet implements ActionListener { private JLabel lb1, lb2; private JTextField ta1, ta2; private String