I have been searching for awhile for a tutorial or anything, but cant seem to find anything. What im looking to to is in my web application build a progress bar similar to that in the window.form controls. Any help or any kind of direction would be very helpful. Im not looking for someone do it for me, just a link or some pointers of how to get started
A progress bar is a control that holds 3 major attributes : (you should look at System.Windows.Forms.ProgressBar to have an idea of what ProgreeBar are made of)
a minimum
a maximum
a value
you have to re-render asynchronously and regularly to update status of the control to the user.
Basically the only big difference from WinForms ProgressBar and Net.UI. Progreebar are the graphical control used to render the progress . So you could use a size fixed graphical control (e.g a label) and from min to max add some content in it.
In most cases it is not the value changed that raise an event to be handled , but handling an event that update the value of your progress bar. Look at the example in this page : http://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar.aspx
PS : It exists some (free or not) .NET ProgressBar like Neat Upload.
Have fun with it :P
In the design page(.aspx) you can use ScriptManager control and a UpdateProgress control that are under AJAX Extension category in the Visual Studio’s toolbox. You can use your own GIF file, as well.
You can check the below link:
http://www.webcodeexpert.com/2013/05/show-progress-image-using.html
Related
I believe I have seen this someplace before. I believe this is a way, based on knowing the text you are going to put in a control (say a label), that you can ask Xamarin Forms to tell you what the size of the control would be. If I recall correctly you used somaline like OnDevice and had to pass in the Text and the type of control. I just can't seem to find this now. Does anyone know if this is possible?
To be clear I am trying to address a defect in a third party control (SyncFusion DataGrid) I am using where the control is not sizing a grid column correctly. I was trying no to wait until the fix we released but I guess I will have to.
Syncfusion actually posted an updated that does finally seem to fix the problem of the columns not being sized correctly by width. I can't close this so I will just mark this as the answer.
For Syncfusion you can now do this:
mydatagrid.GridColumnSizer.Refresh();
mydatagrid.WidthRequest = mydatagrid.GetVisualContainer().ExtentWidth;
I want to have an ActivityIndicator that covers all controls, so the user cant click twice on the buttons. He have to wait for the loading to finish. For example, a login page in an app.
It could be something similar to this example on iOS http://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/
Thanks.
I'd recommend taking a look at Allan Ritchie's ACR Xamarin Forms library (available as a NuGet package). It has a Loading indicator that displays "above" the form and prevents clicking the underlying form elements.
I haven't tried this. But I might in a couple of days. But in the meantime I can give you my idea.
There is the absolute layout which you can make use of. Create a base page which is inherited by all your content pages and in the base page create the activity indicator with absolute position above. So all other controls falls under it. You can use the isbusy flag to notify property changes so that activity indicator is displayed and when the action is over set the flag to false and which in Turn will hide the activity indicator.
I had seen a sample somewhere which I will try digging up for reference. Probably in git.
For Reference
all. I have this little Problem and i'am looking for some help:
first I have a function which contains the following:
var point = new OpenLayers.Geometry.Point(imageConfig.XPos, imageConfig.YPos);
var imageFeature = new OpenLayers.Feature.Vector(point);
layers.imageLayer.addFeatures([imageFeature]);
So a point is be drawn on the layer. On this layer there is also an openlayers drag control. It is activated after the point was drawn. Now I can drag the point around. Works like a charm.
This is a little part of a user driven step by step procedure. So after dragging is done the next steps doing something with the point. While these other steps the drag control is deactivated. In the procedure it is possible to jump between steps so the de/activate of the drag control is needed. This works fine.
At the end of all steps the point is removed from the layer. Also this works great.
BUT: if I call again the function which draws the point on the layer (of cause now it is a new one) and activate the drag control I cant drag the new point any more even if I try to select the point with mouse click?!
I controlled with firbug:
feature is there
feature is on the right layer
control is there
control is on the right layer
control is activated
Maybe I' am missing a simple thing here. But I breaking my hed on this for two days now and can't find an answer.
By the way I found that in the first step sequence (when all works great) the controls feature property is set with the point feature. But in the second not. The same in the controls drag handler feature property.
I tried to set it manually by:
control.feature = imageFeature
and:
control.handler.drag.feature = imageFeature
I was looking for a function to set the new feature to the control. But can't find any on the openlayers docs.
Other controls at not active at the same time (controlled it with firebug).
But no luck. Didn't help. Why this? I'am sure that this should work. What am I doing wrong or miss under standing here???
Every help appreciated.
Thanks
Figured it out by my self. Problem was that I used a geoext feature store to display points in a grid. This grid was configured wit a geoext feature selection model. I just copied this...
The selection model also asign a feature select control on the map. In the first round this do no conflicts to the drag control because it is loaded after.
When the the tool enters the first step again all controls are loaded to the map. the select control and the drag control is enabled. this can't be handled by open layers. It seems the last to map added control is the one which comes with priority. So you can enable the drag control after again and again. The select control wins.
The trick is to decativate the select control. Then all works perfect.
i want to display the pop ups in asp.net page like how the stack over flow show the pop ups on the top of the site (you get the new answer for the question like that in a orange color) how can i write the code is there any free source code or any reference. thank you
Given below are the steps to achieve what you want.
Have a div (a container) to show your updates
Create a window.setTimeout to execute a JS function (AJAX)
In that function check for updates from server
Finally if there are any updates then show it in the div container
When there are updates then again setTimeout to make it invisible over a period of time (say 3 secs)
To achieve this in a very easy fashion use JS libraries like JQuery.
HTH
Thats not a 'popup', its probably just a standard DIV that has its height and content changed dynamically. You can do a "view source" on the page to locate the item, or use firebug (easier).
After looking, its a div called 'notify-container'.
These days, all that wizzery is generally done with jQuery
The asp.net ajax control toolkit has that. Check it out here.
I think you'll find that's done using a holding container at the top of the page, a timer to periodically query an AJAX enabled method for updates which replaces the content of the container based on the response.
How can I Open and Close Popup windows without Javascript in ASP.NET?
What do you mean "Popup windows".
JavaScript allows you to manipulate the properties of a window object allowing you to remove the status bar, address bar, set the size and position of the new window and other things.
The only other way (short of using VB script :) is to have links with target set to _blank.
But then you can't customise the new window.
You can't.
Opening and closing popups implies javascript code execution on the client side.
You could eventually create an ASP.Net panel that looks like a popup and set it visible/invisible during the postback but it won't behave like a 'real' popup.
Unless otherwise but I conquer with #Olivier that you can't do that without using Javascript. Even with the solution given by #Avi, you are still using Javascript though it is kinda abstracted from you.
Maybe, you could explain why you don't want to use javascript because even without the AjaxControl, it is kinda pretty easy to open and specify other properties of pop up windows.