Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
155 views
Hi. I want a simplified configuration of the RadEditor. However, I get an error:

"The string parameter 'key' cannot be null or empty"

All I have done is create a new page and add an Editor control. That obviously runs fine. I've created an "Editor" directory in my site and copy BasicTools.xml (from the telerik demos). I then set the editor control's ToolsFile property to reference the xml. Just making that change causes the site not to run and I get the above error message. What's wrong?
Dobromir
Telerik team
 answered on 08 Mar 2011
2 answers
70 views
Hi,

I am trying to show the tooltips of a special day with tooltip manager.

I am trying to follow the below example:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipcalendar/defaultcs.aspx

I have the following code in page load and day render
protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        RadCalendarDay day = new RadCalendarDay();
        day.Date = new DateTime(2011, 3, 25);
        day.ToolTip = "Test <br /> Test.";        
        cal.SpecialDays.Add(day);               
    }
}
 
protected void cal_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
    if(e.Day.Date == new DateTime(2011, 3, 25)){
        TableCell cell = e.Cell;
        cell.Attributes.Add("id", cal.ClientID + e.Day.Date.Day.ToString());
        ttMngr.TargetControls.Add(e.Cell.Attributes["id"], true);
    }
}

I also have the following items in the aspx page
<telerik:RadAjaxLoadingPanel ID="loading" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>   
<telerik:RadToolTipManager ID="ttMngr" runat="server" Width="230px" Height="300px" RelativeTo="Element" >
</telerik:RadToolTipManager>
<telerik:RadAjaxPanel ID="ajaxPnl" runat="server" LoadingPanelID="loading">
   <telerik:RadCalendar ID="cal" runat="server" ondayrender="cal_DayRender">
   </telerik:RadCalendar>
</telerik:RadAjaxPanel>

But when I hover over the day it doesn't show the tooltip with the tooltip manager, a regular tooltip opens.

What am I missing here?

Thank you...
Eric
Top achievements
Rank 1
 answered on 08 Mar 2011
5 answers
72 views
Hi,

I am trying to change the month displayed with a button click in code-behind.

<telerik:RadCalendar ID="RadCalendar1" runat="server" ShowOtherMonthsDays="false"></telerik:RadCalendar> <br />
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Prev</asp:LinkButton>  <br />
<asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">Next</asp:LinkButton>
protected void LinkButton1_Click(object sender, EventArgs e)
{
    RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(-1);
}
 
protected void LinkButton2_Click(object sender, EventArgs e)
{
    RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(1);
}

When I go back to February 2011 from March 2011 I can only see days from March 2011 although Focused Date is a date from February 2011.

Thank you...
Eric
Top achievements
Rank 1
 answered on 08 Mar 2011
2 answers
78 views
Stupid problem probably but make me crazy. I have link button. I want to display tool tip with image when i hover it with mouse. But I am not able to show image in tool tip. I get only tool tip without image This is my code. Please help.
*.aspx

<script type="text/javascript"><br>
    var currentTooltip = null;<br>
<br>
<br>
    function OnClientBeforeShow(sender, args) {<br>
        //Hide the currently visible tooltip <br>
        if (currentTooltip) {<br>
            if (currentTooltip != sender) currentTooltip.hide();<br>
            return;<br>
        }<br>
<br>
<br>
        currentTooltip = sender;<br>
        args.set_cancel(true);<br>
    }<br>
<br>
<br>
    function centerTooltip(img) {<br>
        if (currentTooltip) {<br>
            currentTooltip.set_contentElement(img);<br>
<br>
<br>
            //use the method updateLocation because it does not call WebService's method which loads the content <br>
            currentTooltip.updateLocation();<br>
            currentTooltip = null;<br>
        }<br>
    }<br>
    </script><br>
<br>
<br>
 <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="center"<br>
        RelativeTo="BrowserWindow" OnClientBeforeShow="OnClientBeforeShow" EnableShadow="true" Height="500" Width="500">        <br>
    </telerik:RadToolTipManager><br>
<br>
<asp:LinkButton ID="LinkButton1"    runat="server">over me</asp:LinkButton>

*.cs
protected void Page_Load(object sender, EventArgs e)<br>
 {<br>
            this.RadToolTipManager1.TargetControls.Add(this.LinkButton1.ClientID, "~/camry xle wheel.jpg", true);<br>
 }
Marin Bratanov
Telerik team
 answered on 08 Mar 2011
2 answers
91 views
Hi.....

I have 2 radlistbox

using javascript ---On click of Add button i am transftering data from radlistbox 1 to radlistbox 2........

After transfttering item in radllistbox2 radlistitem2's item.set_checked(true) doesn't work..... list items remains as it is as un check....
Moksha
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
68 views
HI

Im using telerik drop down with ASp.net drop down in my Website.
whn i expand the telerik drop down the expanded area is getting overlaped by ASP.net drop downs
plese find the attachment for more information

i tried resolving this using Z-index still its giving same problem for the first time

Help me resoving this

Thanks
Hairn
Kalina
Telerik team
 answered on 08 Mar 2011
1 answer
173 views
Hi.

I am using Telerik RadScheduler. I want to disable or rather make radscheduler invisible for a selected date.

It means if i select a date the rad scheduler calendar, the scheduler should not be visible or at least I should get a pop-up message saying that the date is invalid.
Shinu
Top achievements
Rank 2
 answered on 08 Mar 2011
3 answers
272 views
Hi,

I added a RadCombobox to a page with Datasource pointed to a LINQDataSource. Then I add a Javascript to set its value on load:

<script type="text/javascript">
       var combox = $find("<%=dfDocuments.clientID %>");
       combox.set_value('3');
   </script>

It works fine, but then I add the following code to add a blank line to the Combobox:

Protected Sub dfDocuments_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles dfDocuments.DataBound
        Dim li As New RadComboBoxItem
        li.Value = "0"
        li.Text = "--Select--"
        li.Selected = False
        dfDocuments.Items.Insert(0, li)
    End Sub

Then the set_value script doesn't works anymore.

Any advice? Thanks.

Andy
Kalina
Telerik team
 answered on 08 Mar 2011
3 answers
42 views
After installing the RadEditor, in order to make it the default editor in SharePoint, I would have to Active the features on all site collections or sites themselves?  If so, how far down the hierarchy does enabling these features make them the default editor?

Thanks
Henrik
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
34 views
How modify other control on node expanding event with TreeNodeExpandMode.ServerSideCallBack?
Kate
Telerik team
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?