Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
I have a RadGrid and I am pulling several columns.  In one of the columns, it displays a checkbox.  True for checked and false for unchecked.  Is there a way to display yes for checked or true as opposed to a checked box?  Thanks!
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2009
2 answers
295 views
OnSelectedIndexChanged server event is not firing on DropDownList ASP.NET control inside RadWindow.
If I use RadComboBox then this event is firing. I am using 2009.1.527.35 version of Telerik.
I am using third party software where I should pass DropDownList reference as parameter to some methods.
And there is no any conversions from DropDownList to RadComboBox.
What can be cause of stopping OnSelectedIndexChanged event of DropDownList and how to fire this event?

Ildar
Ildar
Top achievements
Rank 1
 answered on 11 Sep 2009
2 answers
89 views

I'm trying to utilize the sample Telerik projects and am having problems. In VS 2008 I go to File_Open Web Site and go to any of the projects that were installed under the VS Projects folder. I open Solution explorer and configure the site to be a Telerik site which seems to remove all but one error when I do a build. I always get an error "Could not load type 'xxx._Default" with xxx being in the Page line of the Default.aspx web page. 
So if this is the header from my web page:

 

<%

@ Page Language="vb" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="WebApplication4._Default" %>
I get "Could not load type 'WebApplication4._Default" as an error.

What am I doing wrong?

 

AkAlan
Top achievements
Rank 2
 answered on 11 Sep 2009
1 answer
195 views
Hello,

I was wondering if there is a HasValue type of property for the radCalendar.

The way my code right now looks like this.

DateTime date = RadCalendar1.SelectedDate;

I would like to have something like this

DateTime date = RadCalendar1.SelectedDate.HasValue;

but there is no HasValue property or any other property like it as far as I can tell.

Thanks for the help in advance,
Kirk
Martin
Telerik team
 answered on 11 Sep 2009
4 answers
175 views
Hello,

I need to add the Editor to the page programmatically. When I do, I end up missing about a dozen scripts that I would normally see when the editor is inline in the aspx. Because of the missing scripts, I get "Telerik is not defined."

Here's how I'm adding the control. Can you tell me what else I should be doing?

Thanks,
Jeff

    protected void Page_Load(object sender, EventArgs e) 
    { 
        // "Content" is a ContentPlaceHolder in a master page 
        Content.Controls.Add(InitializeEditor()); 
 
        // Add inline scripts for handling commands. etc. 
        RegisterScripts(); 
 
                // Contains 'EditorLoaded' function, filters, etc. 
        litEditorScript.Text = 
            string.Format("<script src=\"{0}{1}\" type=\"text/javascript\"></script>"
                URLs.RootPath, "js/ControlsEditMode.js"); 
    } 
 
    private RadEditor InitializeEditor() 
    { 
        RadEditor re = new RadEditor(); 
 
        re.ContentFilters = EditorFilters.RemoveScripts | EditorFilters.FixEnclosingP | EditorFilters.FixUlBoldItalic | 
            EditorFilters.MozEmStrong | EditorFilters.ConvertFontToSpan | EditorFilters.ConvertFontToSpan | 
            EditorFilters.IndentHTMLContent; 
        re.ContentAreaCssFile = "~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
        re.ToolsFile = "~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"
        re.Skin = "Office2007"
        re.NewLineBr = false
        re.OnClientPasteHtml = "OnClientPasteHtml"
        re.OnClientLoad = "EditorLoaded"
        //Css, Font, MSWordRemoveAll 
        re.StripFormattingOptions = EditorStripFormattingOptions.Css | EditorStripFormattingOptions.Font | 
            EditorStripFormattingOptions.MSWordRemoveAll; 
 
        re.CssFiles.Add("~/style.css"); 
        re.CssFiles.Add("~/designer.css"); 
 
        re.FlashManager.DeletePaths = new string[] { "~/Files" }; 
        re.FlashManager.UploadPaths = new string[] { "~/Files" }; 
        re.FlashManager.ViewPaths = new string[] { "~/Files" }; 
 
        re.ImageManager.DeletePaths = new string[] { "~/Images" }; 
        re.ImageManager.UploadPaths = new string[] { "~/Images" }; 
        re.ImageManager.ViewPaths = new string[] { "~/Images" }; 
 
        re.DocumentManager.DeletePaths = new string[] { "~/Files" }; 
        re.DocumentManager.UploadPaths = new string[] { "~/Files" }; 
        re.DocumentManager.ViewPaths = new string[] { "~/Files" }; 
 
        re.MediaManager.DeletePaths = new string[] { "~/Files" }; 
        re.MediaManager.UploadPaths = new string[] { "~/Files" }; 
        re.MediaManager.ViewPaths = new string[] { "~/Files" }; 
 
        return re; 
    } 
 
    private void RegisterScripts() 
    { 
        Type cstype = GetType(); 
        ClientScriptManager cs = Page.ClientScript; 
        string strPageEditorInline = HttpContext.Current.Server.MapPath(URLs.RootPath + "Sitefinity/Admin/Scripts/PageEditorInline.js"); 
 
        // Check to see if the client script is already registered. 
        if (!cs.IsClientScriptBlockRegistered(cstype, "PageEditorInline") && 
            File.Exists(strPageEditorInline)) 
            cs.RegisterClientScriptBlock(cstype, "PageEditorInline"
                File.ReadAllText(strPageEditorInline), true); 
 
    } 
