Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
I get error message on page where I have RadUpload control:

RadUpload Ajax callback error. Source url returned invalid content:
<html>
    <head>
        <title>The resource cannot be found.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}................

I get this error message only when I publish application on sever. When I run it from visual studio from my computer it works fine.
I have original version of telerik: Telerik_2012_Q2_912
Other controls work fine. Shluld I change something for server version?

Thanks,
Matej
Bozhidar
Telerik team
 answered on 11 Oct 2012
1 answer
84 views
Hi there,
is there any way of changing the current Skin of a RadToolTip on the client using jscript?

Thanks!
Princy
Top achievements
Rank 2
 answered on 11 Oct 2012
4 answers
171 views
I have a RadMenu which uses different types of drop-down menus. In this example the "Lists & Libraries" menu is a dynamic menu pulling from the SiteMapDataSource. As you can see it lists the titles and sub-content from the site. However, when using a Site Map control for the "Tools & Resources" the title of each group has a horizontal line separating it from the content of that group. I want these different types of menu to look exactly the same.  How do I accomplish this? What would be optimal is to include this horizontal line in every menu title, but if this is not possible I would settle for removing the horizontal line from every menu title. Any ideas?





thanks
Alex Dove
Kate
Telerik team
 answered on 11 Oct 2012
3 answers
253 views
I am dynamically ajaxing controls but how can I remove the ajax from the control later on?  Is there a way I can query the ajaxmanager for a control id and remove all the ajax settings just for that control?

RadAjaxManager1.AjaxSettings.AddAjaxSetting(control1, control2)
Vasil
Telerik team
 answered on 11 Oct 2012
1 answer
119 views
I turned my Login page to Telerik Components. There some problems!
At first, when I saved the password by browser, RadTextBox.Text was empty. That's why I turned back to asp TextBoxes.

Than I found that published website at first load at IIS server throw the Console Errors.

At second time all was complete.

 I try to fix and understand the problem, but I can't. Please, help as fast as possible!


Here is my used telerik components and their properties:
<form id="Login" method="post" runat="server">
<telerik:RadScriptManager ID="ScriptManagerLogin" runat="server" LoadScriptsBeforeUI="False">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"/>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"/>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"/>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"/>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"/>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"/>
</Scripts>
</telerik:RadScriptManager>
//First Window
<telerik:RadWindow runat="server" Modal="True" VisibleOnPageLoad="true" Height="260px" Width="284px" Behaviors="Move" VisibleStatusbar="False" ID="RadWindowLogin" Title=" Account Information" EnableShadow="false" Behavior="None">
<ContentTemplate>
<div align="center">
<table  width="258px">
<tr>
<td style="width:70px;">
<asp:Label ID="labelDomainInfo" runat="server" Text="Domain:" ForeColor="Gray" />
</td>
<td style="text-align: center;">
<asp:TextBox ID="TextBoxDomain" runat="server" Width="180px" />
</td>
</tr>
<tr>
<td style="width:70px;">
<asp:Label ID="labelUserInfo" runat="server" Text="Username:" ForeColor="Gray" />
</td>
<td style="text-align: center;">
<asp:TextBox ID="TextBoxUsername" runat="server" Width="180px" />
</td>
</tr>
<tr>
<td style="width:70px;">
<asp:Label ID="labelPasswordInfo" runat="server" Text="Password:" ForeColor="Gray" />
</td>
<td style="text-align: center;">
<asp:TextBox ID="TextBoxPassword" runat="server" Width="180px" TextMode="Password" />
</td>
</tr>
</table>
<table width="258px">
<tr>
<td style="width:40%;">
<asp:CheckBox ID="CheckBoxPersist" runat="server" Text=" Persist Cookie " TextAlign="Left" Font-Size="Small" ForeColor="Gray" />
</td>
<telerik:RadButton ID="ButtonLogin" runat="server" Text="Login" OnClick="ButtonLoginClick" Width="60px">
</telerik:RadButton>
</td>
</tr>
</table>
<asp:Label ID="LabelError" runat="server" ForeColor="#FF3300" ClientIDMode="Static" />
</div>
</ContentTemplate>
</telerik:RadWindow>
 
//second window: if no root group select
<telerik:RadWindow ID="RadWindowSelectRoot" runat="server" Modal="True" VisibleOnPageLoad="false" AutoSizeBehaviors="Default" Behaviors="Move" VisibleStatusbar="False" Title=" Select Admin Group, Please" Height="500px" Width="500px">
<ContentTemplate>
<div align="center">
<table>
<tr>
<td rowspan="2">
<telerik:RadListBox ID="RadListADGroups" runat="server" DataKeyField="Id" DataSourceID="ObjectDataSourceADGroup"
                                    DataTextField="Name" EmptyMessage="Active Directory is missing" ClientIDMode="Static"
                                    Height="420px" PersistClientChanges="False" TransferMode="Copy" Width="400px" />
