Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views

Hi,

I have converted my solution from vs 2005 to vs2010 using the vs 2010 wizard. when i build the application it was built successfully, however i am getting warning "done with some errors" on the bottom of the page. Which is actually not generating the data in my page.
Before converting the code in view source was -->
Filter by Status:&nbsp;<select name="ctl00$contentContent$ddlStatusFilter" onchange="javascript:setTimeout('window[\'ctl00_contentContent_RadAjaxManager1\'].AsyncRequest(\'ctl00$contentContent$ddlStatusFilter\',\'\')', 0)"  
After converting the code using wizard the same code in view source is visible as-->

            Filter by Status:&nbsp;<select name="ctl00$contentContent$ddlStatusFilter" onchange="javascript:setTimeout(&#39;window['contentContent_RadAjaxManager1'].AsyncRequest(\&#39;ctl00$contentContent$ddlStatusFilter\&#39;,\&#39;\&#39;)&#39;, 0)" id="contentContent_ddlStatusFilter" tabindex="10" style="width:119px;">

If you observe all the " ' " are converted into " &#39; " becuase of this i am getting the error  
Webpage error details

Message: Expected ')'
Line: 119
Char: 21
Code: 0
Please suggest how to resolve this issue. 

Slav
Telerik team
 answered on 24 Apr 2013
2 answers
126 views
Hi,

I can change the ImageUrl after transferring an item from left to right.
BUT if I transfer it to left and then to the right side again. The ImageUrl cannot be change.

