Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
170 views

Hello,

I have perhaps discovered a bug with the AjaxManager when an asp:Label is placed inside the UpdatedControls list for an AjaxSetting.  I have tried this in IE7, FireFox 2 and Google Chrome.

If you add an AjaxSetting and place an asp:Label as one of the UpdatedControls, when rendering the HTML a <div> tag is placed around the label text, which causes a linebreak to appear in the browser.  This may be intended behavior but I'm guessing not?

Cut-and-paste the code sample below and you'll see what I mean.  I'm using the Q2 2008 version for .Net 2.0.  When viewing this in a browser you'll notice there appears to be a linebreak between "text1" and "text2" -- view the source and you'll notice the extra <div> tag around Label1 which is causing the linebreak to appear.

I actually spent hours troubleshooting this today . . . very bizarre, I finally just started plucking elements from my page to discover why this extra <div> tag was being placed around one of my labels, causing the linebreak to appear in IE, and when I finally got to eliminating the RadAjax controls I discovered it.  Your help & input is appreciated!!

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testbug.aspx.vb" Inherits="_Controls_testbug" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="Server"></telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="Button1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="Label1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <asp:Button ID="Button1" runat="Server" Text="Button1" /> 
        <asp:Label ID="Label1" runat="server" Text="text1"></asp:Label> 
        <asp:Label ID="Label2" runat="server" Text="text2"></asp:Label> 
        <asp:Label ID="Label3" runat="server" Text="text3"></asp:Label> 
    </form> 
</body> 
</html> 
Nikolay Rusev
Telerik team
 answered on 16 Apr 2009
3 answers
116 views
Hi everyone, I have TreeView and shows some Data from DB. And I'd like to get content of clicked node from the DB. I mean when I click some node, it must brings some content related node from DB to another table or div. Can you help me about it?
Yngwie
Top achievements
Rank 1
 answered on 16 Apr 2009
3 answers
83 views
Hello

I've an issue with a grid that is grouped by a column and has at least one group collapsed. In client side code, I'm handling the RowContextMenu event. There I use eventArgs.get_itemIndexHierarchical() to get the index of the row that was right clicked. This is returning the index in a way that considers the hidden rows that belong to the collapsed group(s). For example when the grid has four rows but the first three rows belong to a collapsed group and I right click the fourth row (which is the only one being displayed) eventArgs.get_itemIndexHierarchical() returns 3 which is what I'd expect.
But then I use this index to get the actual clicked DataItem using masterTableView.get_dataItems()[indexJustReturned]. But this does not return the correct item because the hidden items are not considered here. Instead nothing is returned because there is no item at position 3 when the hidden items aren't considered.

I'm not sure if this is a bug or if I'm misunderstanding anything. I've created a workaround using a for-loop that loops masterTableView.get_dataItems(). In that loop I compare the current item's _itemIndexHierarchical value with the indexJustReturned, which I don't think is nice because I'm accessing the _itemIndexHierarchical.

So how to get the item from masterTableView.get_dataItems() when there are collapsed groups?

Thank you

Christian
Georgi Krustev
Telerik team
 answered on 16 Apr 2009
2 answers
77 views
Is there an example of using group by while using client side data binding? I could not fined any examples of this or event if it is possible,
Maxim
Top achievements
Rank 1
 answered on 16 Apr 2009
1 answer
95 views
I've just been looking at the Scheduler 'First Look' page and noticed calls to 2 JS functions; 'showScrollableArea' and 'hideScrollableArea'. I can see what they do, I was wondering if someone could explain why it's necessary to do it.

Enquiring minds and all that.

--
Stuart
T. Tsonev
Telerik team
 answered on 16 Apr 2009
1 answer
92 views
I'm using RadEditor 2009.1.311.20 with RadEditor DNN Provider 2009.1.311.

I just noted that my file size declarations in web.config aren't applied anymore. If I declare them in config.xml they get applied.

Did this change eventually? What was the reason?

It's quite complicate for us to track all customizations in DNN projects and ensure they stay during DotNetNuke updates.
Lini
Telerik team
 answered on 16 Apr 2009
2 answers
69 views
Hi,

I have a timer which ticks every 10s, and I want to refresh an asp:image ( its ImageUrl property ).
I've tried to add a RadAjaxManager and add :
            <telerik:AjaxSetting AjaxControlID="MyTimer">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="MyImage" />
                </UpdatedControls>
            </telerik:AjaxSetting>

I change the ImageUrl in the tick of the timer.
The thing is that the image is never changing...

Any Ideas ?
fredn
Top achievements
Rank 1
 answered on 16 Apr 2009
1 answer
215 views
Hi,

I have this control on aspx page:
<telerik:RadComboBox ID="drpMjesto" runat="server" EnableLoadOnDemand="True" EnableTextSelection="False" LoadingMessage="Učitavanje..."  OnItemsRequested="drpMjesto_ItemsRequested" Skin="Telerik" ItemRequestTimeout="500" NoWrap="True"><FooterTemplate><asp:Literal runat="server" ID="ltlMessage" Text="aaa"></asp:Literal>eee</FooterTemplate> 
</telerik:RadComboBox> 
 

In code behind I'm using this:

        protected void drpMjesto_ItemsRequested( object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e )  
        {  
 
            drpMjesto.DataSource = cSifMjesto.GetTopXByNaziv( 20, e.Text );  
            drpMjesto.DataTextField = "Naziv";  
            drpMjesto.DataValueField = "IdMjesto";  
            drpMjesto.DataBind( );  
 
            if ( !e.EndOfItems )  
            {  
                Literal ltl = ( Literal ) drpMjesto.Footer.FindControl( "ltlMessage" );  
                ltl.Text = "...prvih 20";  
            }  
        } 

Data that is populates is correct but I cannot get literal in footer to display message. Its always empty. On page_load I dont clear items or anything. Footer is always displaying aaaeee

Yana
Telerik team
 answered on 16 Apr 2009
1 answer
113 views
Hi,

I'm using the radTabStrip control which has been working fine until my most recent change which was to trap the TabClick event. I now get this error: -

Specified argument was out of the range of valid values.Parameter name: index.

If I remove the TabClick event code, it works again.

Please could someone advise?

Thanks.

Kerry

Paul
Telerik team
 answered on 16 Apr 2009
1 answer
125 views
My radwindow, will only allow the close title bar button to be clicked when i am using any skin other than vista and default.
here is the code behind the window

<telerik:RadWindow ID="RadWindow2" runat="server" onload="RadWindow2_Load"
                            OpenerElementID="<%# ImageButton1.ClientID %>" DestroyOnClose="True"
                            InitialBehavior="Default" ReloadOnShow="True">
                        </telerik:RadWindow>

I do set the skin on the load event

 protected void RadWindow2_Load(object sender, EventArgs e)
    {
        if (((RadSkinManager)Master.FindControl("RadSkinManager1")).Skin != ((RadWindow)sender).Skin)
        {
            string test = ((RadSkinManager)Master.FindControl("RadSkinManager1")).Skin;
                       ((RadWindow)sender).Skin = test;
        }
    }

any ideas? I allow the users to change the skin of the site via a RadSkinManager on a master page
Fiko
Telerik team
 answered on 16 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?