Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
49 views
Hi Team;

There is a case that I'm not quite clear how to grasp it and I hope you can explain it better to me. This question can relate to either Upload for ASP.Net Ajax or MVC. I have not finalize which route to go yet.

My understanding: When I write code for the Upload events to execute Before & After a file has been uploaded in the case that the file is uploaded to the same server and same domain, the code can create a directory on the server and then store the file and rename it if it needs to. Basically, the code would know about the root and directory of  the website.

Now, suppose the website is being hosted on some shared or dedicated hosting company. So, the actual code running is on the hosting server, however the files that are being uploaded will be stored on Amazon S3 server and not on the same server as the website is.
My question is, how will I be able to control the same logic on the Amazon server (location of file, File name and etc.) the same way as if the file was on the code server?

Any explanation or links would be appreciated.
Thank you in advance.
..Ben
Ben Hayat
Top achievements
Rank 2
 answered on 16 May 2011
2 answers
118 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
56 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
96 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
413 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
65 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
94 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
219 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
86 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?