Open User Control in RadWindow

5 posts, 0 answers
  1. Kurt Kluth
    Kurt Kluth avatar
    144 posts
    Member since:
    Oct 2009

    Posted 10 Apr 2015 Link to this post

    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.

  2. Kurt Kluth
    Kurt Kluth avatar
    144 posts
    Member since:
    Oct 2009

    Posted 14 Apr 2015 Link to this post

    Any suggestions? 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 15 Apr 2015 Link to this post

    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.

     
  5. Kurt Kluth
    Kurt Kluth avatar
    144 posts
    Member since:
    Oct 2009

    Posted 16 Apr 2015 in reply to Danail Vasilev Link to this post

    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

  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 17 Apr 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017