Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
I am using the telerik version 2010.1.519.40 .Iam trying to set the text of radcombobox through javascript .But this code is not supported on this version.On low version it is working.


My javascript function is

function onCheckBoxClick(chk) {
               var combo = document.getElementById("RadComboBox1");
                combo.set_text("CustomText");
             
              
            }

what is the keyword to set and get text of radcombobox in this version of telerik.
Princy
Top achievements
Rank 2
 answered on 17 Jun 2011
1 answer
36 views
hello, for business reasons the field  mapped as DataRecurrenceField is nullable type. Since I made ​​this change if I drag Drag & Drop me an error javscript is raised. I use a user control with a AppointmentTemplate in, the field DataRecurrenceField I do not need, but if I remove him from the property generates error that tells me that is required how do I?

Veronica
Telerik team
 answered on 17 Jun 2011
11 answers
171 views
Hello,

Actually I am creating RadDocks dynamically with links in it. But when I click on the link its not working and while the page is post back its throwing an error.
Please find the code below.

    protected void Page_Load(object sender, EventArgs e)
    {
        PageLayout();
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Label4.Text = "Click";
    }

    private void PageLayout()
    {
        RadDockZone Zone1 = new RadDockZone();
        RadDockZone Zone2 = new RadDockZone();
        Zone1.BackColor = System.Drawing.Color.White;
        Zone1.MinHeight = new Unit("10px");
        Zone1.Width = new Unit("200px");
        Zone1.BorderStyle = BorderStyle.None;
        Zone1.Style.Add(HtmlTextWriterStyle.Position, "absolute");
        Zone1.Style.Add(HtmlTextWriterStyle.Left, "5px");
        Zone2.BackColor = System.Drawing.Color.White;
        Zone2.MinHeight = new Unit("10px");
        Zone2.Width = new Unit("200px");
        Zone2.BorderStyle = BorderStyle.None;
        Zone2.Style.Add(HtmlTextWriterStyle.Position, "absolute");
        Zone2.Style.Add(HtmlTextWriterStyle.Left, "210px");

        Layout2TableAdapter Layout2Adapter = new Layout2TableAdapter();
        int Dock_Count = Layout2Adapter.GetSubGroup(1, "UB").Rows.Count;

        RadDock[] Docks = new RadDock[Dock_Count];

        for (int i = 0; i < Dock_Count; i++)
        {
            Docks[i] = new RadDock();
            Docks[i].Width = new Unit("485px");
            Docks[i].Skin = "Telerik";
            Docks[i].DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse;
            Docks[i].DockMode = DockMode.Docked;
            Docks[i].Title = Layout2Adapter.GetSubGroup(1, "UB").Rows[i][0].ToString();
            Dock_Layout(Docks[i], "UB");
            if (i % 2 == 0) Zone1.Controls.Add(Docks[i]);
            else Zone2.Controls.Add(Docks[i]);
        }

        Global.DockLayout.Controls.Add(Zone1);
        Global.DockLayout.Controls.Add(Zone2);
        Panel1.Controls.Add(Global.DockLayout);
    }

    private void Dock_Layout(RadDock Dock, string PageViewID)
    {
        Layout3TableAdapter Layout3Adapter = new Layout3TableAdapter();
        ReportTableAdapter ReportAdapter = new ReportTableAdapter();
        QueriesTableAdapter QueryAdapter = new QueriesTableAdapter();
        int Report_Count = Convert.ToInt32(QueryAdapter.ReportCount(1, "UB", Dock.Title));

        if (Report_Count > 0)
        {
            Label[] Labels = new Label[Report_Count];

            int RID = 0;
            string Dock_Height = "";
            string Link_Top = "";
            string Label_Top = "";

            for (int j = 0; j < Report_Count; j++)
            {
                RID = Convert.ToInt32(Layout3Adapter.GetReport(1, "UB", Dock.Title).Rows[j][0]);
                Dock_Height = (j * 60 + 90) + "px";
                Link_Top = (j * 55 + 10) + "px";
                Label_Top = (j * 55 + 25) + "px";

                Dock.Height = new Unit(Dock_Height);

                Global.newLink.ID = "NewLink";
                Global.newLink.Font.Underline = false;
                Global.newLink.Click += new EventHandler(LinkButton2_Click);
                Global.newLink.Style.Add(HtmlTextWriterStyle.Position, "absolute");
                Global.newLink.Style.Add(HtmlTextWriterStyle.Left, "5px");
                Global.newLink.Text = (j + 1) + ". " + ReportAdapter.GetDataByRID(RID).Rows[0][1].ToString();
                Global.newLink.Style.Add(HtmlTextWriterStyle.Top, Link_Top);
                Dock.ContentContainer.Controls.Add(Global.newLink);

                Labels[j] = new Label();
                Labels[j].Text = ReportAdapter.GetDataByRID(RID).Rows[0][2].ToString();
                Labels[j].Font.Italic = true;
                Labels[j].Style.Add(HtmlTextWriterStyle.Position, "absolute");
                Labels[j].Style.Add(HtmlTextWriterStyle.Left, "20px");
                Labels[j].Style.Add(HtmlTextWriterStyle.Top, Label_Top);
                Dock.ContentContainer.Controls.Add(Labels[j]);
            }
        }
    }

