This is a migrated thread and some comments may be shown as answers.

Modal Popup.

10 Answers 743 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon Hobbs
Top achievements
Rank 1
Jon Hobbs asked on 29 May 2007, 11:56 AM
Hi Guys,

I am currently trying to build an app that requires a modal div to pop up when a picture is clicked on. I have been trying for 3 days to find something and it doesn't seem to exist!

Microsoft have put something similar in their ajax control toolkit here...

http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx

but that one is client side only and doesn't allow you open the popup on a callback/postback and load dynamic controls into the div etc....

Rad Window would be once solution but isn't quite right as I don't need to load content from another page and really need a simple div.

So, a Rad control to make a modal div pop up on postback would be really cool, or if anyone has any other suggestions they would be greatly appreciated :)

10 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 May 2007, 08:23 AM
Hi Jon,

I am afraid that currently we cannot  fit in your requirements. The RadDock and RadToolTip controls are non-modal and RadWindow itself still does not support setting and manipulating the content on the parent page. Such feature is present in our ToDo list for v2.0 which will appear later this year.

For the time being I would suggest to check the asp.net forums for a solution that will open the toolkit's modal popup from the codebehind.




Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert Gyorodi
Top achievements
Rank 1
answered on 23 Apr 2008, 10:02 PM
Hello,

In relation to RadWindow do you have any progress on manipulating the content on the parent page?

I'm interested in something similar with the ModalPopupExtender that would allow the use of an asp:Panel for a popup.

The problem we are facing is that we need to have a main page that has an asp:Panel that will be loaded with dynamic controls that have to be initialized (currently using server side ViewState). Some of these dynamic controls need to popup another window (panel) that will contain another dynamic control that needs also initialization (the preferred way would be through the same ViewState). And this popup needs to send back info (preferably having access through code behind - with an AJAX callback/postback).

We tried to mix RadAjax with UpdatePanel and ModalPopupExtender but it seems that we are not getting anywhere.

Any input would be appreciated.

Regards,

Robert
0
Paluth
Top achievements
Rank 1
answered on 28 Apr 2008, 06:46 PM
Robert I can't really see what the problem is for you to use the modalpopupextender. Althought the show method happens on the client, u can still update the panel that will popup with an updatepanel before you call the client command to show. On your callback/postback, load the stuff in the panel and call the update of the updatepanel thats around your modal, and then register a script to show your modal once the page is loaded (registerclientscriptblock). We do that here and it works fine for us.
The problem Im having is with radgrid, that we use inside the modal. Once the modal opens up, the grid is shinked in height (seams like it set it self to height 0, no matter what height we give it).
0
Georgi Tunev
Telerik team
answered on 29 Apr 2008, 08:06 AM
Hi Paluth,

Are you using the modalpopupextender or the RadWindow control with Modal set to true? If you are using RadWindow, please make sure that the ShowContentDuringLoad property is set to true.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paluth
Top achievements
Rank 1
answered on 29 Apr 2008, 12:20 PM
Hi Im using modalpopupextender from the control toolkit.
0
Konstantin Petkov
Telerik team
answered on 01 May 2008, 12:09 PM
Hello Paluth,

Can you please elaborate more on your scenario?

First of all, do you get the problem both on IE and Firefox? Do you have ajaxified/updated the Grid through the RadAjax controls? Have you wrapped the Grid in another container, which has no 100% height set?

The easiest way to determine what is causing the Grid height shrinking problem would be to examine the rendered HTML through the Firebug tool in Firefox or IE Dev Toolbar in IE. See if there is no other container around the Grid's div. If so, you may need to set its height to 100% as well.

I hope this helps!

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paluth
Top achievements
Rank 1
answered on 02 May 2008, 06:18 PM
 Im geting the problem under both ie and firefox. In firefox the problem is even worst since the grid is shrinking in both control toolkit tabs and modalpopups. Ive tryed both seting the grid height to a value or seting it to a 100% and adding a div with height on the outside of it. This shrinking with modalpopupextender has always happened since grid version 4.6. Before that I had a work around. The panel that is target of the modal extender must have display:none or else it shows before its positioned in the center (eg shows at the botton of the page). But that would cause the shrinking. I left the display:none out of the panel and it worked, although I always got a flick of the modal, before it was repositioned by the javascript. Now even without the display:none it shrinks (after the "prometheous" upgrade).
The reason I didnt put any code here was that I thought the problem was very broad and not tied to obscure scenarios. In my tests even the simplest modal and grid get broken.
I've decided to open up a formal support tickect and get going from there. I was avoiding this before becouse I can't stop my work to setup a "working" project to send to you guy. I've got schedules to fulfill and thats one of the reason I use your "RAD" controls. But it simply takes too long to get feedback here so I will go with the more formal way of doing things.
Still, tnx for replying.
0
Konstantin Petkov
Telerik team
answered on 05 May 2008, 08:20 AM
Hi Paluth,

Indeed, the support tickets get priority over the forums when replying from the staff. I'm sorry for not being able to help you in this thread, but it will be best to send a sample though a support ticket so that we can review it locally.

Thank you for the understanding and cooperation.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matthew
Top achievements
Rank 1
answered on 15 Oct 2008, 03:03 PM
Bump... Has there been any progress on a modal popup for ASP.NET Ajax? We found out how to use the WindowManager to create confirms boxes in a modal style, but I need to produce multiple different modal popups. I guess we could use a multiview inside of a confirm template, but that sure seems more cumbersome than just using the modalpopupextender in the extenders toolkit.

Any idea when a vanilla modal popup (with the skinning -- got to have the skinning) will be available from telerik?

Thanks! Matthew
0
Sebastian
Telerik team
answered on 15 Oct 2008, 03:09 PM
Hello Matthew,

You can use the modal popup extender from the Ajax toolkit as illustrated in the example from this code library thread:

http://www.telerik.com/community/code-library/submission/b311D-beckhk.aspx

or utilize RadWindow in its modal popup mode as explained in this topic from the RadGrid documentation:

http://www.telerik.com/help/aspnet-ajax/grdaddingdeleteprompt.html

Feel free to choose the approach which suits your needs best.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Jon Hobbs
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Robert Gyorodi
Top achievements
Rank 1
Paluth
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Matthew
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or