what am I doing wrong?

18 posts, 0 answers
  1. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 01 Feb 2011 Link to this post

    when the page loads I see all the pageviews being displayed for the first tab, it is not till I click through all the tabs once will the pageviews show correctly for the selected tab

    Ok here is my code

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
                   <Tabs>
                       <telerik:RadTab runat="server" Text="1" PageViewID="rpv1">
                       </telerik:RadTab>
                       <telerik:RadTab runat="server" Text="2" PageViewID="rpv2">
                       </telerik:RadTab>
                       <telerik:RadTab runat="server" Text="3" PageViewID="rpv3">
                       </telerik:RadTab>
                   </Tabs>
               </telerik:RadTabStrip>
               <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
                       <telerik:RadPageView ID="rpv1" runat="server">
                           <asp:Label ID="Label1" runat="server" CssClass="BoldPrompt" Text="rpv1"></asp:Label>
                       </telerik:RadPageView>
                       <telerik:RadPageView ID="rpv2" runat="server">
                           <asp:Label ID="Label2" runat="server" CssClass="BoldPrompt" Text="rpv2"></asp:Label>
                       </telerik:RadPageView>
                       <telerik:RadPageView ID="rpv3" runat="server">
                           <asp:Label ID="Label3" runat="server" CssClass="BoldPrompt" Text="rpv3"></asp:Label>
                       </telerik:RadPageView>
               </telerik:RadMultiPage>
  2. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 01 Feb 2011 Link to this post

    I'm having the exact same problem.  No help found via searching here or on Google.

    <telerik:RadTabStrip ID="radtabDashboard" runat="server" Width="600px" CssClass="Tab_x79" SelectedIndex="0" MultiPageID="radMultiPage1" OnClientTabSelected="radtabSelected">
        <Tabs>
            <telerik:RadTab Text="Quarterly Sales Pipeline" CssClass="Tab_x79" Selected="true" />
            <telerik:RadTab Text="Bi-Annual Incentive" CssClass="Tab_x79" />
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="radMultiPage1" runat="server" Width="600px">
        <telerik:RadPageView ID="rpvQuarterly" runat="server" Selected="true">
            <asp:Panel ID="Panel6" runat="server" />
        </telerik:RadPageView>
        <telerik:RadPageView ID="rpvIncentive" runat="server" Selected="false">
            <asp:Panel ID="Panel7" runat="server" />
        </telerik:RadPageView>
    </telerik:RadMultiPage>


    Tried all kinds of things with SELECTED="False" or Visible="False" (which turns that PageView off and you can't get it back on!)

    Even tried this in the codebehind:
    Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim sb As StringBuilder = New StringBuilder()
        sb.Append("var radtab = $find('ctl00_ctl00_SiteMasterContentPlaceHolder_NestedSiteMasterContentPlaceHolder_radtabDashboard');" & vbCrLf)
        sb.Append("var multiPage = $find('ctl00_ctl00_SiteMasterContentPlaceHolder_NestedSiteMasterContentPlaceHolder_radMultiPage1');" & vbCrLf)
        sb.Append("if ((multiPage !== null) && (multiPage !== undefined)) {" & vbCrLf)
        sb.Append(" var i;" & vbCrLf)
        sb.Append(" for (i = 0; i < multiPage.get_pageViews().get_count(); i++) {" & vbCrLf)
        sb.Append("  radtab.get_tabs().getTab(i).set_visible(false);" & vbCrLf)
        sb.Append("  multiPage.get_pageViews().getPageView(i).hide();" & vbCrLf)
        sb.Append(" }" & vbCrLf)
        sb.Append("}")
        ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType, "radtabInit", sb.ToString, True)
    End Sub


    Problem still exists.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 02 Feb 2011 Link to this post

    Hello guys,

    Can you please let me know which versions of Telerik.Web.UI you are using?

    Regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 02 Feb 2011 Link to this post

    I'm using 2010 Q3 1317.40
  6. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 02 Feb 2011 Link to this post

    I am using 2010.3.1215.40

    when I was playing around with the controls on my page I noticed that if I moved the RadWindowManager From the top of my page to the bottom of the page the problem with the tabs/ mutlipage went away. But then I lost the styling of my model window also went away.

  7. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 03 Feb 2011 Link to this post

    I've noticed that for Andrew you set the SelectedIndex on the RadMultiPage, while Jerry sets the SelectedIndex on the RadTabStrip. Have you both tried setting the default SelectedIndex on both the RadTabStrip and RadMultiPage to 0, so they are both synced to the same index on initial load?

    I hope that helps.
  8. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 03 Feb 2011 Link to this post

    Cori,

    Yes, I've tried that and just about every combination of show/hide, visible = false/true, selected=true/false.


    FWIW, here's my entire markup and codebehind:

    <%@ Page Title="Home" Language="VB" MasterPageFile="~/MasterPages/NestedSiteMaster.master" Inherits="DMCpro.Web.App.UserHome" Codebehind="UserHome.aspx.vb" %>
      
    <asp:Content ID="Content1" ContentPlaceHolderID="NestedSiteMasterContentPlaceHolder" Runat="Server">
      
        <asp:ScriptManagerProxy ID="smpUserHome" runat="server">
            <CompositeScript ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="DMCpro.Web.UI.Scripts.Dashboard.js" Assembly="DMCpro.Web.UI" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManagerProxy>
      
        <dmc:StyleSheetManagerProxy ID="ssmpUserHome" runat="server">
            <StyleSheets>
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadGrid.RadGrid.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadScheduler.RadScheduler.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadCalendar.RadCalendar.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadComboBox.RadComboBox.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadTabStrip.RadTabStrip.min.css" Assembly="DMCpro.Web.UI" />
            </StyleSheets>
        </dmc:StyleSheetManagerProxy>
      
        <table width="100%">
            <tr align="center">
                <td>
                    <table width="600px" cellpadding="0" cellspacing="0">
                        <tr><td valign="top" style="padding-right:2px;"><asp:Panel ID="Panel1" runat="server" /></td></tr>
                        <tr><td valign="top">
                            <telerik:RadTabStrip ID="radtabDashboard" runat="server" Width="600px" CssClass="Tab_x79" SelectedIndex="0" MultiPageID="radMultiPage1" OnClientTabSelected="radtabSelected">
                                <Tabs>
                                    <telerik:RadTab Text="Quarterly Sales Pipeline" CssClass="Tab_x79" Selected="true" />
                                    <telerik:RadTab Text="Bi-Annual Incentive" CssClass="Tab_x79" />
                                </Tabs>
                            </telerik:RadTabStrip>
                            <telerik:RadMultiPage ID="radMultiPage1" runat="server" Width="600px" SelectedIndex="0">
                                <telerik:RadPageView ID="rpvQuarterly" runat="server" Selected="true">
                                    <asp:Panel ID="Panel6" runat="server" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="rpvIncentive" runat="server" Selected="false">
                                    <asp:Panel ID="Panel7" runat="server" />
                                </telerik:RadPageView>
                            </telerik:RadMultiPage>
                        </td></tr>
                        <tr><td valign="top"><br /><asp:Panel ID="Panel2" runat="server" /></td></tr>
                    </table>
                </td>
                <td align="center" valign="top">
                    <div class="DashboardRightContentContainer">
                        <asp:Panel ID="Panel3" runat="server" /><br />
                        <asp:Panel ID="Panel4" runat="server" /><br />
                        <asp:Panel ID="Panel5" runat="server" />
                    </div>
                </td>
            </tr>
        </table>
      
     </asp:Content>


    Partial Class UserHome
        Inherits System.Web.UI.Page
      
    #Region "Page Events"
      
        Private Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init
            If Not Page.IsPostBack Then
                Me.InitializeDashboardControls()
            End If
        End Sub
      
        Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim sb As StringBuilder = New StringBuilder()
      
            sb.Append("var radtab = $find('ctl00_ctl00_SiteMasterContentPlaceHolder_NestedSiteMasterContentPlaceHolder_radtabDashboard');" & vbCrLf)
            sb.Append("var multiPage = $find('ctl00_ctl00_SiteMasterContentPlaceHolder_NestedSiteMasterContentPlaceHolder_radMultiPage1');" & vbCrLf)
            sb.Append("if ((multiPage !== null) && (multiPage !== undefined)) {" & vbCrLf)
            sb.Append(" var i;" & vbCrLf)
            sb.Append(" for (i = 0; i < multiPage.get_pageViews().get_count(); i++) {" & vbCrLf)
            sb.Append("  radtab.get_tabs().getTab(i).set_visible(false);" & vbCrLf)
            sb.Append("  multiPage.get_pageViews().getPageView(i).hide();" & vbCrLf)
            sb.Append(" }" & vbCrLf)
            sb.Append("}")
      
            ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType, "radtabInit", sb.ToString, True)
        End Sub
      
    #End Region
      
    #Region "Functions"
      
        Private Sub InitializeDashboardControls()
            ' get delimited control names and split into array
            Dim ControlNames As String() = BALHelper.GetDashboardControlsInRole().Split(","c)
      
            If ControlNames IsNot Nothing AndAlso ControlNames.Count > 0 AndAlso Not String.IsNullOrEmpty(ControlNames(0)) Then
                Dim cp As ContentPlaceHolder = Me.Page.Master.Master.FindControl("SiteMasterContentPlaceHolder").FindControl("NestedSiteMasterContentPlaceHolder")
      
                For x As Int32 = 1 To ControlNames.Count
                    DirectCast(cp.FindControl("Panel" & x), Panel).Controls.Add(Page.LoadControl(String.Format("~/Controls/Dashboard/{0}.ascx", ControlNames(x - 1))))
                Next
            End If
        End Sub
      
    #End Region
      
    End Class


    That RegisterStartupScript was just one attempt at trying to suppress the 2nd RadPageView at startup.
  9. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 03 Feb 2011 Link to this post

    me to
  10. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 04 Feb 2011 Link to this post

    We got ours working.  The biggest thing was that the StyleSheetReference in our StyleSheetManagerProxy was missing for the MultiPage.  A bit of moving code around and this is what is now working for us:

    Container page markup and codebehind:
    <%@ Page Title="Home" Language="VB" MasterPageFile="~/MasterPages/NestedSiteMaster.master" Inherits="DMCpro.Web.App.UserHome" Codebehind="UserHome.aspx.vb" %>
    <%--<%@ OutputCache Duration="604800" VaryByParam="none" VaryByCustom="RoleAndFiltering" VaryByHeader="User-Agent" Location="Server" %>--%>
      
    <asp:Content ID="Content1" ContentPlaceHolderID="NestedSiteMasterContentPlaceHolder" Runat="Server">
      
        <dmc:StyleSheetManagerProxy ID="ssmpUserHome" runat="server">
            <StyleSheets>
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadGrid.RadGrid.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadScheduler.RadScheduler.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadCalendar.RadCalendar.min.css" Assembly="DMCpro.Web.UI" />
                <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadComboBox.RadComboBox.min.css" Assembly="DMCpro.Web.UI" />
            </StyleSheets>
        </dmc:StyleSheetManagerProxy>
      
        <table width="100%">
            <tr align="center">
                <td>
                    <table width="600px" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" style="padding-right:2px;">
                                <asp:Panel ID="Panel1" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                                <asp:Panel ID="Panel2" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                                <asp:Panel ID="Panel3" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="center" valign="top">
                    <div class="DashboardRightContentContainer">
                        <asp:Panel ID="Panel4" runat="server" /><br />
                        <asp:Panel ID="Panel5" runat="server" /><br />
                        <asp:Panel ID="Panel6" runat="server" />
                    </div>
                </td>
            </tr>
        </table>
      
     </asp:Content>

    Partial Class UserHome
        Inherits System.Web.UI.Page
      
    #Region "Page Events"
      
        Private Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init
            If Not Page.IsPostBack Then
                Me.InitializeDashboardControls()
            End If
        End Sub
      
      
    #End Region
      
    #Region "Functions"
      
        Private Sub InitializeDashboardControls()
            ' get delimited control names and split into array
            Dim ControlNames As String() = BALHelper.GetDashboardControlsInRole().Split(","c)
      
            If ControlNames IsNot Nothing AndAlso ControlNames.Count > 0 AndAlso Not ControlNames(0).IsNullOrEmpty Then
                Dim cp As ContentPlaceHolder = Me.Page.Master.Master.FindControl("SiteMasterContentPlaceHolder").FindControl("NestedSiteMasterContentPlaceHolder")
      
                For x As Int32 = 1 To ControlNames.Count
                    If Not ControlNames(x - 1).IsNullOrEmpty Then
                        DirectCast(cp.FindControl("Panel" & x), Panel).Controls.Add(Page.LoadControl(String.Format("~/Controls/Dashboard/{0}.ascx", ControlNames(x - 1))))
                    End If
                Next
            End If
        End Sub
      
    #End Region
      
    End Class



    Loaded control with the TabStrip and Multipage:
    <%@ Control Language="vb" CodeBehind="MySales_AE.ascx.vb" Inherits="DMCpro.Web.App.MySales_AE" %>
      
    <script type="text/javascript">
        // my quartely sales pipeline
        function rcbMyQuarterlySalesPipelineYearFilter_ClientLoad(sender, e) {
            var i = sender.findItemByText(new Date().getFullYear());
            if (i) i.select();
        }
      
        function rcbMyQuarterlySalesPipelineYearFilter_ClientSelectedIndexChanged(sender, e) {
            $.ajax({
                type: 'POST',
                contentType: 'application/json; charset=utf-8',
                url: 'WebServices/DashboardService.asmx/GetDashboardQuarterlySalesPipeline_For_AE',
                data: JSON.stringify({ year: e.get_item().get_text() }),
                dataType: 'json',
                success: function (data) {
                    var view = $find('<%= rgMyQuarterlySalesPipeline.ClientID %>').get_masterTableView();
                    view.set_dataSource(data.d);
                    view.dataBind();
                }
            });
        }
      
        // my bi-annual incentive
        function rcbBiAnnualIncentiveYearFilter_ClientLoad(sender, e) {
            var i = sender.findItemByText(new Date().getFullYear());
            if (i) i.select();
        }
      
        function rcbBiAnnualIncentiveYearFilter_ClientSelectedIndexChanged(sender, e) {
            $.ajax({
                type: 'POST',
                contentType: 'application/json; charset=utf-8',
                url: 'WebServices/DashboardService.asmx/GetDashboardBiAnnualIncentive_For_AE',
                data: JSON.stringify({ year: e.get_item().get_text() }),
                dataType: 'json',
                success: function (data) {
                    var view = $find('<%= rgBiAnnualIncentive.ClientID %>').get_masterTableView();
                    view.set_dataSource(data.d);
                    view.dataBind();
                }
            });
        }
    </script>
      
    <dmc:StyleSheetManagerProxy ID="ssmpMySales" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadTabStrip.RadTabStrip.min.css" Assembly="DMCpro.Web.UI" />
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadMultiPage.RadMultiPage.min.css" Assembly="DMCpro.Web.UI" />
        </StyleSheets>
    </dmc:StyleSheetManagerProxy>
      
    <asp:ObjectDataSource ID="odsYears" runat="server" TypeName="DMCpro.Web.App.BALHelper" SelectMethod="GetMinusOneYearPlusN">
        <SelectParameters>
            <asp:Parameter Name="HowManyYearsOut" Type="Int32" DefaultValue="5" />
        </SelectParameters>
    </asp:ObjectDataSource>
      
    <telerik:RadTabStrip ID="rtsMySales" runat="server" AutoPostBack="false" SelectedIndex="0" Align="Left" MultiPageID="rmpMySales" CssClass="rtsNoBottomBorder">
        <Tabs>
            <telerik:RadTab Text="My Quarterly Sales Pipeline" />
            <telerik:RadTab Text="My Bi-Annual Incentive" />
        </Tabs>
    </telerik:RadTabStrip>
      
    <telerik:RadMultiPage ID="rmpMySales" runat="server" SelectedIndex="0">
      
        <telerik:RadPageView ID="rpvMyQuarterlySalesPipeline" runat="server">
            <telerik:RadGrid ID="rgMyQuarterlySalesPipeline" runat="server" CssClass="rgBlendWithTabStrip" EnableViewState="false">
                <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">
                    <ClientEvents OnCommand="function() {}" />
                </ClientSettings>
                <MasterTableView ClientDataKeyNames="Qtr" CommandItemDisplay="Top">
                    <CommandItemTemplate>
                        <div align="right" style="padding:3px">
                            <telerik:RadComboBox ID="rcbMyQuarterlySalesPipelineYearFilter" runat="server" Width="60px" Label="Year Filter:"
                                AllowCustomText="false" DataSourceID="odsYears" DataTextField="DisplayMember"
                                OnClientSelectedIndexChanged="rcbMyQuarterlySalesPipelineYearFilter_ClientSelectedIndexChanged"
                                OnClientLoad="rcbMyQuarterlySalesPipelineYearFilter_ClientLoad" />
                        </div>
                    </CommandItemTemplate>
                    <HeaderStyle Font-Bold="true" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="Qtr" HeaderText="Qtr" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridBoundColumn DataField="PrevGP" HeaderText="Prev Yr GP" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="PrevGpPercent" HeaderText="Prev Yr GP %" DataFormatString="{0:p0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="GP" HeaderText="GP" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="GpPercent" HeaderText="GP %" DataFormatString="{0:p0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="Variance" HeaderText="Variance" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadPageView>
      
        <telerik:RadPageView ID="rpvMyBiAnnualIncentive" runat="server">
            <telerik:RadGrid ID="rgBiAnnualIncentive" runat="server" CssClass="rgBlendWithTabStrip" EnableViewState="false">
                <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">
                    <ClientEvents OnCommand="function() {}" />
                </ClientSettings>
                <MasterTableView ClientDataKeyNames="Qtr" CommandItemDisplay="Top">
                    <CommandItemTemplate>
                        <div align="right" style="padding:3px">
                            <telerik:RadComboBox ID="rcbBiAnnualIncentiveYearFilter" runat="server" Width="60px" Label="Year Filter:"
                                AllowCustomText="false" DataSourceID="odsYears" DataTextField="DisplayMember"
                                OnClientSelectedIndexChanged="rcbBiAnnualIncentiveYearFilter_ClientSelectedIndexChanged"
                                OnClientLoad="rcbBiAnnualIncentiveYearFilter_ClientLoad" />
                        </div>
                    </CommandItemTemplate>
                    <HeaderStyle Font-Bold="true" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="Period" HeaderText="Period" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridBoundColumn DataField="Revenue" HeaderText="Revenue" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="GP" HeaderText="GP" DataFormatString="{0:p0}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="GPGoal" HeaderText="GP Goal" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        <telerik:GridBoundColumn DataField="Variance" HeaderText="Variance" DataFormatString="{0:c2}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadPageView>
      
    </telerik:RadMultiPage>
  11. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 04 Feb 2011 Link to this post

    Hi Jerry T.,

    It is good that you have found the cause of the issue. 

    Andrew, is your issue the same?

    Kind regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  12. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 04 Feb 2011 Link to this post

    yes, we did not have a script manager on our page, do you recommend that in projects where masterpage are used that we put a scriptmanager on the masterpage?
  13. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 04 Feb 2011 Link to this post

    A ScriptManager is always required when working with ASP.NET Ajax controls. Best practice is to place it on the MasterPage, so all content pages get the ScriptManager.
  14. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 04 Feb 2011 Link to this post

    why was able to compile and run my app without a script manager if it is required
  15. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 04 Feb 2011 Link to this post

    sorry in my prevous posts I was refering a radstylesheetmanager not a scriptmanager but does the same apply for putting it on the masterpage
  16. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 04 Feb 2011 Link to this post

    Yes, it's much better to put a ScriptManager or the StyleSheetManager on the MasterPage and use Proxies on your ASPX pages.

    Jerry


    Our MasterPage:
    <telerik:RadScriptManager ID="rsmSiteMaster" runat="server" EnableCdn="true" CdnSettings-TelerikCdn="Enabled" OutputCompression="AutoDetect"
        EnablePartialRendering="true" EnableScriptCombine="true" ScriptMode="Release" AjaxFrameworkMode="Enabled">
        <Scripts>
            <asp:ScriptReference Name="Telerik.Web.UI.Common.Core.js" Assembly="Telerik.Web.UI" />
            <asp:ScriptReference Name="Telerik.Web.UI.Common.jQuery.js" Assembly="Telerik.Web.UI" />
            <asp:ScriptReference Name="Telerik.Web.UI.Common.jQueryInclude.js" Assembly="Telerik.Web.UI" />
            <asp:ScriptReference Name="DMCpro.Web.UI.Scripts.Common.jQueryPlugins.min.js" Assembly="DMCpro.Web.UI" />
        </Scripts>
        <CompositeScript ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="DMCpro.Web.UI.Scripts.CssBrowserSelector.min.js" Assembly="DMCpro.Web.UI" />
                <asp:ScriptReference Name="DMCpro.Web.UI.Scripts.Common.Core.js" Assembly="DMCpro.Web.UI" />
            </Scripts>
        </CompositeScript>
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="rssmSiteMaster" runat="server" OutputCompression="AutoDetect" CdnSettings-TelerikCdn="Disabled">
        <StyleSheets>
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.Common.Site.min.css" Assembly="DMCpro.Web.UI" />
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadInput.RadInput.min.css" Assembly="DMCpro.Web.UI" />
        </StyleSheets>
    </telerik:RadStyleSheetManager>


    The StyleSheetManagerProxy on our user home page (the one I've been posting about in this thread):
    <dmc:StyleSheetManagerProxy ID="ssmpUserHome" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadGrid.RadGrid.min.css" Assembly="DMCpro.Web.UI" />
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadScheduler.RadScheduler.min.css" Assembly="DMCpro.Web.UI" />
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadCalendar.RadCalendar.min.css" Assembly="DMCpro.Web.UI" />
            <telerik:StyleSheetReference Name="DMCpro.Web.UI.Skins.DMCpro.RadComboBox.RadComboBox.min.css" Assembly="DMCpro.Web.UI" />
        </StyleSheets>
    </dmc:StyleSheetManagerProxy>
  17. Chris
    Chris avatar
    5 posts
    Member since:
    Dec 2011

    Posted 17 Feb 2012 Link to this post

    I'm having this problem also, but I have the RadScriptManager in my page. If I start clicking back and forth, they will jump into alignment and function as expected. Also, my tabs are just displaying as a bulleted list instead of the outlined tab look. I'm not sure if that's related.
  18. Chris
    Chris avatar
    5 posts
    Member since:
    Dec 2011

    Posted 20 Feb 2012 Link to this post

    I solved my problem. I used fiddler against my project and another fresh one I built that worked just to see what was different. I determined that the new working project was sending more requests to get the webresources.dll assets and that makes sense why the original wasn't rendering or behaving correctly. I compared code, web.configs, porjects, everything I could think of but couldn't find the difference. Finally I created a new project in my solution, dragged a tab control to it, then started migrating of the pieces from my main project to this new one to see when it would break...but it never did. Using winmerge I still don't see the difference between the working and non-working project directories, but it's working now so I deleted the original and renamed the new one into place. I'm happy it's functioning as expected, but not very happy I could not determine the cause. I'm posting this because someone may benefit from the idea of recreating their project from scratch to solve a strange problem like this.
  19. Don
    Don avatar
    1 posts
    Member since:
    Apr 2014

    Posted 18 Aug 2015 in reply to Cori Link to this post

    This worked for me :P 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017