Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
I added this code to my aspx file:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" />

This code makes the control appear on my page. The problem is that no matter what date I select on the calendar, today's date shows up in the textbox. I've tried it in multiple browsers with the same results.

Am I missing something here?
Patrick
Top achievements
Rank 1
 answered on 16 May 2011
2 answers
58 views
I came accross an issue where I was only able to see the first tab. Clicking on any other tab would not work. I isolated the issue to the following:

One of the tabs contained RangeValidators. After removing these, everything started working.

Layout:
RadTabStrip
    Tabs

RadMultiPage
    RadPageView1
        UserControl

    RadPageView2
        UserControl containing a RangeValidator

    RadPageView3
        Empty


Note: RequestValidation="false" for this page

No resolution at this point. I just dropped the validation control out of my usercontrol and using my own error presentation methods instead.
Gerry
Top achievements
Rank 1
 answered on 16 May 2011
1 answer
107 views
Switching to HTML source mode shows the text formatted in blue at a particular point size.

This is a hard set property on the <textarea> that is used to display and edit the text.

There is no built-in classname on this object. All my efforts to override the font size (inclduing specifying the entire dom path to the object using font-size: 1.5em !important; rules doesn't work since the style property ON the runtime-generated textarea overrides the styles in my page sheet.

Out client has stressed how unreadable (and therefore unusable) this makes the html source mode, which is of particular importance to them.

What is the correct method for changing the size of this area? We are using the default skin only.
Rumen
Telerik team
 answered on 16 May 2011
12 answers
426 views
I'm following this demo to use "global item template feature" of RadGrid but using Client-side binding. Somehow I'm not able to access the label element within the ItemTemplate in RadGrid1_RowDataBound event. I can this event called up but the label comes up NULL. Can someone please advice how I can achieve this? Thanks.
<telerik:RadGrid ID="RadGrid1" PageSize="10" AutoGenerateColumns="false" runat="server">
    <MasterTableView TableLayout="Fixed" DataKeyNames="itemid" ClientDataKeyNames="itemid">
            <ItemTemplate>
                    <asp:Label ID="lblDetail" runat="server" Text=""></asp:Label>
            </ItemTemplate>
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <ClientSettings>
            <ClientEvents OnRowCreated="OnRowCreated"  OnRowDblClick="OnRowDblClick" OnCommand="RadGrid1_Command" OnRowDataBound="RadGrid1_RowDataBound" />
        </ClientSettings>
    </telerik:RadGrid>

function RadGrid1_RowDataBound(sender, args)
{
   var lbl = args.get_element().findElement("lblDetail");
   lbl.innerHTML = "This is test";
}
HarryM
Top achievements
Rank 1
 answered on 16 May 2011
1 answer
67 views
Hi,

I am using the RADGrid and some users using laptops have complained about the grid headers moving to the right of the screen creating a horizontal scroll. I dont see that on my desktop. Is there any setting that would not distort the grid headers.
I have already tried setting UseStaticHeaders='true'.

Any suggestions would be appreciated.

Thanks
Pavlina
Telerik team
 answered on 16 May 2011
1 answer
100 views
My client is having a number of problems pasting in a Word document and retaining the formatting.  I can reproduce the problem in the Telerik Demo site located at:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

I have the Q1 2011 version installed in our app as well.

The issue varies based on the browser I'm testing it in.  The main issue is in IE7 and IE8:

- If I paste the attached word doc and Clean it, The bullets lose their indentation and numbering (everything gets numbered "1")
-If I past and don't clean it, everything appears OK at first, but if you go to HTML view, then back to Design view, the bullets lose their indentation and fonts change styles, and even some content is lost. 

I am pasting from Word 2010 on Windows 7 if that matters.

...i am unable to attach my sample word doc for you to test.  Please advise.
Rumen
Telerik team
 answered on 16 May 2011
15 answers
228 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
91 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
149 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
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?