How to force datagrid headerRenderer to redraw itself?

Hi guys,
    I had datagrid headers that blinks however, I want to turn the blinking off by assigning a new value of a property inside the headerRenderer. The newly assigned value is indeed stored in the property. But my problem is how to force this headerRenderer to redraw itself so it will execute the "override public function prepare(hasBeenRecycled:Boolean)" function as it has the condition that turns the blinking on or off.
Any ideas?
I had this worked but I have to get all the columns object and assign it to an arrayList then set the datagrid's columns to null and apply the arrayList. This works so perfectly in turning on or off the blinking. But this also scrolls up the datagrid back to top which I don't want to happen in my case.
Ideas are much appreciated.
Thanks in advance.

Flex harUI wrote:
I would move the blink logic to a shared function and have the renderer listen for a change event on some property and run that function.
Thanks for the idea. That indeed makes sense! However, how do I assign a new value to some property inside the headerRenderer when PropertyChangeEvent only supports collection classes and ObjectProxy?
example:
from
myHeaderRenderer.properties = {blink: true};
to
myHeaderRenderer.properties = {triggerObject.blink: true} // or triggerObject['blink']: true doesn't work either.
Unless there is a way for the headerRenderer to listen to a property change outside of itself (referencing to the parent objects)
OR
a way to call a function inside the headerRenderer from the main (parent) document.
Thanks in advance for your reply Flex harUl.

