Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
Hi

I'm using the AJAX Manager to update a control inside a page built upon a masterpage (all controls for this update are located in the detail-page, so there is no interaction with the master-page). This all works great but as soon as the new data has been loaded the page-title of changes to "untitled page".

I tried to change this by setting the ajax-manager-property:

EnablePageHeadUpdate="True" 

And in the Code-Behind where the data is beeing updated I tried to change the title using the following code:

Page.Header.Title = "Test" 
 ---
Master.Page.Header.Title = "Test" 
 ---
Master.Page.Title = "Test" 
 ---
Dim mp As New MasterPage 
mp = CType(Master, MasterPage) 
mp.Page.Title = "asdf" 
(these are several approaches in one code-block - I tried all of them - nothing worked)

Also setting the ajax-property "EnablePageHeadUpdate" to false didn't do the trick.

So, how do I change the page-title?

Thanks!
Andreas
Maria Ilieva
Telerik team
 answered on 01 Jul 2015
1 answer
122 views
can we edit telerix asp and .net assets/code on other content management system? We are planning to buy telerik and would like to know portability feature. If required, can we port new code that we will write on telerix to other platforms like Drupal, Joomla
Marin Bratanov
Telerik team
 answered on 01 Jul 2015
1 answer
181 views

I've added a RadAutoCompleteBox to a web control but when you type it causes a post back even though I have set Autopostback="false".

No results are returned

 

<telerik:RadAutoCompleteBox ID="RadAutoCompany" Runat="server" InputType="Text" TextSettings-SelectionMode="Single" AutoPostBack="False" Delimiter=";" Width="200px"
          DataSourceID="SqlDataSource1" DataTextField="CompanyName" DataValueField="CompanyId" DropDownWidth="150px" EmptyMessage="type company name">
  
     </telerik:RadAutoCompleteBox>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" SelectCommand="SELECT [CompanyId], [CompanyName] FROM [Company] ORDER BY [CompanyName]"></asp:SqlDataSource>

Nencho
Telerik team
 answered on 01 Jul 2015
1 answer
129 views

Dear Team,

We are using CloudUpload Control and restricted the file size and type. On validation failed we are displaying an alert to the user. 

Is it possible to manually clear the File List Panel Items and Upload File Count using Javascript?  I tried to remove by using the below lines but count is not getting cleared. Please suggest.

  $('.rcuList > li').remove()
   $(".rcuFileList").find("ul").remove();

 

Thanks in advance

Phani.

Nencho
Telerik team
 answered on 01 Jul 2015
1 answer
196 views

Hi there, I have a problem when work with RadComboBox. I use: 

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

 It't OK but when I use with database comboxbox not working at first time run until I click button GET CHECKED ITEM and it works.

Please tell me why

Ianko
Telerik team
 answered on 01 Jul 2015
1 answer
80 views

We have a RadGrid which storing the persistence settings into a database.  When we change the group, for example grouping on a column, the information is saved into the database, if we navigate away and back this state is restored, perfect.

If we deleted the grouping (or filter) on the database and so return it to it's default state, the application hangs and the IIS worker process maxs out.