And I have declared the link and RadDockLayout globally.
    public static LinkButton newLink = new LinkButton();
    public static RadDockLayout DockLayout = new RadDockLayout();

And please find the error below.

Server Error in '/MyWeb' Application.

Script controls may not be registered after PreRender.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[InvalidOperationException: Script controls may not be registered after PreRender.]   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +155059   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66   Telerik.Web.UI.RadWebControl.RegisterScriptControl() +29   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +22   Telerik.Web.UI.RadDockZone.OnPreRender(EventArgs e) +185   System.Web.UI.Control.PreRenderRecursiveInternal() +80   System.Web.UI.Control.AddedControl(Control control, Int32 index) +8681381   System.Web.UI.ControlCollection.Add(Control child) +80   _Default.PageLayout() +1043   _Default.Page_Load(Object sender, EventArgs e) +166   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +50   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


I am working on this error for more than a month now. I would be greatful if you could tell me some solution for this.
Thanks in advance.

Regards,
Sandeep Devagiri
Atanas Korchev
Telerik team
 answered on 17 Jun 2011
1 answer
111 views

We have migrated our systems from using DayPilot to Telerik but there is a feature available in DayPilot which is lacking from radschedule and there is a lot of demand from our customers to re-enable this feature.

Would it be possible to provide some sort of export to an image file which would be in a suitable format for printing. 

This could work by having an Appointment Item Printing Template, which could only contain very basic mark-up to simplify the task of creating the images.

An example of this in DayPilot is showing here.
http://www.daypilot.org/demo/Calendar/ImageExport.aspx

Veronica
Telerik team
 answered on 17 Jun 2011
1 answer
51 views
I am using the telerik version 2010.1.519.40 .Iam trying to set the text of radcombobox through javascript .But this code is not supported on this version.On low version it is working.


My javascript function is

function onCheckBoxClick(chk) {
               var combo = document.getElementById("RadComboBox1");
                combo.set_text("CustomText");
             
              
            }

what is the keyword to set and get text of radcombobox in this version of telerik.
Cat Cheshire
Top achievements
Rank 1
 answered on 17 Jun 2011
7 answers
259 views
Hi!

I have a MossRadEditor with following line in ToolsFile.xml: <tool name="MOSSInsertTable" />.

When i click the MOSSInsertTable-button in menu i recieve the following message: 
The server tag 'telerik:RadTabStrip' is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix.

I have added the line :
       <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2009.1.318.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

to web.Config.

still, i recieve the message above?  why?




Stanimir
Telerik team
 answered on 17 Jun 2011
1 answer
95 views
Here is my situation, we have a farm using RadEditor 4.3.2 and we are migrating this site to another farm that is using 4.5.6.   After the migraiton the RadEditor webparts that already existed in the site are shown as a web part error.  Is there any way to get this to work because I cannot find this older version of the editor, or is there somewhere I can download this from?
Stanimir
Telerik team
 answered on 17 Jun 2011
4 answers
99 views
hi! i would like to know what do i have to add to .aspx.vb pages so that i can create rad objects like this:

Dim rw As New RadWindow
 I tried to import Telerik.Web but is didn't do anything. I'm trying to create a new window when i click on a button and if necessary to pass some arguments to that same page that this new window is going to open.
I appreciate any help.

Fábio


(SOLVED PART ABOUT Import) - > imports Telerik.Web.UI
Fabio
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
147 views
Here is the column in my ASP.Net Gridview that is working:

<

 

asp:TemplateField>

 

 

<ItemTemplate>

 

 

<asp:LinkButton runat="server" ID="lbtn1" CommandName="cmd1" CommandArgument='<%#Eval("id")%>' Text="View Sections" />

 

 

</ItemTemplate>

 

 

</asp:TemplateField>

The event is called and processed (the method called is 'protected void gv_RowCommand(Object sender, GridViewCommandEventArgs e)' and it assigns the ID to sqldatasource on the page for another use).

 


How do I implement this in a RadGrid and have it call a method in the code behind to pass the value to the other sqldatasource?

Thanks

James
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
59 views
I just ran the install package for the latest version of controls and now my site will not run.  Every time I try I get the same error page which I'm attaching.  Can someone please help so I can work on my site again.  I really need to publish a new version and as it is now I'm completely stuck.
Pero
Telerik team
 answered on 16 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?