Jeff
Top achievements
Rank 1
 answered on 11 Sep 2009
3 answers
165 views
Hi all.  I've been looking through the Dynamic Docks example and was wondering whether there were a way to add docks and zones exclusively through client-side script?

What I'm ultimately trying to do (and trying to decide if we can leverage the RadDock and zone controls for this) is to have a series of docks on the screen in a single zone, with each dock acting as a container for a zone and other docks... in this case, the container docks are Categories and the child docks are Items within those categories.  The items should be sortable within a category, and draggable to other categories.  The categories themselves should be sortable as well.

I have a simple example with some pre-defined category and item docks working as a proof-of-concept to show that we could have nested docks this way.  But I would then need to allow a user the ability client-side to create new categories and items as well.  Can we mimic a $create(Telerik.Web.UI.RadDoc...) call within a client button's onclick event or otherwise create the new docks/zones from javascript?
Stephen Austin
Top achievements
Rank 1
 answered on 11 Sep 2009
3 answers
213 views
I have a large website I support that is using the RadGrid's filtering functionality. Everything works perfectly minus one issue - I have a skin file defined on the site that applies a default style to all buttons. It appears the RadGrid filtering options menu (where you can select Contains, Does Not Contain, etc) is using standard buttons, but unfortunately the style I have is overriding the image icon that is normally there so I just get a blank button. Changing the button style from the skin to manual CSS classes on every page would be a huge undertaking. Is there any way I can access this button and give it a specific skin so it will ignore the CSS class being used everywhere else?

Side question: it looks like the filtering options (Contains, etc) are Enum's but their default ToString() names are utilized so options are like DoesNotContain and such. Why wouldn't these be formatted to have spaces in them (i.e. "Does Not Contain")?
digitall
Top achievements
Rank 1
 answered on 11 Sep 2009
1 answer
96 views
Hi,

Day, week, month and timeline are all fine views.

But if users just want a list of actually appointments, and not all those "empty days" - what view should he use?

I suggest an "Appointment view" where the scheduler transform into a Grid like construction with paging, filter and view appointment functionality.

Then it would be easy and fast to find those appointments you know are there.

Another nice "add-on" would be to highlight those days containing appointments(inside the drop down calendar).

Maybe the functionality are already there, I just haven't found it.

It's a beautiful component and fast when using doubleclick - but "a bit" slow when pressing "More" for that modal window. At first I was not sure if I clicked "More" - now I learned to just wait for a good thing :-)

Regards,
Hessner
Peter
Telerik team
 answered on 11 Sep 2009
5 answers
413 views
Hi, Its my first time to use radscheduler so I've been checking out sample but seems like I cant find any that uses sql database as its datasource. I already have a schedule creator using other pages, this is like subject or course scheduling. Data is already existing on the database which has data range, time range, subject, teacher, # of students, etc. . What I wanted is to make radscheduler as view only. but if you click on a schedule it will popup the details. Also I want to disable/hide the delete when you rollover the schedule.

If there are samples or documentation that would help start up my project it would be highly appreciated.

Im using ASP.NET AJAX Q1 2009

Thanks in advance,

Rj
RJ
Top achievements
Rank 1
 answered on 11 Sep 2009
4 answers
210 views
When disabling embedded scripts for the telerik controls and including the script reference paths manually, javascript errors occur and sometimes controls are got getting rendered correctly.

We are adding following javascripts manually in the same sequence:

~/scripts/Common/Core.js
~/scripts/Common/Animation/AnimationScripts.js
~/scripts/Common/Navigation/NavigationScripts.js
~/scripts/Common/Scrolling/ScrollingScripts.js
~/scripts/Common/PopUp/PopUpScripts.js
~/scripts/ComboBox/RadComboBoxScripts.js
~/scripts/Grid/RadGridScripts.js
~/scripts/Menu/RadMenuScripts.js
~/scripts/Editor/RadEditor.js
~/scripts/Dialogs/DialogOpener.js
~/scripts/Editor/Modules.js
~/scripts/Spell/SpellCheckService.js
~/scripts/Editor/AjaxSpellCheck.js
~/scripts/Window/RadWindow.js
~/scripts/ToolBar/RadToolBarScripts.js
~/scripts/Splitter/RadSplitter.js
~/scripts/Splitter/SplitterItem.js
~/scripts/Splitter/SplitterPaneBase.js
~/scripts/Splitter/RadPane.js
~/scripts/Splitter/RadSlidingPane.js
~/scripts/Splitter/RadSlidingZone.js
~/scripts/Splitter/RadSplitBar.js
~/scripts/TreeView/RadTreeViewScripts.js

On a particular page, we are using RadMenu, RadToolbar, RadSplitter, RadGrid, RadEditor and RadComboBox controls. While loading a page, we get javascript error - "Sys.ArgumentException:  does not derive from Sys.Component. Parameter name: type". Also, RadSplitter is not getting rendered on the page. However, RadMenu and RadToolbar are getting rendered correctly.

Other pages, where we are using RadEditor and/or RadComboBox, there is no error. Everything works fine.

We suspect some javascript files are missing for splitter or sequence is not correct. Please suggest.

Note that we are using RadControls for ASPNET AJAX Q2 2008.

Thanks,
Bhavin

Bhavin
Top achievements
Rank 1
 answered on 11 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?