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

Open User Control in RadWindow

4 Answers 549 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kurt Kluth
Top achievements
Rank 1
Kurt Kluth asked on 10 Apr 2015, 08:24 PM

What we currently have is an aspx page that contains a radgrid that allows users to modify a record.  The information is loaded into a user control contained within a javascript/css modal window and I would like to replace it with the RadWindow.  This is currently how it is:

<%@ Register Src="~/Common/camelScoreNotes.ascx" TagName="CamelNotes" TagPrefix="uc1" %>
 <%@ Register Src="~/Common/asiExamNotes.ascx" TagName="AsiNotes" TagPrefix="uc1" %>
<%@ Register Src="~/Common/auditWorkPapers.ascx" TagName="WorkPapers" TagPrefix="uc1" %>

 

<telerik:GridTemplateColumn UniqueName="OpenNotes" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
     <ItemTemplate>
          <div id="Div<%# FormatDateTime(Eval("Date"), 2).Replace("/", "")%>" class="audit-notes-window">
               <uc1:CamelNotes NoteDate='<%# Eval("Date").ToString%>' AuditID='<%# _hdnAuditID.Value %>' CamelScore='<%# Eval("CamelCAE_Score")%>' CamelComp='<%# Eval("CAMEL_Comp")%>' CreatedBy='<%# Eval("CreatedByName")%>' runat="server"/>
          </div>
     </ItemTemplate>
</telerik:GridTemplateColumn>
 

First, I am not sure if it is even possible?  Can I only define one RadWindow and still pass the required variables in or would each GridTemplateColumn be a new RadWindow?   Note: that I do have multiple user controls and would like to get them all being edited in a RadWindow; each require that I pass in variables.  Maybe I create 3 RadWindows (one for each of the user controls) and define its contenttemplate as the user control but how could I pass in the required information? 

 Your assistance is appreciated.

4 Answers, 1 is accepted

Sort by
0
Kurt Kluth
Top achievements
Rank 1
answered on 14 Apr 2015, 08:16 PM
Any suggestions? 
0
Danail Vasilev
Telerik team
answered on 15 Apr 2015, 02:28 PM
Hello Kurt,

I can suggest that you examine this demo where is illustrated an integration of RadWindow with RadGrid - http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

Regards,
Danail Vasilev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Kurt Kluth
Top achievements
Rank 1
answered on 16 Apr 2015, 06:50 PM

Danail,

 Opening a RadWindow from a RadGrid isn't the problem.  The problem is opening a User Control into a RadWindow and how do we pass the various variables to it. 

 Thanks

0
Marin Bratanov
Telerik team
answered on 17 Apr 2015, 11:34 AM

Hello Kurt,

Passing data to the user control depends on the setup.

You may also find useful this article on the different ways to open a RadWIndow: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html.

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Window
Asked by
Kurt Kluth
Top achievements
Rank 1
Answers by
Kurt Kluth
Top achievements
Rank 1
Danail Vasilev
Telerik team
Marin Bratanov
Telerik team
Share this question
or