Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Hi everyone

I have a tab strip/page views nested in a Telerik Grid, I load the datasources for each of my page views when I click on the main grid itemCommand, this seems to be working 100%.

I need to reload the datasource for the pageview selected by the ontabclick event. But Im not sure I can access the pageView controls etc through this event?
Antonio Stoilkov
Telerik team
 answered on 01 May 2012
1 answer
72 views
Hi, I have a web site that allows the users to select any of the built in Telerik skins (19 skins) at any time to change the look and feel.  I want to use the 

.GridItemDropIndicator_xxxx
{
}
to change the drop indicator but, since the skin can change, do I need to create 19 of these or is there any way to indicate this is for ALL skins?

Thanks, Dave

 

Vasil
Telerik team
 answered on 01 May 2012
1 answer
215 views
Ok what we're trying to do here is upload multiple files along with something similar to a forum post. In order to do this, we need the post's ID to link the file to. Since the submission of the post and the attachments are on the same page, we're expecting to have them submitted at the same time. What I am doing right now is "catching" all of the files as the OnFileUploaded event fires, into the Cache to hold until after the ticket is processed (so that I can retrieve the Ticket ID from the database). 9 times out of 10 this work because all of the files have finished uploading before the user hits the submit button. However, in some cases where the user is finished with the ticket and one of the files is large enough to where it is still uploading when they hit the submit button, any files that are still uploading asynchronously will not make it in.

So my question is, is there an existing technique to be used with the telerik control, or is there some way to disable the submit button while async uploads are still in progress?

Thanks
Plamen
Telerik team
 answered on 01 May 2012
1 answer
68 views
I have a chart and need to write the values ​​inside the bars 
Example:

In my chart, I have 3 series. 1) 56%, 2) 85% and 3) 12%.

These values ​​should be on the bars and not above them 

Vertical Orientation.
Evgenia
Telerik team
 answered on 01 May 2012
8 answers
403 views
Hi,

     I am using the below code to add RadEditor to the asp.net page. I have not added handler to the config file, but using javascripts to add reference to the telerik products. Other control works fine but RadEditor control gives the error : "Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file."

Below is my code :-
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <%--RadEditor--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Popup/PopupScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/RadEditor.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Spell/SpellCheckService.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/Modules.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/TouchScrollExtender.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Animation/AnimationScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowScripts.js" />
            <%--RadEditor--%>
        </Scripts>
    </asp:ScriptManager>
    <div>       
        <telerik:RadEditor ID="reSeperatorContent" MaxHtmlLength="150" runat="server" AutoResizeHeight="true"
            SpellCheckSettings-DictionaryLanguage="en-US" ContentAreaCssFile="~/Enigma/Css/EditorContent.css"
            Skin="Windows7">
            <ImageManager ViewPaths="~/Content/Image/" DeletePaths="~/Content/Image/" UploadPaths="~/Content/Image/" />
            <DocumentManager ViewPaths="~/Content/Document/" DeletePaths="~/Content/Document/"
                UploadPaths="~/Content/Document/" />
            <FlashManager ViewPaths="~/Content/Flash/" DeletePaths="~/Content/Flash/" UploadPaths="~/Content/Flash/" />
            <MediaManager ViewPaths="~/Content/Media/" DeletePaths="~/Content/Media/" UploadPaths="~/Content/Media/" />
            <TemplateManager ViewPaths="~/Content/Template/" DeletePaths="~/Content/Template/"
                UploadPaths="~/Content/Template/" />
            <Modules>
                <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
            </Modules>
        </telerik:RadEditor>       
    </div>

Rumen
Telerik team
 answered on 01 May 2012
1 answer
67 views
Is there a way to perform only an update to a database table (no insert or delete)  when listbox item is transferred from a souce radlistbox to a destination listbox.  Please supply some code in VB if possible.

Thank you
Bozhidar
Telerik team
 answered on 01 May 2012
2 answers
146 views
i'm using following code to bind to RadGrid

boundColumn = new GridBoundColumn();
            boundColumn.DataField = "ElectronicLocation";
            boundColumn.HeaderText = "Electronic Location";
            boundColumn.UniqueName = "ElectronicLocation";
            boundColumn.HeaderStyle.Width = Unit.Pixel(220);
            boundColumn.ItemStyle.BackColor = System.Drawing.Color.AliceBlue;
            RadGrid1.MasterTableView.Columns.Add(boundColumn);

"ElectronicLocation" binds a file path which retrieved from sql query (ex:E:/Docs/aa.pdf).i need to display only the file name on the grid.is there any option available for this? 
Chamara
Top achievements
Rank 1
 answered on 01 May 2012
0 answers
159 views
I am using RadDatePicker in an application page.  The issue is that the control expands to the full page width and displays with block format instead of inline when browsing the page in IE9's compatibility mode.  How do I fix this behavior?

