Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
267 views
Hello,
I have an Update Panel in my content page and a tree view in Master Page.
TreeView's Node click is set for AsyncTrigger of Update Panel.
code for onclientnodeclick event of tree:

function test(sender, args)
{
   $('#Message').Load(args.get_node().get_value()+'.htm');
}

Message is a span element in ContentTemplatesection of Update Panel .
When clicking a node some pages are shown but some pages are not shown and by refreshing the page IE causes:
Stack overflow at line 6

files are : 1.htm , 2.htm, 3.htm , ...
don't know really what to do!
Tooraj
Top achievements
Rank 1
 asked on 26 Aug 2012
3 answers
90 views

when i click one check box multiple check box are checked true 
this is the way i check here but that all are not checked

                        document.getElementById('<%= Chk_Admins.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Technice.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_requestor.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Req_Port.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Tech_Port.ClientID %>').Checked = true; 


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 25 Aug 2012
0 answers
76 views

Hi, is there a settings to set all the Items and sub items for the item collection to PostBack="False" ?

I know each Item can be set by its own, I can write a recursive function to set it to False but it seems like a waste, is there a master setup for the entire control to never post back on an item click?
I searched the forums but could not find anything I guess I just missing a simple settings...

Thank You,
Gabriel.
Gabriel
Top achievements
Rank 1
 asked on 25 Aug 2012
5 answers
219 views
Greetings,

We are using RadControls Ajax 2009.1 311 and have encountered a javascript error that prevents modules from being dynamically placed in Page_Init. We do not experience this problem in any other browser except for IE8.

In the Page_Init we are using 
ScriptManager.RegisterStartupScript(  
dock,  
GetType(),  
"AddDock" + controlId,  
string.Format(@"function _addDock{2}() {{  
Sys.Application.remove_load(_addDock{2});  
$find('{1}').dock($find('{0}'));  
$find('{0}').doPostBack('DockPositionChanged');  
}};  
Sys.Application.add_load(_addDock{2});", dock.ClientID, FindControl(zone).ClientID, controlId), true); 

The error that IE8 gives is  

---------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sat, 21 Mar 2009 03:52:04 UTC

Message: Invalid argument.
Line: 597
Char: 1
Code: 0
URI: /ScriptResource.axd?d=XKpUX8S7IKwR9HGDHQJQ7PjplCbQNpuJI5GQbMZueaFWR37nx5jBKBTPzX59hwo70&t=ffffffffafb50a67
---------------

We noticed that we view the output of this script resource in other browsers we get the javascript output but when we try to view it using IE8 we get compressed output. When checked we could see that there is HTTP compression being applied to the resource, but we haven't setup any HTTP compression for this project yet.

Are the Telerik controls compressing the output for their Scripts and if so, is there any way to turn this compression off so that we can validate this theory that IE8 isn't decompressing the Gzipped output properly.

Regards,

Jason

 

Aaron Jessen
Top achievements
Rank 1
 answered on 24 Aug 2012
1 answer
82 views
I have ScrollChildren set to true but when I get 1 tab past the edge of the screen it automatically wraps and created a new row whenever a tab is added.

I've gone through the forums and only found a suggestion to check the css, which seemed an exceptionally poor answer since it didn't detail what might affect the tabstrip to cause the wrapping.    I've removed the stylesheet anyway, then tried setting width 100%, and so on, including using IE's Developer Tools to inspect the css but I have yet to figure out how to  change it to prevent the new row, especially since the only styles on the element now are the inline ones produced by Telerik's code.

Any suggestions would be very much appreciated.
Chris Owens
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
72 views
Hello,

could I use RadTimeView just as usual control, not connected to some e.g. RadTimePicker or something?
When I just put it on my page I see from HTML markup that the "wrapper" div has the "display:none" style, so it is not visible.
How could I make it visible on the server?

Thanks in advance,
Ilya.
Seekbirdy
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
34 views
Hello,

I'm trying to get the selectedItem from the comboBox but since I load it up with info from a string on the server side it wont do anything.
The items are there however on both the server side and client side they seem empty.

Here's the asp control:
<telerik:RadComboBox
                 ID="RadComboBox1" runat="server"
                 Width="590px" Height="140px"
                 EmptyMessage="Type something here"
                 OnItemsRequested="RadCombobox2_ItemsRequested" EnableLoadOnDemand="true"
                 >
</telerik:RadComboBox>
And the .cs
protected void RadCombobox2_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        for(int i=0;i<mono.M_content.Count;i++)
        {
            if (mono.M_content[i].M_type == 0)
            {
                RadComboBox1.Items.Add(new RadComboBoxItem(mono.M_content[i].C_Description.ToString()));
            }
        }
    }
 
protected void Button1_Click(object sender, EventArgs e)
    {
        label12.Text = RadComboBox1.SelectedValue.ToString();
        //RadEditor1.Content = test;
    }

I load the ComboBox with info from a database and I have a button which is supposed to paste that info into the RadEditor but I won't do anything, I've tried all the event handlers from the ComboBox without success, I still get nothing, not even an error.

