ADG/DataGrid prevent render even from firing immediately on property

Hi,
Is there any way to tell the ADG to not re-render itself immediately after a
propertyChanged even has been fired in the dataProvider?
I have quite a wide row (lots of cells) and lots of custom logic that updates
these dependent properties on each row. i.e. calculated columns. I am doing the
calculations at dataProvider level vs labelFunctions. On each "set" function of
one of my cells in the row I raise a "propertyChanged" event if the value was
changed. Tracing through what the ADG is doing I'm finding that its re-rendering
each time I raise this event even if its in the same row. Is there any way to
tell the ADG to wait a few milliseconds in case another propertyChanged event
comes in so as to render once instead of 10 times?
If there is no ADG option what is the best pattern for this assuming I want to
do this in my underlying dataprovider objects. Should I raise custom events and
fake a itemUpdated once I know there are no more changes? I don't see a clean
way to do this however since I never really know when I'm done, and using a
timer or something of this nature seems like a major hack.
-Tom
Rest of discussion from FlexCoders ...
Re: ADG/DataGrid prevent render even from firing immediately on propertyChange
You might try enableAutoUpdate and disableAutoUpdate on ICollectionView, not
sure if that has the desired affect or not.
You could also put custom events in your model objects and manually dispatch
collection events or call explicitly tell the grid when to update.
By "explicitly tell the grid when to update" do you mean manually calling
itemUpdated at the View level?. If so does the grid actually "know" to re-render
only that updated row? It seems to me that it always re-rendered all visible
cells regardless of what was changed. So passing null or a real row into
itemUpdated has the same results.
Also if I am to manully dispatch propertyChanged from my row, and I never really
know when I'm done updating all of my dependant cells is there any good way to
do this. i.e. Cell A update cell B and cell B update updates cell E, and this
can go on indefinatley. By catchign all property changed events at Row level and
using a timer of say 50ms i would almost guarantee that I wouldn't rethrow more
than a single propertyChanged event on any of the updated cells in a row. Do you
think there is a better way to do this?
Follow up finding,
Do 10 propertyChanged events from my dataProvider cause grid to refresh once or
10 times? My most recent observations show that it's just once, though for some
reason the first load invokes my labelFunction 3 times. Is there any point in
using enableAutoUpdate if grid appears to be 'smart' enough?

>>And what about the the most important question, how exactly is TableAssetsViewSource defined in the XAML markup and what is
its Source property set or bound to? And what about the reproducable sample...?
Here is the Markup of the TableAssetsViewSource:
<Page.Resources>
<local:RETAILISOAMDDataSet x:Key="RETAILISOAMDDataSet"/>
<CollectionViewSource x:Key="TableRegionsViewSource" Source="{Binding tableRegions, Source={StaticResource RETAILISOAMDDataSet}}"/>
<CollectionViewSource x:Key="TableLocationsViewSource" Source="{Binding tableLocations, Source={StaticResource RETAILISOAMDDataSet}}"/>
<CollectionViewSource x:Key="TableAssetsViewSource" Source="{Binding tableAssets, Source={StaticResource RETAILISOAMDDataSet}}"/>
</Page.Resources>
The ItemsSource of the DataGrid is bound to the TableAssetsViewSource:
<DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
Just remember, this code was auto-generated with the drag & drop onto the Page, so I did little in terms of setting the actual bindings.
All in all, what I have done so far works as intended, except that when I want to add a row to the table it does not reflect, and that it only shows after refreshing/restarting the application.
I will try and put together a reproducable sample.