Here's the demo:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="Test.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var containerPrefix = '';
        var trvElementsID = containerPrefix + 'trvElements';
        var trvQueriesID = containerPrefix + 'trvQueries';
        var trvOrdersID = containerPrefix + 'trvOrders';
        var trvRangesID = containerPrefix + 'trvRanges';
        var lsbOrderItemTargetID = containerPrefix + 'lsbOrderItemTarget';
        var hidQueriesChangedID = containerPrefix + 'hidQueriesChanged';
        var hidOrdersChangedID = containerPrefix + 'hidOrdersChanged';
        var hidRangesChangedID = containerPrefix + 'hidRangesChanged';
         
        function ToggleSort(sender, args) {
            //    debugger;
            var imgAsc = 'ascending.png';
            var imgDesc = 'descending.png';
            var listboxTarget = $find(lsbOrderItemTargetID);
 
            if (listboxTarget) {
                var selectedItem = listboxTarget.get_selectedItem();
 
                if (selectedItem) {
                    listboxTarget.trackChanges();
                    //imageUrl
                    var oldImgUrl = selectedItem.get_imageUrl();
                    var arrUrl = oldImgUrl.split("/");
 
                    //value
                    var oldValue = selectedItem.get_value();
                    var arrValue = oldValue.split(".");
 
                    if (arrValue[0] == 'asc') {
                        arrValue[0] = 'desc';
                        arrUrl[arrUrl.length - 1] = imgDesc;
                    } else {
                        arrValue[0] = 'asc';
                        arrUrl[arrUrl.length - 1] = imgAsc;
                    }
 
                    var newImgUrl = arrUrl.join("/");
                    var newValue = arrValue.join(".");
                     
                    selectedItem.set_value(newValue);
                    selectedItem.set_imageUrl(newImgUrl);
                    listboxTarget.commitChanges();
                }
                else {
                    alert('no item selected');
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" ScriptMode="Release" EnableScriptLocalization="true" EnableScriptGlobalization="true"
        CombineScripts="false" runat="server" EnablePartialRendering="true" />
 
        <div>
        <telerik:RadListBox ID="lsbOrderItemSource" SelectionMode="Multiple" AllowTransfer="true" AllowReorder="false" TransferToID="lsbOrderItemTarget"
            PersistClientChanges="true" Skin="Outlook" runat="server" Height="500px" Width="30%" >
                <Items>
                    <telerik:RadListBoxItem Text="test1" ImageUrl="Images/ascending.png"/>
                    <telerik:RadListBoxItem Text="test2" ImageUrl="Images/ascending.png"/>
                    <telerik:RadListBoxItem Text="test3" ImageUrl="Images/ascending.png"/>
                    <telerik:RadListBoxItem Text="test4" ImageUrl="Images/ascending.png"/>
                </Items>
            </telerik:RadListBox>
 
        <telerik:RadButton runat="server" ID="teleriktoggle" Text="ASC/DESC" OnClientClicked="ToggleSort" AutoPostBack="false"></telerik:RadButton>
        <telerik:RadListBox ID="lsbOrderItemTarget" SelectionMode="Multiple"
            AllowReorder="true" Skin="Outlook" runat="server" Height="500px" Width="30%" PersistClientChanges="true"/>
        </div>
    </div>
    </form>
</body>
</html>


Thanks in advance for your help.
Christian.
Nencho
Telerik team
 answered on 24 Apr 2013
1 answer
141 views
I find out that RadFormDecorator adds its classes  rfdRoundedCorners rfdDecorated after an ajax call. Let's say I have a couple of RadTextBox and a checkbox inside a <div> wich will be ajaxified.
I want to style the checkbox so I add RadFormDecorator.
On the first page load, my RadTextBoxes will have just their classes: riSingle RadInput (plus eventual specific skin) When I trigger the ajax postback and the div updates the same textboxes will have rfdRoundedCorners rfdDecorated classes added by the form decorator. This may seem like an "innocent" behaviour but is not since this will change your css specificity. So if for example you override textboxes css with: html body .RadInput .riTextBox, html body .RadInputMgr  { }
This will work on a fresh pageload but won't work anymore after the ajax update, screwing up the rendering of the textboxes.
A quick fix is of course to add !important inside the css overrides, but I'm wondering if this behaviour is intended and if there is some easy workaround instead of using the !important clause in our css.

Thanks in advance


Danail Vasilev
Telerik team
 answered on 24 Apr 2013
1 answer
90 views
It seems that when you set Animation="Fade" the tooltip callout won't fade just "pop" with an unpleasant effect even on short  fades.
Is there a way to override this behaviour? .

Also it seems that this trick to override default auto-adjust behaviour won't work anymore:
Telerik.Web.UI.RadToolTip.prototype._adjustCallout = function () {
}

Wich is the actual jQuery alternative for this?

Thanks in advance
Marin Bratanov
Telerik team
 answered on 24 Apr 2013
1 answer
86 views
Hi,

I want to alert the allowed file extension when the user try to upload files of unsupported extensions. Please help soon.. Urgent requirement.

Thanks for reply in advance,
K.R
Shinu
Top achievements
Rank 2
 answered on 24 Apr 2013
1 answer
88 views
Set frameDuration from XML

I don't believe this is supported, although it would be a welcome upgrade.

Any suggestions on how to work-around this issue?

many thanks.
Slav
Telerik team
 answered on 24 Apr 2013
1 answer
101 views
On FireFox and Safari on Macs running OS X 10.6.8, the insert link tool on RadEditor is not working properly.
On Windows 7 Chrome it works perfectly. 

The issue:
Type a sentence into RadEditor, highlight a word at the beginning of the sentence, click the insert link button, type in a web address. Works fine. Highlight a word later in the sentence, click the insert link button and add a web address and RadEditor will delete all the content between the two links. As said, works fine on Chrome on Windows. 

Using Telerik 2012.3.1308.40 on ASP .NET 4.0 Server. 

I setup a test page in my project which only has a simple RadEditor on it:
Thanks in advance.
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <div>
     
    <telerik:RadEditor ID="radEditTestCompleteEmail" Runat="server"
                                          EditModes="Design" Width="441px"
            StripFormattingOptions="MSWordRemoveAll"
            StripFormattingOnPaste="MSWordRemoveAll">
                                          <CssFiles>
                                              <telerik:EditorCssFile Value="~/radEditorContentArea.css" />
                                          </CssFiles>
                                          <Tools>
                                              <telerik:EditorToolGroup>
                                                  <telerik:EditorTool Name="Bold" />
                                                  <telerik:EditorTool Name="Italic" />
                                                  <telerik:EditorTool Name="Underline" />
                                                  <telerik:EditorTool Name="InsertLink" />
                                                  <telerik:EditorDropDown Name="FontName">
                                                  </telerik:EditorDropDown>
                                                  <telerik:EditorDropDown Name="FontSize">
                                                  </telerik:EditorDropDown>
                                                  <telerik:EditorTool Name="FindAndReplace" />
                                                  <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                                  <telerik:EditorSplitButton Name="Redo">
                                                  </telerik:EditorSplitButton>
                                                  <telerik:EditorSplitButton Name="Undo">
                                                  </telerik:EditorSplitButton>
                                              </telerik:EditorToolGroup>
                                          </Tools>
                                          <Content>
</Content>
                                          <TrackChangesSettings CanAcceptTrackChanges="False" />
                                      </telerik:RadEditor>

         
Stamo Gochev
Telerik team
 answered on 24 Apr 2013
3 answers
188 views
Hi everybody,
    Firstly I used version of Telerik Q1 and I have trouble with radcalendar, problem is this:

    I provide dates for the calendar when page is loading, and calendar's allow multiple date selection. After page load I see the selected dates well. I want to achive that, when I click a date, post clicked date to another page via request. However when I clicked one of formerly selected date this date is disselect, and it gives me the previous selected date, for example when i click
"november 3" it gives me nothing than i clicked "4 november" it gives me "3 november" and that's going like that. My question is that actually; How can I prevent disselection when i clicked a formerly selected date?
Vladi
Telerik team
 answered on 24 Apr 2013
1 answer
41 views
I'm using Rad Control 2013 Q1 - SP1 ( and SP2 ) in VS2010. When dragging RadFilter on aspx design, the Properties window not show any property ( Radfilter still selected). Properties window always display for other Rad controls correctly. And if I select again Radfilter from Properties window , VS2010 closed!
If I put cursor on aspx source, at child element (ex, <telerik:RadFilterTextFieldEditor>), the Properties window display properties of it correctly. And no result If I put cursor on element RadFilter.
I think there is a problem of RadFilter.

 

Eyup
Telerik team
 answered on 24 Apr 2013
1 answer
107 views
Hi.

I need to be able to take a recurrence rule and update the date and/or time associated with it.  Is there a way to programmatically update the start and end dates in he recurrence rule itself?
Plamen
Telerik team
 answered on 24 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?