Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 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
117 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
218 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
74 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
106 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
1 answer
276 views
Hi, I've a problem very stupid.
I want use a RadWindow as "Confirm dialog" for an action.
The problem is the text of RadWindow.
If I set the title of RadWindow directly work very well, if I use a variable as title
the radwindow not work (click of button don't show me the radwindow)
 

PAGE ASPX

 <asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function confirmCallbackFn(arg) {
                if (arg) //the user clicked OK
                {
                    __doPostBack("<%=HiddenButton.UniqueID %>", "");
                }
            }
        </script>
    </telerik:RadCodeBlock>
 
    <asp:Button ID="Button1" Text="call the RadConfirm" OnClick="Button1_Click" runat="server" />
    <asp:Button ID="HiddenButton" Text="" Style="display: none;" OnClick="HiddenButton_Click" runat="server" />

 

Example A : This Work 

protected void Button1_Click(object sender, EventArgs e)
{          
     rwmMain.RadConfirm("Are you sure you want to perform this action?", "confirmCallbackFn", 300, 200, null, "Confirm");
}

Example B : This work

protected void Button1_Click(object sender, EventArgs e)
{          
     string message = "Are you sure you want to perform this action?";
     rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");
}

 

Example c : This not work

protected void Button1_Click(object sender, EventArgs e)
{         
     string message = GetGlobalResourceObject("MainResources", "DeleteConfirmCompany").ToString();
     rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");
}

Example D : This not work

 

protected void Button1_Click(object sender, EventArgs e)
{        
     string message = lblDeleteConfirm.Text;
     rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");
}

 

I must translate the text.

 

lupotana
Top achievements
Rank 1
 answered on 01 Jul 2015
6 answers
356 views
How can the last node in a RadNavigation control be right-aligned?

Referring to the attached picture and the HTML below I'd like to right-align the "navNodeSearchBox" node within the RadNavigation control while all other items remain left-aligned.

                <div id="divNavigation" class="pageWidthElementPlus5px" style="vertical-align:top; display:block; margin-left:-1px; text-align:left " >
                    <telerik:RadNavigation ID="radNavigation1" runat="server" MenuButtonPosition="Right" BorderStyle="None" BorderColor="Transparent" BorderWidth="0px" >
                        <Nodes>
                            <telerik:NavigationNode ID="navNodeHome" Text="Home" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeCategories" Text="Categories" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeSearch" Text="Search" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeView" Text="View" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeAbout" Text="About" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeMyAccount" Text="My Account" runat="server"></telerik:NavigationNode>
                            <telerik:NavigationNode ID="navNodeSearchBox" Text="search videos" runat="server" CssClass="searchBoxWrapper" Width="400">
                                <NodeTemplate>
                                    <telerik:RadSearchBox ID="RadSearchBox1" runat="server" Width="370"></telerik:RadSearchBox>
                                </NodeTemplate>
                            </telerik:NavigationNode>
                        </Nodes>
                    </telerik:RadNavigation>
                </div>
Magdalena
Telerik team
 answered on 01 Jul 2015
3 answers
86 views

Currently, We are using ‘telerik:RadUpload’control to browse file from network location. ‘telerik:RadUpload’ is not allowed to browse FTP site using IE; however we can browse FTP site using Firefox and Chrome browser.

How can we upload/download file from FTP site using IE browser?? 

 

Nileshkumar
Top achievements
Rank 1
 answered on 01 Jul 2015
3 answers
236 views

Hi everybody,

I want to store uploaded files into Different drive (suppose E:drive) and want to specify upload file in web config file. 

  <add key="Telerik.AsyncUpload.TemporaryFolder" value="D:\temp-backup"/>

How to refer in the code block.

  protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
        {
            List<ListItem> files = new List<ListItem>();
            int counter = 1;
            var file = e.File;
                string targetFolder = AsyncUpload1.TargetFolder;
                string targetFileName = System.IO.Path.Combine(targetFolder,
                    file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
                while (System.IO.File.Exists(targetFileName))
                {
                    counter++;
                    targetFileName = System.IO.Path.Combine(targetFolder,
                        file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
     
                }
          
               file.SaveAs(targetFileName);

}

where should i specify the appsetting string? THanks in advance

Dimitar
Telerik team
 answered on 01 Jul 2015
3 answers
82 views

Hi,

I gave Items per request as 50 records. So 1st time you scroll the list has 50 Records,2nd time you scroll the list has 100 records and 3rd time you scroll the list has 150 records ..etc. I have total 4050 records are available.

But here problem is it starting at the beginning of the list instead of the next displayed records. i.e. when you scroll till the end and it loads next 50 records and jumps to first item of total loaded list instead pointing to the 51 record. 

 So how to start scroll from the next loaded list . i.e. 1st time you scroll will be at the start 1 Record, 2nd time scroll will be at the start of 51 record etc...

Ivan Danchev
Telerik team
 answered on 01 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?