Similar Messages

  • Ole web browser, prevent F8 key from firing

    Hi all,
    I have added an OLE Web Browser control to a window in PB11.2 and load a PDF document.  This works fine.
    But I want to prevent the user from pressing F8/right-clicking within the ole.  Because doing so allows the user to see the adobe reader toolbar (F8) / context-menu (right-click) which allows him to other stuff (save/print) which we dont want the user to do.
    I have been able to prevent the user from right-clicking inside the ole control via the following code (in "other" event):
    IF wparam = 516 THEN
        //disable right-click
        ole_control.POST SetFocus( )
    END IF
    However, am unable to prevent key event from being fired inside the ole control.  Does any one have any ideas/suggestions?
    Thanking you in advance.
    Cheers,

    Hi Roland,
    Thanks for your reply.
    I have decided to stop trying these work arounds (disable right-click, F8, etc)...
    instead, I now generate the pdf (as read-only) by encrypting it thus automatically disabling the save/print/etc functionality from the adobe reader.
    unfortunately, the mail button cannot be disabled (no idea how? why?).  So, I leave it here...
    Best,
    -a

  • Foxfire is preventing a page from reloading even after I allow it. How do I stop that?

    I'm enrolled in an online business training program called Power Sellers College. In that site, there is a private messaging system that I may use to correspond with my instructor, other instructors, other students etc. This Private Messaging System refreshes itself automatically every 60 seconds. A bar from Foxfire appears that states "Foxfire prevented this page from automatically reloading" and further down the bar there is an "Allow" button and then an "x" in the top right corner. Even though I push the "Allow" button and the bar disappears, it immediately reappears stating the same thing. I'm not sure if I'm getting my messages or not because I have corresponded with my instructor this way before and I don't recall ever seeing that pop up message from Foxfire before until lately. I only ask this because this is the second time he has missed our scheduled phone appointment. The first time he didn't call me he said he had sent messaged to all his students cancelling all his appointments but I did not get one and I figured he had just missed me. Now this is the second time I've received no message from him or any other message from him or any other instructors and I'm wondering if it's because of Foxfire preventing anything from getting through. My question is : How do I stop Foxfire from preventing that page of refreshing itself even after I allow to do so?

    Did you disable that setting in Tools or Firefox > Options?
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    That setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.

  • Safari will not prevent search engine from providing suggestions, even though that block is checked in Privacy preferences.

    Safari will not prevent search engine from providing suggestions, even though that block is checked in Privacy preferences.

    I also seem to have having this problem, despite having checked the "prevent" option in Preferences. Typing words into the Safari search bar (NOT the Google search bar on one of Google's search pages) leads to suggestions being made:
    as well as connections being made to lhr14s21-in-f7.1e100.net:
    which http://66.161.36.140 suggests resolves to a Google IP address block.
    I'm using Safari Version 6.0.4 (8536.29.13) on Mac OS 10.8.3.

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • How to prevent a user from entering characters into a number field

    How do you prevent a user from entering characters like A or B into a field that is defined as a numeric field?
    Please note that
    - we use block validation (for other reasons)
    - we are not able to convert these numeric fields to character fields
    We want to avoid a user being hasseled with the FRM-40209 ... message.
    This message is
    - not very helpfull because it does not inform us what the problem field is
    - not suppressable
    Any hints ?

    I went back to the drawing board on this one.
    You are absolutely right : the message can be catched !
    By writing an on-error trigger you can check for the error number. Sadly enough my first attempt on this used the on-message trigger which never fired hence my desperation.
    Anyway, the on-error trigger in combination with :SYSTEM.CURRENT_ITEM or :SYSTEM.TRIGGER_ITEM enables me to display a more meaningfull message to my users.
    Thanks for the hint.

  • I don't want to have to click the allow button every 3 seconds uploading video, how do I disable the "firefox prevented the page from reloading" when I've already put the site on my exceptions list?

    I begin uploading video to Facebook and a small window opens to show the progress bar but, the video stops uploading about every 5% when a notification comes from the top bar stating: "Firefox prevented the page from reloading" with an Allow button on the right. Regardless of clicking the allow button and putting Facebook in every exception list Firefox options seems to have or even turning pop up blockers off, that dam button keeps coming! How do I prevent or disable this?
    I am running windows XP media center edition SP2, and have Firefox v3.6.11

    You're welcome

  • Can't prevent unwanted toolbar from loading in Acrobat Pro 9

    I downloaded an evaluation copy of EverMap AutoBookmark plug-in.  I prefer not to automatically open toolbars that I don't use regularly when first opening Acrobat, but I can't keep the AutoBookmark toolbars from loading, even if I uncheck those particular toolbars.  EverMap support claims that it is a problem in Acrobat.  I have also had the same issue with a free plug-in from the Acrobat for Legal Professionals site. Plug-ins work fine, but I can't prevent the toolbars from loading on startup.
    Anyone else experience this issue?

    Sometimes it is simplest to simply enter the Acrobat folder and move the plugins that are a problem. Just copy then to a backup so you can put them back when you need them. I think that the presence or absence of the plugins is all that Acrobat needs.

  • How can i prevent my pro from over heating?

    How can i prevent my pro from over heating?

    Don't use the computer in your lap, or on a blanket or pillow. The case bottom is part of the heat dissipation system so it needs air underneath. If you must use the computer in your lap, get a lapboard. There are cheap, even more so if you make one yourself.
    If the computer is a older MBP with silver keys, avoid "clamshell" mode when using an external monitor. Those models let a lot of heat escape through the keyboard. The black-key Unibody versions don't seem to rely so much on the keyboard as a vent.
    Like eww said, what feels hot to you may not threaten the computer's well-being. Get a temperature monitoring utility. I like this one:
    http://bresink.com/osx/TemperatureMonitor.html
    It runs politely in the background and puts the readout in the menubar:
    so you don't have to invoke Dashboard like some other temp monitors require. As Dashboard loads all its widgets as soon as it's invoked, the extra widget processes can run up the temps and you don't get a true average use temp.
    If you use Dashboard a lot, those processes stay active after the first launch and can eat processor cycles as well as increase temps. I use DashQuit, a widget that shuts down Dashboard when I'm done without requiring a computer restart. It's here:
    http://www.apple.com/downloads/dashboard/status/dashquit_berenguierduncan.html

  • When loading a new site using Firefox, why do I get a message that tells me that "firefox prevented this page from automatically directing to another page. Allow?"

    When loading a page using Firefox, at the top of the page, I get a mesage telling me "Firefox prevented this page from automatically redirecting to another page - Allow?" This happens almost every time I begin a new page and Firefox will not allow the page to continue uploading. I have to tell it to allow every time, even on pages I've 'allowed' in the past.

    The Redirection option is an Accessibility feature for people with Disabilities so that they will know when a page is going to be reloaded. It is not a Security feature.
    IF you still want it, click '''Firefox''' button and click '''Options''' -> Advanced -> General -> place Checkmark on '''Warn me when websites try to redirect or reload the page'''
    -> Click OK on Options window -> Restart Firefox

  • My preferences allow pop-ups and yet when I try to generate a letterfrom an online database I'm using for work, FifreFox "prevents po-ups from this site" Why?

    I need to access an online database to generate letters for an assigned project. I click on the appropriate link to generate letters, the file is conveyed to my downloads, and I open it using Adobe to create a pdf. This worked fine for the first 5 letters. When I tried to generate the 6th, a yellow banner appeared informing me that "FireFox prevented this site from opening a pop-up window" which prevented me from getting the letter into downloads to open in Adobe. Even though I don't have the pop-up blocker on, I clicked on preferences and found the site in question already listed as allowed. Why is this happening? How can I continue my work?

    * Go to your concerned website
    * Right-click empty space within the page and click '''View Page Info'''
    * In the '''Page Info''' window, select the '''Permissions''' panel
    * Under '''Load Images''' , '''Open Pop-up windows''', '''Set Cookies''' -> place/Remove Checkmark from '''Use Default''' and change the setting to '''Allow'''
    * Close the Page Info window
    Check and tell if its working.

  • Preventing the User from going back to the main page after logging out.

    Hi all,
    In my project I want to prevent the User from going back to the Main page, by clicking the back button of the browser, after the user has loggged out.I had invalidated the session so the user will not be able to do any operations, but he can vew the infos. I want to redirect to the login page if the user tries to go back using the back button after he has logged out.
    I tried the same in this forum after loging out. Surprisingly it is the same. I can browse through all the operations i did even after logging out from here.
    Is it not possible to do that in Servlets?Could somebody help?
    Thanks,
    Zach.

    Hi,
    You can use a servlet filter to do this , as it can interceptany request to your application you can decide to allow user access or not to any page/servlet.
    public class Test implements Filter{
         public void destroy() {
         public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException,
                   ServletException {
              System.out.println("filter");
              HttpServletRequest request = (HttpServletRequest) arg0;
              if(!request.getRequestURI().contains("index")){ // set condition that will be checked to verify if the user is logged in
                   System.out.println("redirecting ... ");
                   RequestDispatcher d = arg0.getRequestDispatcher("/index.jsp");
                   d.forward(arg0, arg1);
              arg2.doFilter(arg0, arg1);
         public void init(FilterConfig arg0) throws ServletException {
    }in you web.xml add :
    <filter>
              <filter-name>test</filter-name>
              <filter-class>test.Test</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>test</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>

  • BCM 2007 error: "To help prevent malicious code from running, one or more objects"

    Recently we changed our e-mail accounts around to a new domain name. After this switch, BCM no longer allows adding, editing or any other manipulation of contact records. I get an error message saying "To help prevent malicious code from running, one
    or more objects in this form were not loaded."
    I have tried clearing the forms cache, uninstalling and reinstalling BCM and even adding the old e-mail address back into the Outlook profile and nothing works.
    Is there something I have missed somewhere or am I looking at a complete reinstall of Outlook and BCM?
    Jon

    Hi Jon
    Thank you for the update.  It could be another Active X Component - BCM 2007 calls several of them
    On thing you could do is run a Process Monitor Log to see if perhaps another component is Blocked. To do that try the following:
    1. Close Outlook and as many other programs as possible
    2. Download and Extract Process Monitor from here -
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    3. Start Process Monitor
    4. Start Outlook
    5. Reproduce the error in BCM
    6. Stop Process Monitor by going to the File menu and unchecking "Capture Events"
    At this point you can try filtering by clicking the Filter Icon (the Funnel) on the menu bar.  Click on the Left Drop down at the top of the Dialog and Select "Path"
    For the second dropdown select "Contacts" and then filter on "ActiveX Compatibility" (without the quotes)
    in my lab, every GUID under HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility came up with a result of "Name Not Found"
    On your system, are there any are present (the Result Column will show "Success")?
    If so, then I would check the Compatibility Flag for that one (Hint - if you right-click on an Entry you can select "Jump To" to open Regedit to that location)
    - or -
    If you would like for me to take a look at it, in Process Monitor Go to the File > Save Menu and save it as a .PML file. Then send it to me at cts-larrymei at live.com
    Note - Please ZIP the file prior to sending it
    Thanks!
    Larry - MSFT
    Larry Meinstein

  • Windows 7 "a patch is preventing the system from starting" error code 0x490

    I have a Windows 7 machine.
    It was working fine.
    Now it will not boot.
    When I try system repair, it says:
    Root cause found
    A patch is preventing the system from starting.
    Repair action: System file integrity cheack and repair
    Result: Failed. Error code 0x490
    I have tried doing safe mode, last known good configuration etc and nothing works
    Also, I tried to restore to an early checkpoint, but it claims that none exist, even thought I know we save restore points.
    Please advise?

    "I suggest running Command Prompt from the repair menu and then Check Disk:
    1. Insert the Windows 7 Disc and boot from it.
    2. In the recovery menu, choose Command Prompt .
    3. Type the following command and press Enter:
    Chkdsk /r /f
    Please also try the following commands and press Enter at the end of each line:
    Ren C:\Windows\winsxs\pending.xml pending.old
    Ren C:\windows\SoftwareDistribution SDOLD
    Regedit.exe
    When the register editor opens, please navigate to the following key:
    HKEY_LOCAL_MACHINE\COMPONENTS:
    * High light the COMPONENTS key. Please check if the following values exist in the right pane:
    AdvancedInstallersNeedResolving 
    PendingXmlIdentifier
    * If so, please right click on them and choose Delete them. Confirm the operation.
    * Restart the computer."
    Quote from : Vivian Xing
    http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/227bcd32-f0dd-4aab-942e-07e0cadec083

  • Can you prevent Apple TV from connecting to the internet?

    Is there a way to prevent Apple TV from updating and connecting to the internet? My internet is metered and slow, and I just use the AtV to mirror my itunes and stream content from my computer. I do not need the AtV connecting to the internet to load previews, pictures of newest tv shows or even genius recommendations.

    The main problem is that for protected content in iTunes AppleTV sometimes needs to get a playback authorisation across the internet.
    I've never quite figured what triggers this but it's often when content is new and hasn't been played on the computer before.
    I took AppleTV, iPad and MacMini on holiday where I had no internet access and created a LAN without internet.
    It was impossible to Airplay protected content from the iPad but 90% of the protected content in itunes on teh Mac Mini would stream and play - some new kids shows I purchased and had not played before would not stream.
    Don't suppose you can connect the computer direct to AppleTV via ethernet and see if that lets you stream and play without internet connectivity?
    Alternatively can you seletively turn off your router at times to avoid AppleTv connecting - that usually makes it only display Computers (iTunes streaming locally) and Settings as teh other icons are generated dynamically depending on availability tested via Apple's servers.
    AC

Maybe you are looking for

  • How to make JDS confirm file deletion?

    I use the bash shell when logged in over SSH and I always set the following alias just in case I do something stupid: alias rm="rm -i"Is there a similar setting for JDS that I can tell it to confirm file delete whenever I try to delete a file (i.e. p

  • Alias the column name

    Hi all, I want to alias the column name form Location to "Location Name". say for example: select location_name as Location Name from Location_table; i know that the above query will give erroe. here initially my column name is Location_name, but i w

  • 1024 768

    Hello Is it possible to make a video ouput with 1024/768 not 1440 1080 in premier element 8 Thank you for help Philippe

  • Error in JSPDYNpage component

    Hello everyone,                       I am developing an application which involves a JSPDYNpage component and 2JSP files.......when i run the application i am gettting the error as follows Portal Runtime Error An exception occurred while processing

  • Prime Infra 2.1, AP Auto Positioning

    Hi Forum, Ive a situation that our site needs to assign the AP (Access Point) into the existing NMS (Prime Infrastructure 2.1). ive already built the floor as the figure below. so ive many AP on site, how could I make it auto positioning. because, it