</td>
<td style="height: 80px;">
<telerik:RadButton ID="RadButtonAddRoot" runat="server" Text="Enter" Height="60px" Width="60px" OnClick="RadButtonAddRootClick">
</telerik:RadButton>
</td>
</tr>
<tr>
<td style="width: 100px;">
<asp:Label ID="LabelMessage" runat="server" ForeColor="#FF3300" ClientIDMode="Static" />
</td>
</tr>
</table>
</div>
<asp:ObjectDataSource ID="ObjectDataSourceADGroup" runat="server" SelectMethod="SelectADGroups" TypeName="Scheduler.WebClient.ADGroup" />
</ContentTemplate>
</telerik:RadWindow>
</form>
Vasil
Telerik team
 answered on 11 Oct 2012
3 answers
438 views
Hello,

I have listbox with checkboxes.
I need to select/deselect item when checkbox is checked/unchecked and check/uncheck checkbox when item is selected/deselected.
I have implemented this by adding handlers to OnClientSelectedIndexChanged and OnClientItemChecked events.

<script type="text/javascript">
    var lock;
    var SelectedIndexChanged = function (sender, event) {
        if (!lock) {
            lock = true;
            var item = event.get_item();
            var listbox = item.get_listBox();
             
            item.check();
             
            var selectedItems = jQuery.makeArray(listbox.get_selectedItems());
            var checkedItems = listbox.get_checkedItems();
            var diffItems = [];
 
            for (var i = 0; i < checkedItems.length; i++) {
                if (jQuery.inArray(checkedItems[i], selectedItems) == -1) {
                    diffItems.push(checkedItems[i]);
                }
            }
 
            for (var i = 0; i < diffItems.length; i++) {
                diffItems[i].uncheck();
            }
 
            lock = false;
        }
    }
 
    var ItemChecked = function (sender, event) {
        lock = true;
        var i = event.get_item();
        i.set_selected(i.get_checked());
        lock = false;
    }
</script>

<asp:ScriptManager ID="sc" runat="server">
    </asp:ScriptManager>
    <telerik:RadListBox ID="lstbx1" runat="server" AllowDelete="false" AllowReorder="true"
        CheckBoxes="true" AllowTransfer="false" AutoPostBack="false" DataKeyField="ID"
        DataTextField="Name" DataValueField="ID" SelectionMode="Multiple"
        EnableDragAndDrop="true" Height="210" Width="250"
        OnClientSelectedIndexChanged="SelectedIndexChanged"
        OnClientItemChecked="ItemChecked">
        
    </telerik:RadListBox>

It works fine when single or multiple items are selected.
But it does not work if items were moved by buttons or by mouse.
When item "N1" (for example) is moved and then I select other item, listbox.get_checkedItems() returns this item and then I do uncheck for it in SelectedIndexChanged handler. But checkbox of this item is still checked, moreover listbox.get_checkedItems() does not return the item anymore. It looks like the item has 'not checked' status in object model but its checkbox is still checked.

I use ASP.NET AJAX Q1 2011.

/Vladimir

Vladimir
Top achievements
Rank 1
 answered on 11 Oct 2012
5 answers
151 views
Hi All,

I want to RadScheduler DayStartTime in client side like 9:30. i am not sure how to Set the timing in Client Side.

Please let me know is it possible or not?


Thanks in Advance,
Dhamu,
Boyan Dimitrov
Telerik team
 answered on 11 Oct 2012
2 answers
63 views
I'm trying to change the scheduler to add an option to change all occurrences in a series OR to change just this and future occurrences. The problem I just ran into is that when you select "edit all" it opens the parent schedule item and I cannot seem to find any reference to the date of the occurrence that was selected to actually make the change. Is there a way to get this?

Thanks!
Plamen
Telerik team
 answered on 11 Oct 2012
14 answers
694 views
I am trying to migrate from a homegrown composite "DualListBox" control. One of the things I spent a lot of time on is making sure that if I moved an item from listbox1 to listbox2, if I moved it back, it moved in the same place. Especially if the source listbox is "sorted." I need to make sure that when I transfer back from one listbox to the original, the sort is maintained. How do I do this?

Andrew
Yien
Top achievements
Rank 1
 answered on 11 Oct 2012
2 answers
200 views
If I open a word document and upload the document by RadAsyncUpload, it will throw the javascript error " Error while uploading, The process cannot access the file 'XXX' because it is being used by another process" if enable show js error. My question is there are a way to show a friendly message to user in that case?
Plamen
Telerik team
 answered on 11 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?