Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
202 views
Is ther anyway to disable click on treeview items that have children? I.E. if using treeview in combobox example how and a hierarchy like this (retrieved from sql using sqldatasource)

        Papers
            Technical
            Forms
            Brochures

How would i disable the Papers node so that the user could only select it's children and not Papers itself?
Veselin Vasilev
Telerik team
 answered on 11 Jul 2008
1 answer
139 views
The controls I have put on my page (RadNumericTextBox) do not respond when incorrect inputs are typed into the textbox. The spin buttons also do not work as required, what could the issue be? I have put references to the telerik controls on the page and all that but the text box behaves as a normal text box. Any help would be appreciated.

Thanks.
Lee
Maria Ilieva
Telerik team
 answered on 11 Jul 2008
1 answer
126 views
I'm using a RadComboBox within an ModalPopupExtender, and although the control populates, the matches (dropdown) shows in the background -- i can still use my arrow keys to navigate the list and select from it, but it isn't really useable if the user can't see it

I tried changing the zindex of the RadComboBox control, but that didn't solve the problem.


thanks!
Debbie Cruz
Yana
Telerik team
 answered on 11 Jul 2008
9 answers
269 views
 I get the following error when I try to run the BindtoList sample (Dec 2008) for the scheduler:
Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript(System.Web.UI.Page, System.Type, System.String, System.String, Boolean)'.

Does anyone know how to resolve this and get this sample to run?

Nicole
Online .Net Developers
Top achievements
Rank 1
 answered on 11 Jul 2008
1 answer
222 views

Our system allows the uploads of files, it will also automatically log out a user if there is no activity for 10 minutes.  The problem is this, a user entered the system, started to upload a file and then left the computer.  Since there was no activity for 10 minutes the user was automatically logged off, which interrupted the process of transferring the file.  Is there anyway of preventing a user being logged out if there is an active process running?

Below are the lines of code definining the period of time before being logged off, and the timeout time for the upload process.  Thanks.

<

forms loginUrl="AutorizationChecker.aspx" protection="Validation" timeout="10"/>

<

httpRuntime maxRequestLength="102400" executionTimeout="3600"/>

Erjan Gavalji
Telerik team
 answered on 11 Jul 2008
3 answers
172 views
I recently switched over from the old controls to the ASP.NET ones. What I'm seeing though is that the AJAX performance is much slower with the new ones.

I am using the RadAjaxManager to load portions of my page...sometimes large portions. In cases where I load a large portion of the page I see the page appear behind my loading panel, and then it takes about another 7 seconds (in IE) for the loading panel to go away and the client-side response end handler to get called.

The markup returns quickly and is rendered by the browser within 3 seconds, but what on Earth is going on the other 7 seconds is a mystery. I'm guessing that there is a bunch of client-side script running, but this is a reaaaally long delay. With the old RadAjaxManager it was much quicker.

Any suggestions around what I can do to debug it, and try to figure out why?

By the way, the delay is less than half in Firefox of what it is in IE.

Thanks,
Ross
Vlad
Telerik team
 answered on 11 Jul 2008
0 answers
976 views
We just posted a new blog post about RadToolTip and we hope this post will be useful to all who try to combine the tooltip with other RadControls and use it in more advanced scenarios that are not always covered in our online demos. Here it is: Some RadToolTip tips & tricks.

Best regards,
The Telerik team
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 11 Jul 2008
1 answer
181 views
Having a problem is returning the a value when closing a window.

The parent page is set up using the RadWindowManager

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

<Windows>

<telerik:RadWindow runat="server" Behavior="Default" InitialBehavior="None" Left=""

Modal="True" NavigateUrl="GroupSearchPopup.aspx" OpenerElementID="<%# lnkGroupSearch.ClientID %>"

Style="display: none;" ReloadOnShow="true" ClientCallBackFunction="OnGroupCallback"

Title="Donation Group Search" Top="" Width="450px" Height="300px" ID="rwGroupSearch">

