Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
225 views
Hi, I've been using the Telerik controls on my personal site as an opportunity to use them, but I'm finding it very difficult to get the AJAX working.
The error which I observed in Firebug is:
uncaught exception: [Exception... "'Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '

<!DOCTYPE html P'.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744"  data: no]

Line 0


The code is:
using System;
using System.Web.UI;
using Telerik.Web.UI;
using System.IO;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            AddTab("Home", "Home");
            AddPageView(DaveRadTabStrip.FindTabByText("Home"));
            AddTab("Apps","Applications Created by Dave");
            AddTab("Blog","Blog");
            AddTab("Contact","Contact Dave");
        }
 
        /* Using jQuery's document.ready method would only attach the fancybox when the page first loads,
         * which is too early because the content in the RadMultiPage control has not loaded yet and will not
         * work on the other tabs because the content is being loaded using AJAX, so the javascript call
         * at the top of the page does not attach  itself to those newly loaded elements.
         *
         * The piece of javascript needs to be called on each ajax request so it sets up the fancybox on
         * those links. (That is why it is not included in the "if" statement above). To do that, modify the ResponseScripts collection of the RadAjaxManager in your
         * AddPageView method:
         */
        RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
        manager.ResponseScripts.Add("$(\"a.lib\").fancybox({ 'transitionIdn': 'fade','transitionOut': 'fade' });");
    }
 
    private void AddTab(string tabName, string tabText)
    {
        RadTab tab = new RadTab();
        tab.Text = tabText;
        tab.Value = tabName;
        this.DaveRadTabStrip.Tabs.Add(tab);
    }
 
    protected void DaveRadMultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        string userControlName = @"~/UserControls/" + e.PageView.ID + ".ascx";
         
        Control userControl = Page.LoadControl(userControlName);
        userControl.ID = e.PageView.ID + "_userControl";
        e.PageView.Controls.Add(userControl);
    }
 
    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = tab.Value;
        DaveRadMultiPage.PageViews.Add(pageView);
        tab.PageViewID = pageView.ID;
    }
 
    protected void DaveRadTabStrip_TabClick(object sender, RadTabStripEventArgs e)
    {
        AddPageView(e.Tab);
        e.Tab.PageView.Selected = true;
    }
 
}

The code should look pretty familiar as I copied it from one of the Telerik examples. Load on demand (lazy-loading the tabs).
You can observe the behaviour here.

I'd love to know what I'm doing wrong, if anyone can tell me.

Cheers
Maria Ilieva
Telerik team
 answered on 16 May 2011
2 answers
89 views
Hello,

Seems the weeknumbers displayed on the RadDatePicker are not correct.
Today is displayed as weeknumber 21 and its week 20.
The first day of 2011 is in week 52 of 2010 and its not week 1 of 2011.

Its this a bug or can i correct the DatePicker in codebehind?

King regards,
Koen
Koen L
Top achievements
Rank 1
 answered on 16 May 2011
1 answer
126 views
Dear Telerik,

Could you please help me with the following issue?

I've got a scheduler with resources and need to remove some of these resources (knowing their types and keys) from the client-side script.

Is it possible? 

On the following help page http://www.telerik.com/help/aspnet-ajax/scheduler-schedulerresourcecollection.html

there is a methods remove() which seems to be what I need but I can understand how to use it with a certain scheduler object...

Thank you very much!

- Stepan.
Peter
Telerik team
 answered on 16 May 2011
1 answer
147 views
Hello to all expert out there, need some help and some solution for the windows IE9, IE8 and IE7 compatibility view mode in following enviroment--> windows 7 (32-bit & 64-bit), Windows Vista.  The problem that i faced was that, as i plug in the 'telerik:RadTabStrip' on asp.net page at server side, once client side checked the compatibility view, the telerik tab was missing is there any solution for this? i mean i cant control the clients side either their PC had checked the compatibility view mode.
Lini
Telerik team
 answered on 16 May 2011
1 answer
76 views
How do I set a data source for the items in the split buttton?
Pero
Telerik team
 answered on 16 May 2011
1 answer
49 views
HI

in want to access RadCombo1.selected value in Radcombo2.Itemrequested Event with out  any client script

for Preformace ,how to set integral heigt to rad combo

Thanks
Harin

Dimitar Terziev
Telerik team
 answered on 16 May 2011
3 answers
183 views
Hi,
    I am using RadGrid in my webpart in SP2010. When i want to export data to PDF, it throw exception "Error while creating area : Encountered web exception while fetching image from http://win9ksjnedl5ga/my/personal/test/test2/Test3/TestForm2/_layouts/MyProduct/WAResources/Invariant/Images/DownArrowButton.gif: The remote server returned an error: (401) Unauthorized."
    It have a picture in the first column in the RadGrid. When i click it , a context menu will be shown.  If i delete the picture from the RadGrid , it can export to PDF correctly.
   Any suggesttion will be appreciated.

Thanks ,
William
Daniel
Telerik team
 answered on 16 May 2011
1 answer
39 views
Hi,

Please have a look at the attached image.
The text label is overlapping the top of Bar.

Is there any way so that I can give a space between label and bar?
Also can I increase the Y axis values by code behind by one step?
Giuseppe
Telerik team
 answered on 16 May 2011
3 answers
144 views
Hi,

I'm inserting a new black row using javascript and a webservices. Everything works fine except the new row does not show in the grid until I do a page refresh.  Can somebody tell me why is that, or is there a way to do a page refresh using ajax?

Thanks,
Ron
Tsvetina
Telerik team
 answered on 16 May 2011
5 answers
997 views
I want to remove one column for excel export.

I used e.Worksheet.Table.Columns.Remove(3) under ExcelMLExportRowCreated but doesn't work.
I can't make the TagID column invisible on the grid display because I need to use this TagID to check -(!list.Contains(e.Row.Cells.GetCellByName("TagID").Data.DataItem.ToString())) if this TagID exists in the grid. I have to remove it after checking its existing.

-----------------------------------------------------------------------------------

 

if (!list.Contains(e.Row.Cells.GetCellByName("TagID"

).Data.DataItem.ToString()))

 

 

 

{

 

 

 

if (e.RowType == GridExportExcelMLRowType

.DataRow)

 

 

 

{

 

 

 

Int32

i = e.Worksheet.Table.Rows.Count;

 

 

 

e.Worksheet.Table.Rows.Remove(e.Row);

 

}

 

}

 

 

 

 

else

 

 

 

{

e.Worksheet.Table.Columns.RemoveAt(3); // want to remove TagID column for excel display but not working

}


Please help!

Daniel
Telerik team
 answered on 16 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?