Hey,
i am just starting to work with telerikcontrols. maybe my question is very easy to answer, but i couldnt find a solution to sort my problem out. i didnt even know, if i am posting in the correct forum, but i couldnt find a forum called RadMultipage.
Well ill have a try to describe my problem.
i have a main page called default.aspx. that page contains some controls. one of them is a radmultipage with 3 radpageview and another control is a radmenu.
if i click on a radmenuitems i want to send some informations to a radmultipageitem.
for example...
my first radviewpage open another file called "file1.ascx". this page contains a label. when i am now clicking on a menuitem(on my default.aspx), i want to set the text of my label(file1.asxy) with the value of the menuitem.
How can i do this?
Thanks
Chris
I have a usercontrol called "uc_Email.ascx" and I have a corresponding edit page called "EditEmail.aspx". When the user clicks an Add button or an Edit button from within the email grid in the user control, the EditEmail.aspx page opens up in a radWindow. Therefore I have a RadWindowManager within my user control.
I have another user control that basically does the same thing, except it's for managing phone numbers instead of email addresses.
Both of these user controls are contained within one parent page (which happens to be a content page within a nested master page), and thus when the page is rendered there are two RadWindowManagers.
My problem is that I can't get either user control to look at the specific "Window" that I'm trying to reference. For instance, my ShowDialog function takes two parameters - the URL and the name of the Window. The URL is being opened just fine, but it's using the settings from my radWindowManager and not the settings from the specific Window.
I tried a few different things:
1. First I tried having my javascript functions (ShowDialog, OnClientClose, etc.) contained within each of my user controls, and also both user controls had their own RadWindowManagers. The windows are opening up, but they are not using the specific settings from the Window that I am referencing. They are also both using the settings from one of the two radWindowManagers (i.e. the user control for phone numbers is using the settings from the radWindowManager that's on the user control for emails.). I did a simple test by changing the Title property of the radWindowManager.
2. Then I tried moving my javascript functions into a .js file and linking that file to my parent page (the functions are identical) so that they would only be rendered once. I also tried putting my RadWindowManager into my parent page as well.
3. I then tried moving my javascript functions into my main master page and putting the radWindowManager into my master page as well. That still didn't work.
#2 and #3 didn't work at all - I'm getting an "object doesn't support this property or method".
I was wondering if you had any insight as to how to handle this type of scenario - namely multiple user controls on a content page of a nested master page, each with it's own need for a radWindow.
Thanks in advance.
Steve

| .rsShowMore |
| { |
| display: none !important; |
| } |
| function OneMonthApart(sender, eventArgs) { |
| var start = eventArgs.get_newDate(); |
| var end = start.setMonth(start.getMonth() + 1); |
| var cal = $find("<%= calEndDate.ClientID %>"); |
| cal.set_selectedDate(end); |
| } |
| <telerik:RadGrid runat="server" ID="grRegions" OnNeedDataSource="grRegions_NeedDataSource" OnItemDataBound="grRegions_ItemDataBound" OnItemCommand="grRegions_ItemCommand" Skin="Default2006" Width="750px" AllowPaging="true" PageSize="25" PagerStyle-Mode="NumericPages" OnDetailTableDataBind="grRegions_DetailTableDataBind"> | |
| <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" CommandItemStyle-Height="30px" DataKeyNames="Id" HierarchyLoadMode="Client"> | |
| <DetailTables> | |
| <telerik:GridTableView AutoGenerateColumns="false" runat="server" CommandItemDisplay="Top" CommandItemStyle-Height="30px" Name="Locations"> | |
| <CommandItemTemplate> | |
| <asp:Image ID="Image2" runat="server" ImageUrl="~/_assets/images/AddRecord.gif" BorderStyle="None" hspace="5" /><a href="javascript:void(0);" onclick="javascript:__associateLocation(<%#Eval("RegionId") %>);">Associate Location</a> | |
| </CommandItemTemplate> | |
| <ParentTableRelation> | |
| <telerik:GridRelationFields MasterKeyField="Id" DetailKeyField="Id" /> | |
| </ParentTableRelation> | |
| <Columns> | |
| <telerik:GridTemplateColumn ItemStyle-Wrap="false" ItemStyle-Width="45px"> | |
| <ItemTemplate> | |
| <asp:Button runat="server" ID="cmEdit" Text="Edit" SkinID="SmallButton" /> | |
| </ItemTemplate> | |
| </telerik:GridTemplateColumn> | |
| <telerik:GridBoundColumn DataField="Id" Visible="false" /> | |
| <telerik:GridBoundColumn DataField="City" HeaderText="City" /> | |
| <telerik:GridBoundColumn DataField="StateProv.Name" HeaderText="State/Prov" /> | |
| <telerik:GridBoundColumn DataField="Country.Name" HeaderText="Country" /> | |
| <telerik:GridBoundColumn DataField="PostalCode" HeaderText="PostalCode" /> | |
| </Columns> | |
| </telerik:GridTableView> | |
| </DetailTables> | |
| <CommandItemTemplate> | |
| <asp:Image ID="Image2" runat="server" ImageUrl="~/_assets/images/AddRecord.gif" BorderStyle="None" hspace="5" /><a href="javascript:void(0);" onclick="javascript:__showRadWindow(null);">Add Region</a> | |
| </CommandItemTemplate> | |
| <Columns> | |
| <telerik:GridTemplateColumn ItemStyle-Wrap="false" ItemStyle-Width="45px"> | |
| <ItemTemplate> | |
| <asp:Button runat="server" ID="cmEdit" Text="Edit" CommandArgument='<%#Eval("Id") %>' SkinID="SmallButton" /> | |
| </ItemTemplate> | |
| </telerik:GridTemplateColumn> | |
| <telerik:GridBoundColumn HeaderText="Code" DataField="Code" /> | |
| <telerik:GridBoundColumn HeaderText="Name" DataField="Name" /> | |
| <telerik:GridButtonColumn ConfirmText="Are you sure you wish to permanently remove this region?<br /><br />This action will remove all associated locations and is not reversible." | |
| ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ItemStyle-Width="45px" | |
| Text="Delete" UniqueName="DeleteColumn" ItemStyle-HorizontalAlign="Center" ImageUrl="~/_assets/images/delete.gif"> | |
| <ItemStyle HorizontalAlign="Center" /> | |
| </telerik:GridButtonColumn> | |
| </Columns> | |
| </MasterTableView> | |
| <ClientSettings EnableRowHoverStyle="true" /> | |
| </telerik:RadGrid> |
| Private _Regions As List(Of Core.TenderingRegion) = Nothing | |
| Protected ReadOnly Property Regions() As List(Of Core.TenderingRegion) | |
| Get | |
| If Me._Regions Is Nothing Then | |
| Me._Regions = New Core.TenderingRegionBiz().GetAllRegions() | |
| End If | |
| Return Me._Regions | |
| End Get | |
| End Property | |
| Protected Sub grRegions_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs) | |
| If Not e.IsFromDetailTable Then | |
| Me.grRegions.DataSource = Me.Regions | |
| End If | |
| End Sub | |
| Protected Sub grRegions_DetailTableDataBind(ByVal sender As Object, ByVal e As GridDetailTableDataBindEventArgs) | |
| If e.DetailTableView.Name = "Locations" Then | |
| Dim locs = From r In Me.Regions Where r.Id = Convert.ToInt32(e.DetailTableView.ParentItem.GetDataKeyValue("Id")) Select r.Locations | |
| e.DetailTableView.DataSource = locs | |
| End If | |
| End Sub | |
| <tr> |
| <td class="labelWidth"> |
| Department |
| </td> |
| <td> |
| <telerik:RadComboBox CssClass="ddlText" ID="DepartmentRadComboBox" Width="150px" |
| runat="server" DataSourceID="dsDepartmentInfo" AppendDataBoundItems="true" Skin="Outlook" |
| DataTextField="Department_Name" DataValueField="Department" DropDownWidth="230px" |
| SelectedValue='<%# Bind("Department") %>'> |
| <Items> |
| <telerik:RadComboBoxItem Text="None" runat="server" /> |
| </Items> |
| <ItemTemplate> |
| <table class="ddlText" style="width: 210px; text-align: left; line-height: 10px"> |
| <tr> |
| <td style="width: 60px;"> |
| <%#DataBinder.Eval(Container.DataItem, "Department")%> |
| </td> |
| <td style="width: 150px;"> |
| <%#DataBinder.Eval(Container.DataItem, "Department_Name")%> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| <HeaderTemplate> |
| <table class="ddlText" style="width: 210px; text-align: left; line-height: 10px"> |
| <tr> |
| <td style="width: 60px;"> |
| Department</td> |
| <td style="width: 150px;"> |
| Name</td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| </telerik:RadComboBox> |
| </td> |
| </tr> |
