Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...radwindow does not show in dnn 7radwindow does not show in dnn 7
Previous
 
Next
New Post
10/27/2014 12:54 PM
 

Hi,

I am new in dotnetnuke module development.   

 Settings: dotnetnuke 7 + christoc , telerik ajax ui conrols: Q2 release 2. I have registered a usercontrol Patientupdate.ascx in DNN and inside it I have a radwindow and inside the radwinodw another (normal)usercontrol COVUserControl. The radwindow is called inside a radgrid in formedit mode.

a snippet of the code for the radwindwo (inside the patientupdate.ascx)

<telerik:RadWindow ID="COVWindow" Title="Editing record" Width="270"
        Height="540" VisibleOnPageLoad="false" Behaviors="Resize, Minimize, Close, Pin, Maximize, Move"
        Left="610" EnableShadow="true" runat="server" OnClientClose="refreshGrid" Modal="true">
    <ContentTemplate>
         <asp:Panel ID="Panel1" runat="server">
                <COVUC:COVUserControl runat="server" ID="COVUCID"/>
        </asp:Panel>
    </ContentTemplate>
</telerik:RadWindow>

In the edit template I have a button named <COV check> and in the ResuiltaatGrid_Itemcommand  I have the following code:

         protected void ResultaatGrid_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "COV")
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;

                string pCperID = editedItem.GetDataKeyValue("cpersoon_id").ToString();
                COVWindow.Width = 500;
                COVWindow.Height = 250;
                COVUserControl COVUC1 = COVWindow.ContentContainer.FindControl("COVUCID") as COVUserControl;
                COVUC1.cPersoonID = pCperID;
                RadGrid COVGrid = COVUC1.FindControl("COVGrid") as RadGrid;
                string script = "function f(){$find(\"" + COVWindow.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);
                COVGrid.Rebind();
            }

        }

The problem is that the radwindow does not pop-up.  (I have check the pop-up in host -> extension-> and check allow pop-ups for the module).

The same code works when NOT  a dotnetnuke module. (just plain patientupdate.aspx).

I think that the code lines does not fire:

         string script = "function f(){$find(\"" + COVWindow.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);

If I asked Telrerik then they say that its is dotnetnuke problem....

 Thanks in advance.

 

Regards,

 

Ton

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...radwindow does not show in dnn 7radwindow does not show in dnn 7


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out