Similar Messages

  • Custom datagrid headerRenderer keeps redrawing

    I have two DataGrids.  One that uses default headerRenderers, and one that uses custom 'filterable' headerRenders for 5 of the column headers.
    Basically, the custom filterable headerRenderer is a VBox that holds a Label and a TextInput.  Typing in the textInput will hide items in that column that don't match the filter value entered.
    This issue is that each time I update these DataGrids' dataProvider, the DataGrid that employs the custom headerRenders flashes multiple times (redraws) which is very noticable -- it makes the page a little laggy.  If I override the 'data' setter and place a breakpoint in the custom headerRenderer, I see it is getting hit a ton of times! (even if there is only like 1 item in the data grid!) why is that?
    How can I stop this redraw from occuring?  Can I stop the custom headerRenderer from calling the data setter? I tried overriding the data setter, placing only a return in the method --- that didn't seem to help.
    Any suggestions?
    thanks,
    Muad'Dib

    sorry for the late response pml...
    Yes, I did get this fixed. I wish I could say it was an easy fix to find! but it wasn't!
    Basically, I had to keep the 'state' (data members I wanted displayed by the headerRenderer) of the renderer within the parent DataGrid component. I did this by:
    1) Creating necessary headerRenderers using the ClassFactory (instead of inline MXML -- you can make the call to create the headers on the DataGrid's creationComplete event).
    2) setting ClassFactory 'property' to an array of objects that map the headerRenderer to the Object that hold's it's 'State'.
    3) overrode initializationComplete() method of headerRender and placed any initialization code here (in lieu of the 'data' setter).  This was where the implementation that actually does the mapping to the Object that holds this render's 'State' is done, based on the data that was placed into the 'properties' field from step 2.
    here's a brief example:
    DataGrid
    ========
    <mx:Box styleName="BoxContent" width="100%" height="100%">
        <mx:Script>
            <![CDATA[
                    public var greeting:String = "hello";
                   public function createCustomHeaders():void {
                         // create a factory that can produce your custom header
                         var customRendererFactory:ClassFactory = new ClassFactory(MyCustomRendererClass);
                         // set the properties of the factory to hold a reference to data
                         // in THIS class (Box)
                         customRendererFactory.properties = {stateHost: this, stateProperty: "greeting"};
                         // set the data grid columns renderer now...
                         dgc1.headerRenderer = customRendererFactory;
                }]]>
         </mx:Script>
         <mx:DataGrid id="dg" dataProvider="{_myData}" creationComplete="createCustomHeaders()">
            <mx:columns>
                    <mx:DataGridColumn id="dgc1"
                        textAlign="center"/>
            </mx:columns>
         </mx:DataGrid>
    </mx:Box>
    Renderer
    ========
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%">
    <mx:Script>
    <![CDATA[
        // reference to object that will hold any necessary state information
        public var stateHost:Object;
        public var stateProperty:String;
                private var _greeting:String;
                private var _greetingUpdated:Boolean;
    override protected function initializationComplete():void {
    if(_greeting != stateHost[stateProperty]){
                        _greeting == stateHost[stateProperty]);
                        _greetingUpdated = true;
                        invalidateProperties();
    override protected function commitProperties():void {
                    super.commitProperties();
    if(_greetingUpdated){
    myLabel.text = (null != _greeting) ? _greeting : "";
    ]]>
    </mx:Script>
        <mx:Label id="myLabel" width="100%"/>
    </mx:VBox>

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • How to force refresh of data through browser or PDF?

    We have the dashboard set to refresh every minute.  We are pulling the data using XML from DB.  When we are in browser and clear the browser cache and then reload the .swf... the data is updated.  We haven't been able to figure out how to force the cache-clear and data refresh with either swf or pdf.
    Your help is greatly appreciated.

    Hi Jeff,
    Is the XML coming from a web page or a web server?
    If yes then you can give this a go. To stop the caching mark your web page with extra tags to say it has expired.
    HTML page example:
    <HEAD>
        < META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
        < META HTTP-EQUIV="EXPIRES" CONTENT="0" />
    </HEAD>
    JSP example:
    <%
      // Stop Internet Explorer from caching the results of this page.
      // We do this so that every time Xcelsius calls this page it see the latest results.
      response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
      response.setHeader("Pragma","no-cache"); //HTTP 1.0
      response.setDateHeader ("Expires", 0); //prevents caching at the proxy server 
    %>
    Regards,
    Matt

  • How to force a new password in portal with LDAP user? external users

    With an external portal (used by agents that do not work for you or reside in your office), company policy is for password to be changed every qtr.
    If the users are creating as LDAP users how to force them to change their password when required?
    Is this a custom application that needs to be written so when they log into the portal if the qtr has expired the portal ask them to enter a new password that becomes valid for the next qtr.
    Versus internally deleting and emailing all the users a new password?

    Hi Glenn,
    We are getting one problem when we are creating user in LDAP and login with that user in  Portal that time we are getting Password change screen , but when we create a user in LDAP and change the password of that user in LDAP then when the user tries to  Login to portal that time we are not able to see the password change screen.
    But again if we change the password of that user through Portal we are able to see change password screen.
    can you help on this how we can force the user to change password when we are changing password in LDAP or in SAP System.
    Regards
    Trilochan

  • How to get the current executing file/itself absolute directory?

    hellooo,
              gentlemen/lady, how to get the current executing file/itself absolute directory?
              thanks
              

              Hello,
              you can get the real path information of the JSP through the servlet context:
              http://java.sun.com/products/servlet/2.2/javadoc/index.html
              javax.servlet
              Interface ServletContext
              Method getRealPath
              Christian Plenagl
              Developer Relations Engineer
              BEA Support
              [email protected] (alex mok) wrote:
              >hellooo,
              >
              >gentlemen/lady, how to get the current executing file/itself absolute
              >directory?
              >
              >thanks
              

  • Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install.

    Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install?  Scanner is recognized by and works fine in Windows.  Acrobat however still sees Fujitsu fi-6130dj #3.  I need it to see Fujitsu fi-6130dj which is what is listed in Device Manager.  (Windows XP SP3).
    Thank you for any suggestions.

    To provide more detail and list what was done to resolve the issue but there may be a better way.
    Background.  When you install a USB device to a PC it is listed in Windows Device Manager as installed hardware.  If you take the USB plug for any device and plug it into a different USB port on the PC the PC will install drivers again for that device.  In Device Manager, if you set a system environment variable for device manager to show non-present devices you can see all of the times this may have occurred.  In this specific instance there were five installations in Device Manager for one piece of hardware, a Fujitsu fi-6130 scanner.  The first listing was Fujitsu fi-6130dj, then Fujitsu fi-6130dj #2, Fujitsu fi-6130dj #3 and so on.  Adobe Acrobat only saw the third instance of these drivers being installed.  Once I cleaned Device Manager of all Fujitsu scanner installs I was able to have a single set of drivers installed for this Fujitsu but Adobe still recognized the third instance of the driver install and I could not figure out how to force it to see what Device Manager was seeing, a single instance of the scanner being installed (with no #3 behind it).
    Steps performed to try to resolve.
    Repair install of Adobe - no luck - still sees the #3 instance of the scanner
    Deactivation, uninstall, reboot, reinstall, reactivation of Adobe - no luck, same behavior as above
    Complete removal of all scanner related software.  This included the ISIS drivers in Add/Remove Programs and all other related software.  This also included deleting the contents of the TWAIN_32 directory found within the root of the Windows directory and also included deleting the scanner from Device Manager.
    Rebooted.
    Reinstalled complete packages of both TWAIN and ISIS scanners - with the scanner disconnected.  Powered the scanner back on and let Windows install the drivers for the hardware.  Only at this point did Adobe see the new install of the Fujitsu scanner and no longer looked for the #3 instance of that scanner install.

  • How to force using the adobe reader to view the PDF by javascript / PHP / HTML?

    I use the standard way to embed a pdf to my website, however, when I open it the browser will choose the default pdf viewer instead of the adobe reader. I can change it manually by looking at the browser option but it would not be nice if the website visitor need to do this manually. So I would like to know how to force the browser to open the PDF in adobe by using some HTML header / javascript / php or any parameter in object tag. Thanks.
    <object id = 'zoomPage' type='application/pdf' data= '" + sourceFolder + "SingTao/2013/08/17/0/0/A/Content/pdf/pdf_" + currZoomPageNo + ".pdf#toolbar=1&navpanes=0&statusbar=0&messages=0&pagemode=read'><p>The PDF can not display</p></object>

    I know this problem related to the browser behaviour so I would target only :Chrome firefox and IE 9+ (it is ideal if IE8 can also adopt the solution) thanks

  • How to Force enable, silent updates for Adobe flash in windows 8

    How to Force enable updates, silently for Adobe flash in windows 8 using group policy?
    I have followed this Article:
    http://helpx.adobe.com/flash-player/kb/administration-configure-auto-update-notification.h tml
    http://gpyall.com/archives/disable-adobe-flash-updates-on-64-bit-windows-with-group-policy /
    This looks promising but not working.
    Also, I cannot even manually create a file, in Win 8  (C:\Windows\SysWOW64\Macromed\Flash)
    So how would group policy can put mms.cfg in this location with following vaule:
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1
    Thanks in Advance.

    You will find more information in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flas h_player_11_7_admin_guide.pdf

  • How to force my Web part to run regardless of users permissions

    I have created the following custom permission , which will allow users to Create items without being able to view,edit them:-
    $spweb=Get-SPWeb -Identity "http://vstg01";
    $spRoleDefinition = New-Object Microsoft.SharePoint.SPRoleDefinition;
    $spRoleDefinition.Name = "Submit only";
    $spRoleDefinition.Description = "Can submit/add forms/files/items into library or list but cannot view/edit them.";
    $spRoleDefinition.BasePermissions = "AddListItems, ViewPages, ViewFormPages, Open";
    $spweb.RoleDefinitions.Add($spRoleDefinition);
    $spweb.Dispose();
    then inside my "Issue Tracking List" i stop inheriting permission from team site , and i define the following permission for all users:-
    now users can add items and they can not view them ,, which is perfect :).
    But now i wanted to add a custom web part to my Create form which will hide certain fields if the user is not within specific group ,the web part looks as follow:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitors"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Title");
    titleField.Hidden = false;
    titleField.Update();
    myList.Update();
    // //web.AllowUnsafeUpdates = false;
    web.AllowUnsafeUpdates = false;
    then i deploy the web part and i add it to the Create form. but after doing so user are not able to create items and they will get the following error:-
    Sorry this site has not been shared with you
    so can anyone advice how to force my web part to run , without checking the users permissions or with minimal permssions ?

    in this case, use the elevated privileges to read/add/edit items with elevated privileges with below code.
    but make sure the page which you add this web part have at least read access to all user.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    // implementation details omitted
    More: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
    Bistesh
    Ok after adding :-
    SPSecurity.RunWithElevatedPrivileges(delegate()
    users with the following permissions can create items:-
    "AddListItems, ViewPages, ViewFormPages, Open";
    and they can not edit/read them, which is great. but i am facing a caching problem , because if user is inside the "Intranet visitor" he will be able to see Category field as mentioned in my code, but if i remove him from the "Intranet Visitor"
    he still can see the field,, although in the web part i specify not to display the Category column if the user is not inside the "Intranet visitor " group... here is my current code:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitor"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = false;
    titleField.ShowInEditForm = true;
    titleField.ShowInNewForm = true;
    titleField.ShowInDisplayForm = true;
    titleField.Update();
    myList.Update();
    web.AllowUnsafeUpdates = false;
    so can you advice please ? is this a caching problem, or once the user add at-least single item he will be able to see all columns ?

  • How to force CoreDump in the Kernel source code

    Hi,
    Anyone know, how to force coredump in the Kernel source code?. And also to collect all information related to CPU Registers, CPU IRAM, Cache Data and complete SDRAM content.

    pull your RAM out....
    Wouldn't recommend doing that really...... And why would you want to cause a kernel panic?
    EDIT: Spelling sucked...
    Last edited by crankyadmin (2009-09-28 22:02:14)

  • How to force digital input sample rate?

    Does anyone know how to force a Digital Input sample rate and/or tell Core Audio which conversion clock to use... internal or external? Apparently both things can be done from Pro Tools, but I don't have it.  My problem is locking onto an A/D converter's 48K Toslink output.  I can set 48K in 'Audio - Midi' setup and the audio is perfect, but a few seconds later  Core Audio returns to the default 44.1K.  I need to force it to stay at 48K, or clock on the signal rather than internal clock.

    Braver,
    Let me clarify a few things. First, the 6733 supports correlated digital I/O. This means that the digital operation does not have its own clock. You can correlate the digital operation with the AO clock, which will allow a digital operation up to the max AO rate. You can generate a pulse train with an onboard counter and use that as your digital clock source. Also, you can use a completely external clock source to achieve the max digital rate of 10MHz. The knowledge base, linked below, points you to a couple of examples that ship with LabVIEW. Be sure and read the documentation associated with each example.
    Knowlege Base
    As for
    the example CDI Single Point clocked by Counter (E).vi, notice how the output of...

  • How to force user to enter supplier/customer name in captial letters in R12

    Dear all,
    Could anyone pls advise how to force user to enter supplier/customer name in captial letters in R12? Can I do it using OA framework personalization?
    HY

    Pl post exact versions of OS and EBS.
    The ability to do this exists in forms (professional user interface) using forms personalization, but does not exist in the OAF (self-service) interface, AFAIK. See related MOS Doc 399892.1 (Is It Possible To Restrict Employee Name Entry To All Upper Case in the PUI And SSHR ?) for some details.
    Pl confirm by opening an SR with Support.
    HTH
    Srini

  • Reader XI & IE10 - how to force PDF's to be viewed in READER?

    I have NO Adobe add-on installed in IE10.  Updgraded from Reader 8.1 to Reader XI.  Under Reader 8.1 there was an option in settings to force PDF's to be opened in READER instead of IE.  Cannot find that option.  Went to Settings / Manage-Add-ons to disable Adobe PDF there, but it's not installed, so can't disable it.
    Any ideas on how to force PDF's to be opened in READER instead of IE10?
    Thanks!

    I do not quite understand your initial comment.  You write that you do not have the Adobe Reader add-on installed on IE10, yet PDFs open in IE?
    See this article how to enable viewing PDFs in a browser; you will have to do it the other way around to see the opposite effect: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • I need to know how to force a https redirect in Adobe Muse if this can't be done please tell me so I don't waste any more time... please

    I need to know how to force a https redirect in Adobe Muse if this can't be done please tell me so I don't waste any more time... please

    Protocol usage and redirects are a server-side thing. This has nothing to do with designing the web page and thus nothing with Muse, either.
    Mylenium

Maybe you are looking for

  • How can I remove my credit card or cancel my account?

    How can I remove my credit card or cancel my account?

  • I  can't sign up for iCloud

    Hi, I have an iMac 27" running Lion 10.7.4 + an iPhone 4S running 5.1.1 Now if i want to purchase anything on the app store or Apple store online, i'm obliged to sign in with my apple ID and Password, normal. But when i try to create an iCloud accoun

  • Migration from old MBA to new MBA.  Ethernet not coming up as an option, defaults to wifi

    Hello I'm using migration assistant to migrate all the data from my old MBA [Snow Leopard] to new MBA [Lion]. I've tried many times using different wireless connections and the process just hangs with 3 hrs, 50 mins left to run. Apple store bod advis

  • Lightroom gallery for Dreamweaver

    Hi, I've created and launched a website (www.milileitner.com) with dreamweaver (CS5.5) which contains an intended gallery section. Using forums and such like I have been able to create a gallery in Lightroom (3) and upload it to the hosting server. I

  • Creating a movie in widescreen format.

    Hello, I have a question, I'm hoping that someone can help me out. I have created a movie in iMovie, what I need is to create a file that I can transfer over to my PC and then play it on the PC. When I have done this, I have created a AVI file (4 min