We have tried using the file storage method and get the same result.  Anything but non-default grid layouts are stored and retrieved perfectly, return back to default cause the application to hang on retrival of the settings.

 -------------------------------------------------------------------------------------------

    <telerik:RadPersistenceManager ID="RadPersistenceManagerHome" runat="server">
        <PersistenceSettings>
            <telerik:PersistenceSetting ControlID="TaskListGrid" />
        </PersistenceSettings>
    </telerik:RadPersistenceManager> 

 ------------------------------------------------------------------------------------------- 

        protected void Page_Load(object sender, EventArgs e)
        {
            //RadPersistenceManager RadPersistenceManagerMain = (RadPersistenceManager)Master.FindControl("RadPersistenceManagerMain");

            if (IsPostBack)
            {
                if (Session["UserID"] != null)
                {

                    //RadPersistenceManagerMain.StorageProviderKey = Convert.ToString(Session["UserID"])+"-Home";
                    //RadPersistenceManagerMain.SaveState();
                    RadPersistenceManagerHome.StorageProviderKey = Convert.ToString(Session["UserID"]) + "-Home";
                    RadPersistenceManagerHome.SaveState();
                }
            }
            else if (!IsPostBack)
            {
                //RadPersistenceManagerMain.StorageProviderKey = Convert.ToString(Session["UserID"])+"-Home";
                RadPersistenceManagerHome.StorageProviderKey = Convert.ToString(Session["UserID"]) + "-Home";
                try
                {
                    //RadPersistenceManagerMain.LoadState();
                    RadPersistenceManagerHome.LoadState();

                    TaskListGrid.Rebind();
                }
                catch (Exception ex)
                {

                }
            }

Kostadin
Telerik team
 answered on 01 Jul 2015
1 answer
127 views

Hi.

I have a page that exports an Org Chart to PDF, that works perfectly. However, it can take a couple of seconds for the export to happen. What I'd like to do is disable my export button when clicked until the PDF has been rendered and delivered to the browser, then re-enable the button.

Is there any way I can check to see if the ClientExportManager has completed the export to PDF task?

Ianko
Telerik team
 answered on 01 Jul 2015
5 answers
231 views
setSize on the second radWindow is ignored. Here's my code. The second radWindow opens from the first but it's very small.

Update: I just noticed I'm gett a javascript error but I don't know what it means.
TypeError: this._popupElement is null


Parent Page:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Sitefinity" Behaviors="Close" Overlay="true" Modal="true"
    IconUrl="~/Sitefinity/WebsiteTemplates/App_Themes/1.0/Global/Img/Transparent.png" VisibleTitlebar="false" VisibleStatusbar="false">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" Title="Sofia" runat="server" />
    </Windows>
</telerik:RadWindowManager>
 
<script type="text/javascript">
    //<![CDATA[
    function ShowVideoOverlay(img) {
        var mediaId = img.id;
        var channelId = '<%= ConfigurationManager.AppSettings["Videos"].ToString()%>';
        var oManager = radopen('<%= ResolveUrl("~/VideoOverlay.aspx?MediaId=' + mediaId + '")%>', null);
 
        oManager.setSize(1200, 750);
        oManager.center();
        oManager.SetActive();
 
        return false;
    }
    //]]>
</script>

VideoOverlay.aspx page:

function ShowOverlay(parent, shareId) {
                var oManager = GetRadWindow().get_windowManager();
                setTimeout(function () {
                    oManager.open(GetBaseURL() + 'overlays/share-email.aspx?shareId=' + shareId, null);
 
                    oManager.setSize(600, 480);
                    oManager.center();
                    oManager.SetActive();
 
                    return false;
                }, 0);
            }
Veysel
Top achievements
Rank 1
 answered on 01 Jul 2015
1 answer
83 views

Hello,

I'm working for a customer in France which has 2 business applications using 2 differents versions of Telerik ASP.Net Ajax on the same SharePoint WebApplication.

On the first one, all is working properly, no errors are noticed. This one is using the oldest version of Telerik framework.

On the second one, randomly we noticed some errors which are displayed with a correlationid (Sorry, something went wrong). In SharePoint logs, I have this error message: 

Application error when access /_layouts/15/PF.KPI_QRVI/HomePage.aspx, Error=Telerik.Web.UI.RadImageAndTextTile with ID='RadImageAndTextTileReporting' was unable to find an embedded skin with the name 'Metro'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.   at Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType, Boolean designTime)     at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl control)     at Telerik.Web.UI.RadBaseTile.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()

 

I try  to set  EnableEmbeddedSkins=false in the web.config, but some controls are using embeddedskins (I think so, the two applications have been developed by 2 companies, not by myself).

 It's very difficult to diagnose this problem for me because that seems to be a random behaviour...

Versions used : 

- Telerik.Web.UI.Skins 2014.2.724.45

- Telerik.Web.UI.Skins 2014.3.1024.45

Can you help me ? Thank you !

Marin
Telerik team
 answered on 01 Jul 2015
1 answer
109 views

Is it possible to access controls in the InsertItemTemplate of the GridTemplateColumn? I have the following:

<telerik:GridTemplateColumn UniqueName="Company" HeaderText="Company Name">
    <ItemTemplate>
        <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name")%>'></asp:Label>
    </ItemTemplate>
    <InsertItemTemplate>
       <telerik:RadAutoCompleteBox runat="server" ID="CompanyList" EmptyMessage="select company"></telerik:RadAutoCompleteBox>
    </InsertItemTemplate>
</telerik:GridTemplateColumn>

In the code behind I have:

if (e.Item is GridEditableItem && e.Item.OwnerTableView.IsItemInserted)
{
    GridEditableItem item = e.Item as GridEditableItem;
    RadAutoCompleteBox ab = item["Company"].FindControl("CompanyList") as RadAutoCompleteBox;
}

I also tried:

if (e.Item is GridDataItem && e.Item.OwnerTableView.IsItemInserted)
{
    GridDataItem item = e.Item as GridDataItem;
    RadAutoCompleteBox ab = item["Company"].FindControl("CompanyList") as RadAutoCompleteBox;
}

In both cases ab returns null. When I placed the control inside ItemTemplate, I get the control. I also tried using FindControl on e.Item and item itself and still get null. Basically I want to add a datasource to the autocomplete box only when inserting...on edit I only show the label. I want to bind the control using Telerik Data Access.

 

Eyup
Telerik team
 answered on 01 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?