Any ideas on how I can fix this?

Thanks a lot for your help.

Greetings
Jonathan
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
291 views
Hi
Im trying to use radWindow like iFrame, when the initial page is loaded (Login.aspx), show the "loading" image but, when the page use Post to other page (Index.aspx), the window dont show the loading image.

This is my code
    <telerik:RadWindow ID="wndw_ppal" runat="server" NavigateUrl="Login.aspx" CssClass="main-content"
         AutoSizeBehaviors="Width, Height, Default" KeepInScreenBounds="True"
        VisibleStatusbar="False" VisibleTitlebar="False"
        Behavior="Close" Behaviors="None"
        ShowContentDuringLoad="False" ShowOnTopWhenMaximized="False"
        VisibleOnPageLoad="True" Height="100%" Overlay="True" Width="100%"
            BorderWidth="0px" OnClientPageLoad="ResizeWindow">
Danilo
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
329 views
I am having an issue hiding a label in a GridTemplateColumn.

Here is my grid:
<telerik:RadGrid ID="rgd_User_List" runat="server" AllowSorting="True"
    DataSourceID="sds_User_Lookup" GridLines="None" AllowPaging="True" PageSize="200">
    <ClientSettings
        AllowColumnsReorder="True" ReorderColumnsOnClient="True">
    </ClientSettings>
    <PagerStyle
        Mode="NextPrevAndNumeric" AlwaysVisible="true" HorizontalAlign="Center" Position="TopAndBottom">
    </PagerStyle>
    <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="IDStaff" DataSourceID="sds_User_Lookup">
        <CommandItemSettings ExportToPdfText="Export to Pdf"
            ShowAddNewRecordButton="False" ShowExportToCsvButton="True"
            ShowRefreshButton="False" />
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridTemplateColumn DefaultInsertValue="" HeaderText=" "
                UniqueName="TemplateColumn1">
                <itemtemplate>
                    <%# Container.ItemIndex+1 %>
                    </itemtemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name"
                SortExpression="LastName" UniqueName="LastName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name"
                SortExpression="FirstName" UniqueName="FirstName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="IDStaff" HeaderText="Staff ID"
                SortExpression="IDStaff" UniqueName="IDStaff">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="IDBitech" HeaderText="BiTech ID"
                SortExpression="IDBitech" UniqueName="IDBitech">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name"
                SortExpression="UserName" UniqueName="UserName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Password" HeaderText="Password"
                SortExpression="Password" UniqueName="Password">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="JobTitle" HeaderText="Job Title"
                SortExpression="JobTitle" UniqueName="JobTitle">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PhoneIP" HeaderText="IP Phone"
                SortExpression="PhoneIP" UniqueName="PhoneIP">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="Restraints" HeaderText="Restraints"
                SortExpression="Restraints" UniqueName="Restraints">
                <ItemTemplate>
                    <asp:Label ID="RestraintsLabel" runat="server" Text='<%# Eval("Restraints") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridHyperLinkColumn DataNavigateUrlFields="UserName"
                DataNavigateUrlFormatString="user_details.aspx?UserName={0}" Text="Details"
                UniqueName="UserName">
                <ItemStyle CssClass="radgrid" />
            </telerik:GridHyperLinkColumn>
            <telerik:GridHyperLinkColumn AllowFiltering="False"
                DataNavigateUrlFields="EmailAddress" DataNavigateUrlFormatString="mailto:{0}"
                HeaderText=" " ItemStyle-HorizontalAlign="Center" UniqueName="EmailAddress">
                <ItemStyle CssClass="radgrid" Width="50px" />
            </telerik:GridHyperLinkColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
Here is my code:

Protected Sub rgd_User_List_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles rgd_User_List.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim value As String = item("Restraints").Text
        If value = "1" Then
            Dim Restraints As Label = DirectCast(item("RestraintsLabel").Controls(0), Label)
            Restraints.Visible = False
        End If
    End If
 
End Sub


Any help appreciated.
Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Aug 2012
0 answers
69 views
Hi,

i'm having an error in Telerik.Web.UI.Webressource line 1763 saying :
SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a553a4a13-b3a5-4e6b-a152-b131051f1788%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3afr-FR%3ac8b048d6-c2e5-465c-b4e7-22b9c95f45c5%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a1e771326%3aa7e79140%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4, line 1763 character 1
it is actually in the Telerik.Web.UI.Ajax.Ajax.js because I see /* START Telerik.Web.UI.Ajax.Ajax.js */ before the code that raise the exeption.

It seams to only appear in IE after a couple refresh of the page. The strange thing is that I don't use  RadAdjaxManager or any Ajax controls in that page and the code seems to try finding update panel in my page.

thanks


UPDATE : forget it. I had a RadAjaxManager on a page without RadAjaxLoadingPanel and that is what was seems to cause the error
Tommy
Top achievements
Rank 1
 asked on 24 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?