Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
162 views

I have a control I that contains a DockLayout.

In the OnInit method of this control, I call a method to create a Dock and then populate it. Once that's done, this gets called...

void InitializeDock(RadDock DockToInitialize, DockState LoadedState)
{
    DockToInitialize.ID = string.Format("Dock{0}", LoadedState.UniqueName);
    GetLayoutControl().Controls.Add(DockToInitialize);
    if (!IsPostBack)
    {
        GetAjaxifiedPanel().Controls.Add(DockToInitialize);
    }
    if (String.IsNullOrEmpty(LoadedState.DockZoneID))
    {
        RadDockZone dz = (RadDockZone)FindControl("RadDockZone2");
        if (dz != null)
        {
            LoadedState.DockZoneID = dz.ClientID;
        }
    }
    DockToInitialize.ApplyState(LoadedState);
}

All good so far.

At some point in the cycle, OnSaveDockLayout gets called. Even though the object that I'm using to create and populate the layout knows about my Dock, and I can see it in the appropriate DockZone, GetResgisteredDocksState() always returns an empty List<DockStates>.

I thought it might me something to do with the call to ApplyState() so I just created the Dock and calleddock.Dock(dockZone) on it  and still got the empty list when OnSaveDockLayout was called.

What process is it that causes the source used by OnSaveDockLayout to be populated?

--
Stuart

Slav
Telerik team
 answered on 30 Jan 2012
1 answer
63 views
In my product I use the RadEditor Version 7.2.1.0 (2007Q2SP1).

I use the JavaScript Client side object of the RadEditor for my feature requirements.
In all the version of IE and till FireFox 5.0 it works fine. It stopped working for latest versions of FireFox (8.0 and 9.0).

Even I tried a bare minimum sample. It works for FF 5.0 and doesn't for FF 9.0
Here is the code that I used. This doesn't work for FF 8.0 and above.

<form id="Form1" method="post" runat="server">         
      <div>
      <radE:RadEditor id="RadEditor1" editable="true" Runat="server"></radE:RadEditor>         
      </div>
      
   <script language="javascript">         
   
   function GetReference1()
    {
       var editor = GetRadEditor("<%=RadEditor1.ClientID%>");
       alert(editor.Id); //returns RadEditor Client ID
    }
          
   </script>         
  
   <input type="button" value="Get Ref1" onclick="GetReference1()"
</form>

Also I have code that streams JavaScript from Code behind. This also stops working from FF 8.0

protected override void Render(HtmlTextWriter writer)
    {
      base.Render(writer);
      writer.WriteBeginTag("script");
      writer.WriteAttribute("type", "text/javascript");
      writer.Write(HtmlTextWriter.TagRightChar);
      writer.WriteLine("var HtmlEditor = " + RadEditor1.ClientID + ";");
      writer.WriteLine("alert(HtmlEditor)");
  
      writer.WriteEndTag("script");
    }

This gives me RadEditor1 is not defined error.

Please help.
Rumen
Telerik team
 answered on 30 Jan 2012
2 answers
157 views
Hello Everyone,
I need to restrict the Numpad keys to enter in the Rad Editor.
Shinu
Top achievements
Rank 2
 answered on 30 Jan 2012
6 answers
776 views
Hello,

I've a RadGrid bases on a datatable. On initial binding the pager item does not show up. When refreshing the grid it does.

Can anyone help me?

Regards,
  Jos Meerkerk
RvdGrint
Top achievements
Rank 1
 answered on 30 Jan 2012
1 answer
64 views
I have a simple bar chart that I created programmatically that is not data bound.  The label on each series bar item is showing the Y-value and I want to keep that label as-is.  I do not want to show the legend for space reasons and have turned its visibility off.  Instead of a legend I would like to have the series name to appear at the bottom of the series bar where the x-axis is.  I have tried the code below on the first series and get an "index out of range" error and actually don't know if this is the way to accomplish what I want. How do I accomplish what I want programmatically?

       Dim chartSeries1 As ChartSeries = Radchart1.CreateSeries("Identified", System.Drawing.Color.Blue, System.Drawing.Color.Blue, ChartSeriesType.Bar)
       chartSeries1.AddItem(45)
       chartSeries1.PlotArea.XAxis.AutoScale = False
       chartSeries1.PlotArea.XAxis.Items(0).TextBlock.Text = "Identified"

MARK
Top achievements
Rank 1
 answered on 30 Jan 2012
3 answers
181 views

If you click the justify (left, center, right, justify) buttons in the RadEditor in Mozilla Firefox 9 when you have text highlighted, nothing happens.

Example: I checked Google Chrome and it works fine when I click the "center" justify button after inspecting the element.

element.style {
text-align: center;
}

Rumen
Telerik team
 answered on 30 Jan 2012
2 answers
168 views
i'm using the RadEditor for some CMS, and when the page submits the iframe seems to get stripped out from its content.

I'm using the RadEditor in its default mode(iframe as opposed to div). I've set allowscripts to true, i've also disabled this in the code behind;

Me.re_html.DisableFilter(Telerik.Web.UI.EditorFilters.RemoveScripts)

even though in this circumstance i suppose its irrelavent.
is there another filter i've overlooked regarding iframes? i can't find one.
Alan T
Top achievements
Rank 1
 answered on 30 Jan 2012
1 answer
78 views
Hello,

I have been working on Radscheduler for sometime  and we have a requirement, in radscheduler if we  create tasks  they will be shown in Rectangular boxes Extending upto howmany days/hours that task is assigned our requirement is to replace the Hyperlinks in place of rectangular boxes ,if the task is assigned to day or two show the same task for two days individually instead of continuing the rectangular box  can we do that in telerik ,i am sending a screen shot of tasks  in scheduler according to requirement what we need (if we click on tasks the hyperlink will appear in actual website)  Please respond if u  know how to do it in telerik.

Regrds,
Madhukar.
Peter
Telerik team
 answered on 30 Jan 2012
1 answer
32 views
Hi
In Month view, how to make the week´s number display at the left side of each row?
Ivana
Telerik team
 answered on 30 Jan 2012
4 answers
260 views
Hi,

How can I add styles for appointment mouse hover and appointment select. I tried various custom skins, but I do not find any style applied on appointments for these events. Please suggest.

Ivana
Telerik team
 answered on 30 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?