refresh

How to refresh the DataSource on a WinForms DataGridView?

孤者浪人 提交于 2019-12-06 01:54:19
问题 I populate the GridView.DataSource from a EntityFramework Model: gwTimeLog.DataSource = _entities.TimeLogs; When a new row is added to the _entities, I try to update the grid (tried using the same statement as above, setting it null, then back to _entities.TimeLogs, etc...), but the grid simply won't update. Even though _entities.TimeLogs actually does contain the new rows. What am I missing? 回答1: OLD ANSWER: Did you try calling GridView.DataBind()? Woops, I thought this was a WebForms

How to refresh a panel after data is loaded?

不羁岁月 提交于 2019-12-06 01:35:39
问题 I have a extjs panel rendered inside a div like this: panel = new Ext.Panel({ layout : 'fit', renderTo: 'my_div', monitorResize: true, // relay on browser resize height: 500, autoWidth: true, items : [ centerPanel ], plain : true }); After the page has loaded the panel is empty, but when I resize the browser the contents appears by magic! I think the data has not finished loading when the panel is rendered the first time. How can I get the contents to show without resizing the browser? 回答1: I

Refresh tokens in oauth2 should not be replaced when getting a new access token

自作多情 提交于 2019-12-06 01:34:05
问题 Is the statement in the title correct? I'm basing the question on the work done by Taiseer Joudeh (thanks for your work on this subject, btw) at http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/. If I understand the behavior of refresh tokens correctly, when an access token expires, we should call the token endpoint of our auth server with something like 'grant_type=refresh_token&refresh_token=' + token and we will get back a new access

How to automate browser refresh when developing an Flask app with Python?

≯℡__Kan透↙ 提交于 2019-12-06 01:13:34
I've started learning Flask to develop web applications. What I am realy missing is an automatic Browser refresh after any code change (including static files, templates, etc.). This seems to be a standard feature in almost any Javascript framework. Frontend people have several terms for that: auto reload / refresh, hot reload / refresh (hotreload), live reload / refresh (livereload), ... Here on Stackoverflow most similar questions are related to the auto-reload of the Flask server (--> https://stackoverflow.com/search?q=flask+auto+reload ). J just want a simple browser refresh. I googled and

Refresh WPF-Control by code

假如想象 提交于 2019-12-06 00:32:07
I am trying to disable a button for denying a spam click on this button. I used a Refresh delegate to Render invoke the control but it appears as enabled. The connect()-Methode is taking about 4 seconds in witch the button is shown as enabled. Where is the problem ? public static class ExtensionMethods { private static Action EmptyDelegate = delegate() { }; public static void Refresh(this UIElement uiElement) { uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegate); } } private void buttonConnect_Click(object sender, RoutedEventArgs e) { this.Cursor = Cursors.Wait; buttonConnect

Refreshing an AngularJS and keeping scope variables

廉价感情. 提交于 2019-12-05 19:57:03
问题 Is it possible to keep variables on scope after refreshing my AngularJS page? How do I get this configured? Thanks! 回答1: There are several options to do this, For smaller data you could use the $cookieStore, for data that is under 4k Another option, especially with large data sets, would be to use Local Storage and then retrieve the data on page load/reload. if it is only a very small amount of data, or data that is used through out multiple page you could use $rootscope, but this is not the

Why do my Office 365 OAuth2 refresh tokens keep expiring so quickly?

爷,独闯天下 提交于 2019-12-05 19:42:40
I'm aware that the Office 365 refresh tokens expire when the user changes their password, but I'm seeing them expire almost weekly for my customers. Is there something I've misconfigured when setting up my OAuth2 app in Azure? Usually, the access token lasts 1 hours, the refresh token lasts 14 days. According to the document Authorization Code Grant Flow , the lifetime of refresh token varies based on policy settings . In this case, you may check the Azure AD policy settings. The lifetime of the refresh token is not provided and varies based on policy settings and the time when the

Refresh destination schema metadata in Integration Services

寵の児 提交于 2019-12-05 19:28:12
问题 I have been working on a huge ETL project with 150+ tables and during the design I had to make a major change on destination column names and data types for a couple of tables. My problem is that I can't get SSIS to see the new schema for the tables I changed. So I would like to know how can I get SSIS to refresh this schema? I find it kind of ridiculous that there no way to tell SSIS to update the metadata from database schema, especially for database migration. Recreating the project from

Refresh the page with javascript and GET variables

我的梦境 提交于 2019-12-05 19:10:15
<script type="text/javascript"> var email = document.write(localStorage.getItem('email')); var pass = document.write(localStorage.getItem('pass')); var url = document.write(document.URL); document.location.href = url+"?email="+email+"&pass="+pass; </script> But when I enter the page I left the url like this: http://example.com/ undefined?email=undefined&pass=undefined Not happening ... Anyone know the problem? Thank you very much! Well, what's up with document.write(…) in here? You don't want to print out anything: var email = localStorage.getItem('email'); But if you want to print out the

Refresh table control after action

断了今生、忘了曾经 提交于 2019-12-05 18:53:05
I have a screen with a table control in it (generated with the Screen Painter) that shows records from a database table. The screen also has a button, which shows a popup when it's clicked. The popup has a form to add a record to the database table. When the form is submitted the record is added to the database, but when the popup is closed, the screen that shows the database records isn't refreshed i.e. the new record isn't shown. Simply calling the screen again doesn't seem to work. How to refresh the table control to show the new record? You have to make sure that the data that you want to