I am trying to get data from a data grid and display it into a modal panel. Then modify data in modal panel and after the panel was closed using the "ok action" the modified data to be displayed again in data grid.
This seems to be like a true horror... i do not want to post some code because is really a lot.
The first problem was that the button which opens the modal panel does not call its code behind on server so i do not know how to populate the fields from modal panel with the ones from data grid.
And the second was that the "ok" and "cancel" buttons from modal panel also does not call any code behind from server... so i could not update the data grid with new modified values from modal panel.
Please if you know some tutorials about this, or have an idea how to enable those calls on server side, give me a hand, i seek some but all of them seems to be only for "educative" purposes.
Thanks !
Related
I have a Telerik RadGrid consisting of eight columns that I want to display a duplicate of in a pop-up window, after clicking a button. And ideally, it should be a "duplicate" with some of the columns removed. How would I go about this?
I assume I should be able to somehow add the grid to the window's content, manipulate it a little, and then "unmanipulate" and add it back to the main page upon closing the window, using jQuery. I'm just not sure of how to go about this.
I have one requirement like,
One master page with three image buttons, once clicking on any button it redirect's to appropriate page, in that page(it's requester form) i have placed all controls in one panel control(id="MyPanel"), one link button(MyLinkButton) out side to that panel and one modal popup control(id=MyModalpopup) as target control id=MyLinkButton,popupcontrolid=MyPanel. On this page load i did code (MyModalpopup.show()) to show all controls in modal popup.
every thing is working fine but, i have controls like dropdown,checkboxlist with autopostback=true and these are in updatepanel and for these controls i am binding data from code behind. Now the problem here is the data i am unable to bind and when these controls are postback the modal popup is not visible.
i am using C# and 3.5 framework.
What I would do, is have a hidden field (with runat=server) that has a true/false value that is set when the modal is activated/hidden.
Then during the client-side page-load of the postback, read that value and make the modal hidden/shown appropriately.
The other option would be to figure out how to make those controls work without the auto-postback (i.e. populating the controls via ajax).
I am currently developing an ASP.net c# application. I have an Ajax Modal Popup Extender which I currently have working with an asp:button for testing purposes which I have got working fine.
However, what I need to be able to do is I have a hyperlink bound to a dataset being populated from a MySQL Database. The hyperlink passes parameters based on database columns. What I need to be able to do is to open the modal popup extender and display dynamic data based on the paramaters from the hyperlink url.
Hope this makes sense, thanks for any help you can provide.
If it is a LinkButton, open the ModalPopup in the click event of the LinkButton by calling the Show method. Process any data that you want to display in the panel before you display it.
I am having a grid in gridpage.aspx and on clicking the search button in gridpage.aspx. it opens a search popupwindow with search criteria and after entering the search criteria and clicking the search button in the popup window will close the popup window and displays all the records in the gridpage.aspx.
the scenario is when i am retreiving lakhs of records i want to display the user with some update that the search is still in progress
Not clear on how you are doing the whole popup logic (ie: client side code, update panel, etc). I'll go the simple route and assume you are using an UpdatePanel.
You could have a panel (div) on your page with a default visibility of false (css style = display: none) that contained an animated "loading" icon.
When the users clicks search you could change the visibility (css style = display: block) to true.
You could also accomplish this using javascript client side if clicking "Search" isn't already causing a postback.
You can make use of you can have div with an gif image and display that while the search is on. You can make it visible in the beginning of the method where search starts and hide it in the end.
If you are using UpdatePanel, go for UpdatePanelAnimator (or something like. Don't remember the exact name). It will also gove the same effect.
I'm looking for some sample code or a link to a good site.
Does anyone have a sample of using an infragistics WebDialogWindow as an editable popup with an infra grid. I'm targeting CLR 2.0 using c# preferably. I would be updating a standard ADO.Net Datatable in a Dataset
I'm not a fan of the edit row template technique.
Thanks in advance!
Chris
Pretty simple really.
Create a webform with an ultragrid and a web dialog. Must include Script manager control.
Set the modal to true and window state to hidden on the web dialog.
Drop on the edit controls into the dialog along with an Ok and Cancel button.
Hook up the double click of the grid to set the window state to normal, and set the controls on the dialog to the values from the row clicked.
Stick code behind the Ok and cancel to deal with save and setting window state back to hidden.
Run it.
Final wee pointer. Wrap the dialog up in a standard update panel (NOT warp panel) to improve the display if you are centring it.