Markup:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadDateTest.aspx.cs" Inherits="Test.SharePoint.Layouts.RadDateTest" DynamicMasterPageFile="~masterurl/default.master" %>
 
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
 
</asp:Content>
 
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Panel ID="pnlControls" runat="server">
    </asp:Panel>
</asp:Content>
 
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Application Page
</asp:Content>
 
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
My Application Page
</asp:Content>


C#:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace Test.SharePoint.Layouts
{
    public partial class RadDateTest : LayoutsPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CreateDateField(0, "One", false);
            CreateDateField(1, "Two", true);
        }
 
        private void CreateDateField(int ID, string name, bool isRequired)
        {
            // Creates a lable with the name of the selection...
 
            Label lbl = new Label();
            lbl.Width = 160;
            lbl.ID = "lblItem" + ID.ToString();
            lbl.Text = name + ":";
            lbl.Style.Add("font-weight", "700");
            this.pnlControls.Controls.Add(lbl);
 
            // Creates a date picker text box
            RadDatePicker txt = new RadDatePicker();
            txt.Width = 230;
            txt.ID = "datItem" + ID.ToString();
            txt.Style.Add("margin-top", "3px");
            txt.Calendar.ShowRowHeaders = false;
            txt.ShowPopupOnFocus = true;
 
            this.pnlControls.Controls.Add(txt);
 
            // If it is required, then add a lable showing its required...
            if (isRequired)
            {
                Label lblReq = new Label();
                lblReq.ID = "lblRequired" + ID.ToString();
                lblReq.Text = "*";
                lblReq.Style.Add("margin-left", "15px");
                lblReq.Style.Add("color", "Red");
                this.pnlControls.Controls.Add(lblReq);
            }
 
            // Add a new lable for a new line feed in HTML.
            this.pnlControls.Controls.Add(new Label() { Text = "<br />" });
        }
    }
}
James
Top achievements
Rank 1
 asked on 01 May 2012
2 answers
143 views
I am trying to use the RadEditor to create a PDF of html that was saved earlier using an HttpHandler. No matter what I try I get a null reference exception.
Is there any reason this should not work? If not, any ideas what I could be missing?

Here is the code I am using currently. I just put this together for testing any help is much appreciated!
public void ProcessRequest(HttpContext context)
      {
          var editor = new Telerik.Web.UI.RadEditor();
 
          editor.ContentFilters = Telerik.Web.UI.EditorFilters.DefaultFilters | Telerik.Web.UI.EditorFilters.PdfExportFilter;
 
          //editor.ExportContent += new Telerik.Web.UI.EditorExportContentEventHandler(editor_ExportContent);
 
          editor.ExportSettings.FileName = "cv";
 
          editor.ExportSettings.Pdf.Title = "TEST";
 
          editor.Content = "<b>HTML</b>";
 
          editor.ExportToPdf();
          
          context.Response.Write("H");
      }

ITLackey
Top achievements
Rank 1
 answered on 30 Apr 2012
1 answer
68 views
i'm using a custom provider to prevent the control from listing a settings file in each folder. it works fine in my development environment but on the live server if the custom provider is used, the control will not list any files under a folder. the wait indicator spins and spins and the files never load. i tested the control on the live server without the custom provider and it works fine.  i'm using the provided example for the custom provider and did not make any changes other than the IsFiltered method. any ideas?

public class CustomProvider : FileSystemContentProvider

    {

        public CustomProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)

            : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)

        { }

        public override DirectoryItem ResolveDirectory(string path)

        {

            DirectoryItem originalFolder = base.ResolveDirectory(path);

            FileItem[] originalFiles = originalFolder.Files;

            List<FileItem> filteredFiles = new List<FileItem>();

            // Filter the files

            foreach (FileItem originalFile in originalFiles)

            {

                if (!this.IsFiltered(originalFile.Name))

                {

                    filteredFiles.Add(originalFile);

                }

            }

            DirectoryItem newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location, originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions, filteredFiles.ToArray(), originalFolder.Directories);

            return newFolder;

        }

        public override DirectoryItem ResolveRootDirectoryAsTree(string path)

        {

            DirectoryItem originalFolder = base.ResolveRootDirectoryAsTree(path);

            DirectoryItem[] originalDirectories = originalFolder.Directories;

            List<DirectoryItem> filteredDirectories = new List<DirectoryItem>();

            // Filter the folders 

            foreach (DirectoryItem originalDir in originalDirectories)

            {

                if (!this.IsFiltered(originalDir.Name))

                {

                    filteredDirectories.Add(originalDir);

                }

            }

            DirectoryItem newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location, originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions, originalFolder.Files, filteredDirectories.ToArray());

            return newFolder;

        }

        private bool IsFiltered(string name)

        {

            return name == Web.SETTINGS_FILENAME;

        }

Warren
Top achievements
Rank 1
 answered on 30 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?