</telerik:RadWindow>

<telerik:RadWindow ID="rwDonorSearch" runat="server" Behavior="Default" Width="550px"

Height="500px" InitialBehavior="None" Left="" Modal="True" NavigateUrl="DonorSearchPopup.aspx"

ReloadOnShow="true" OnClientClose="OnDonorSearchClose" Style="display: none;"

Top="" OpenerElementID="<%# lnkPersonSelect.ClientID %>"

OnClientDragEnd="OnClientDragEnd">

</telerik:RadWindow>

</Windows>

</telerik:RadWindowManager>


Parent client side code to handle the Window close

function OnDonorSearchClose(sender, eventArgs) {

alert(

"action on close = " & eventArgs);

oValue = eventArgs;

if (oValue.action > 0) {

// Set a hidden field to the value

document.getElementById(

'<%= Me.hfPersonID.ClientID %>').Value = oValue;

document.getElementById(

'<%= Me.btnScriptUpdate.ClientID %>').click();

}

}

Modal window client code

 

function CloseWithArg(sender, eventArg) {

var currentWindow = GetRadWindow();

alert(

"Arg = " + eventArg);

currentWindow.argument = eventArg;

currentWindow.close();

}

The alert in the modal CloseWithArg function displays the correct value

but the alert on the parent OnDonorSearchClose function displays only a 0. Even the text portion of the alert is not displayed.

Any hints as to what I'm doing wrong?

Thanks

Jacques

Georgi Tunev
Telerik team
 answered on 11 Jul 2008
1 answer
100 views
I've a problem with showing and hiding a column via an ajax request.  When I set the column's Visible property to false, the column is hidden, but when set back to true the column does not reappear.

Try the following page

ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <script type="text/javascript"> 
        function firePostBack(arg) 
        { 
            $find('<%=ajaxManager.ClientID %>').ajaxRequest(arg); 
        } 
    </script> 
    <form id="form1" runat="server"> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadAjaxManager OnAjaxRequest="ajaxManager_AjaxRequest" ID="ajaxManager" runat="server"> 
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="ajaxManager"> 
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grid" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
        </div> 
         
        <telerik:RadGrid runat="server" ID="grid" OnNeedDataSource="grid_NeedDataSource"> 
             
            <MasterTableView AutoGenerateColumns="false"> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col1"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col1"></telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
         
        </telerik:RadGrid> 
 
 
        <a href="#" onclick="firePostBack('1');return false;">Fire</a> 
    </form> 
</body> 
</html> 
 

C#

using System; 
using System.Data; 
using System.Configuration; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using System.Net; 
using System.Collections.Generic; 
using Telerik.Web.UI; 
 
public partial class _Default : System.Web.UI.Page  
{ 
 
 
    protected void grid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
    { 
        DataTable table = new DataTable(); 
        table.Columns.Add("col1"); 
        table.Columns.Add("col2"); 
         
        table.Rows.Add("data1", "data2"); 
        table.Rows.Add("data3", "data4"); 
        table.Rows.Add("data5", "data6"); 
 
        grid.DataSource = table; 
    } 
 
    protected void ajaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) 
    { 
        grid.Columns.FindByUniqueName("col2").Visible = !grid.Columns.FindByUniqueName("col2").Visible; 
    } 
} 

When you click the fire button an ajax request is fired and the second column's visiblity is toggled.

The first click hides the column, which is fine, but the second click doesn't show it again..

Any ideas?

Thanks,

Stephen



Veli
Telerik team
 answered on 11 Jul 2008
1 answer
51 views
Hi,

I'm populating a treeview lazy with webservice class, works all fine..

But today I discovered that I cannot set the CssClass in the RadTreeNodeData class.. it does include the disabledCssClass, HoveredCssClass etc etc.. but not the default CssClass.

Does anybody know a workaround/fix for this ?

Thanks,
suresh
Veselin Vasilev
Telerik team
 answered on 11 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?