Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
446 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
73 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
114 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
247 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
105 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
141 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
165 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
100 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
56 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
196 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?