Can anybody let me know how to display a Pop up to confirm if he wants to save the changes ,when a record is in Edit mode in Gridview
and user Clicks or tabs away from the row.
Thanks in advance
Divya.
Hm, from your description I understood that you have automatic saving of changes on grid lostfocus client event? because if this is not true, then you don't need dialog to prevent saving, because gridview stays in edit mode until user clicks save or cancel(postback the page), right?
So, why then you want that confirmation dialog/popup functionality?
cheers
Marko
Related
I use Devexpress UserControls in my ASP.Net Project for displaying, editing, and deleting rows of data.
On one of my pages, I have two controls, a DevExpress grid and an ASP.Net button. When I want to edit a row, I click on the edit button of that row, whereupon a popup showing detail of that row is displayed. I can edit these details and then take some action. Tthis popup has buttons Cancel and Save, and when I press Enter key I want the Save action to be invoked. However, currently, when I press the Enter key, it is getting directed to the main page and not the dialog?
Does anyone know how I can get the Enter key to activate the Save action on the dialog instead?
Review the following examples to learn more on how to handle document events and respond to a particular end-user action:
E352
E3845
I have a problem with radGrid Control..
According to my clients requirement we are displaying data in radGrid. But what my problem is, when we click on delete button, the row which has to be delete should be replace with a sliding popup asking " Are u sure you want to delete this row" and with two buttons.
I have tried a lot, but I didn't get any solution for that..
Can any one please help me..
Well, do you have to have a "sliding" popup? In-built it supports a nice radwindow element for the prompt, which you may be able to programmably slide. Set these properties on the gridcommandcolumn: ConfirmTitle="Delete Medical Home" ConfirmDialogType="RadWindow". Otherwise, you can give the button an OnClientClick value that fires a function to show the prompt, and manually control the postback for the delete. For the latter this requires some research, I'm not exactly sure how that works with the RadGrid (the postback to submit the command).
HTH.
Brian
In a ASP.NET application I have a paging RadGrid which shows up textbox in each row. Outside the grid, there is an OK button to save the content of all the textbox. If user changes text in any one or more of the textbox and without clicking on the "OK" button, tries to move to a different page number (of the grid by clicking on the page number), he should be prompted for confirmation of save or cancel the changes.
I am guessing that one can write a Javascript function which would look for any form input control (textbox in my case) and detect changes and If there are changes, would prompt the user. However, I am not sure where I can call this function from? Any suggestion on this or a better way to achieve this would be appreciated.
I am using RadGrid but I guess this should be applicable to GridView as well.
I am not sure if this will help exactly but it might at least give you an idea:http://www.codeproject.com/KB/ajax/ajaxdirtypanelextender.aspx
i have a modelpopup extender in my page.i am using this to search some data from database like customer etc. when i put search criteria on panel and as i click on serach the model popup goes and i want been able to make it visible as soon i finish the searching a code and then i select that code.
kindly help me out
thanks in advance.
Have you setup your cancelbutton property ??
Please note this is a popup and NOT modal popup. The users do not want a modal popup.
Is it a good idea to use an Ajax Popup Control extender in the following circumstances;
I want to populate a textbox. When the user clicks on it, he sees a popup window.
In the popup window you can enter value of the field, or make a selection from a drop down list. When you have decided, you can either click on a submit button to commit your changes, or click on a cancel button to ignore your changes.
By experimenting I have found how to do this, apart from the cancel button.
How do I do this? Or should I try something else?
You might want to check out this jquery plugin
http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/
http://developer.yahoo.com/yui/examples/container/dialog-quickstart.html has a good example of what you are looking for