Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
119 views
Hi All,

I have some questions regarding telerik dll's upgrade. Can any one help me on below questions:

1. As of now i am using telerik open access web version 2011.2.713.3 for my asp.net web application, Most of the functionalities working fine for this dlls. Now i want to upgrade to
Open DATA Access ORM (version: 2013 Q3 SP1 - 2013.3.78.1835) and UI for ASP.NET AJAX (2013 Q3 - 2013.3.1114.35). My question is
Is this version will support all functionalities and UI look and feel same as previous version? I found Some linq quries from my code are not supporting these dlls.

2. I want to know the steps to upgrade the dlls to new version.

Thanks in Advance
Vijay.
vijayakrishna
Top achievements
Rank 1
 answered on 27 Feb 2014
0 answers
108 views
I have a rad menu declared like this :

<telerik:RadMenu runat="server" ID="RadMenu1">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 4">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 5">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="SpotLight">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>

Now I actually want to copy some of the items to "SpotLight" item, I do not want to move them which is what happening now, I actually want to copy them over :

Here is what I am trying  :

.
.
.
<
telerik:RadMenuItem runat="server" Text="SpotLight">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
        <telerik:RadScriptBlock runat="server">
            <script type="text/javascript">
                $(function () {
 
                    var
                            rootMenu = $find('<%=RadMenu1.ClientID %>'),
                            menuItems = rootMenu.get_allItems();
                            var myItems = [];
                            myItems.push(menuItems[1]);
                            myItems.push(menuItems[3]);
                            myItems.push(menuItems[4]);
 
                            var targetItem = rootMenu.findItemByText("SpotLight");
 
                             
                            for (var i = 0; i < myItems.length; i++) {
                                targetItem.get_items().add(myItems[i]);
                            }
                            //debugger;
                });
            </script>
        </telerik:RadScriptBlock>
    </div>
    </form>
.
.
.

Aarsh
Top achievements
Rank 1
 asked on 26 Feb 2014
2 answers
274 views
I have a page that is longer (vertically) than the browser window, and will probably always be that way. The bottom of the form has a contact us section where you can enter your email address, a message and click a button to send an email to the site administrator. I want to display a modal dialog message in a RadWindow informing them that the message was sent. But I want to retain the parent window's scroll position. This means that I need to position the window over the section of the page that is visible, and prevent the main page from resetting to the top of the form. Is there any examples of doing something like this?

Thanks, Steve
neebs
Top achievements
Rank 2
 answered on 26 Feb 2014
5 answers
66 views
when i approve appointment in IE its not response and enter in infinite loading .. but the appointment approved if i reload but load not finished .. an solution
Nencho
Telerik team
 answered on 26 Feb 2014
3 answers
77 views
Hi,

It appears that we cannot create new folders without allowing uploads in the template manager.
I need to create new folders but not allow uploads - is this possible please? ..or have I missed something?

Cheers,

Jack
Ianko
Telerik team
 answered on 26 Feb 2014
1 answer
111 views
Hi.
I'm using RadInputManager to Validate my Controls .
But now I have a problem , I'm gonna use radinputmanager to validate a textbox width specific javascript method . I wrote the below code, but my button do post back . I want to stop post back before validating the textbox .
How can I do this  ?
  <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
            <script type="text/javascript">
                function onValidating(sender, args) {
                    var nationalCode = $get(sender.get_targetControlIDs()[0]);
                    console.log(nationalCode.value);
                    if (!checkCodeMeli(nationalCode.value)) {
                        alert('the code is wrong');
                        nationalCode.focus();
                        return false;
                    }
                    else {
                        alert('The code is write ')
                        return true;
                    }
                }
                function pageLoad() {
                    window.$ = jQuery = $telerik.$;
                }
 
function checkCodeMeli(code) {
    var L = code.length;
    if (L < 8 || parseInt(code, 10) == 0) return false;
    code = ('0000' + code).substr(L + 4 - 10);
    if (parseInt(code.substr(3, 6), 10) == 0) return false;
    var c = parseInt(code.substr(9, 1), 10);
    var s = 0;
    for (var i = 0; i < 9; i++)
        s += parseInt(code.substr(i, 1), 10) * (10 - i);
    s = s % 11;
    return (s < 2 && c == s) || (s >= 2 && c == (11 - s));
    return true;
}
            </script>
        </telerik:RadScriptBlock>
 
 
          <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="btn" runat="server" />
 
        <telerik:RadInputManager ID="RadInputManager1" runat="server">
            <telerik:TextBoxSetting InitializeOnClient="true">
                <TargetControls>
                    <telerik:TargetInput ControlID="TextBox1" />
                </TargetControls>
                <ClientEvents OnValidating="onValidating" />
            </telerik:TextBoxSetting>
        </telerik:RadInputManager>
Viktor Tachev
Telerik team
 answered on 26 Feb 2014
6 answers
474 views
I have two pie charts and am trying to have one update the other through the RadAjaxManager with the OnClientSeriesClicked event, as outlined here. Basically, when a series is clicked in PieChart1, an AjaxRequest changes the DataSource on PieChart2. This all works as expected.

A problem arises when I try to also make the series that was clicked in PieChart1 be exploded, using the example given here. The problem is that the field never becomes exploded in the pie chart. It seems as if the ajax request returning overwrites the changes I have made to "IsExploded". I believe this to be the case because I have another pie chart that is never updated by an ajax request, so is therefore not declared as an updated control in the ajax manager, and setting the field IsExploded to true works just fine in that case. I also inserted a line that just calls alert() to tell me when it is setting IsExploded to true, and I see that alert box, so I know it is getting set, it just doesn't seem to stick.

Code sample:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
          <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="PieChart1" LoadingPanelID="LoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="PieChart2" LoadingPanelID="LoadingPanel1"/>
                    </UpdatedControls>
               </telerik:AjaxSetting>
          </AjaxSettings>
        </telerik:RadAjaxManager>

        <telerik:RadCodeBlock ID="codeBlock" runat="server">
          <script type="text/javascript">
              function OnClientSeriesClicked_PieChart1(sender, args) {
                  $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("OverallUsageBreakdown;" + args.get_category());

                  args.get_seriesData().map(function(item) {
                      if (item.Prefix === args.get_category()) {
                          item.IsExploded = true;
                          alert("condition true");
                      } else
                          item.IsExploded = false;
                  });

                  sender.set_transitions(false);
                  sender.repaint();
                  sender.set_transitions(true);
              }
          </script>
        </telerik:RadCodeBlock>

My question is, does anyone have any suggestions as to how I can get the IsExploded property to stay set to true? It seems as if no matter what I do (I have tried updating IsExploded in an OnResponseEnd script and by using a ResponseScript to call a script that updates the IsExploded field; I have confirmed both of those get called and set the field correctly (using alert boxes to check field values), but have the same problem in the end).
Danail Vasilev
Telerik team
 answered on 26 Feb 2014
3 answers
356 views
In IE 11, if I placed my cursor after my paragraph and click the Bullet List option, it includes my paragraph in a bullet list also. You can try it yourself on the Telerik demo site.

http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

Place your cursor after this paragraph, then click the Bullet List button. You will see the paragraph is part of the list.

RadEditor is not simply an HTML1 Editor. It is what Microsoft chose to use in MSDN, CodePlex, TechNet, MCMS and even as an alternative to the default editor in SharePoint. Whether you need a mere Textbox with Google-like spellchecker, or a Word-like content authoring environment, the result is the same: clean XHTML output, fast rendering, widest cross-browser support, and tons of features:
    Anyone knows how to fix this?

    Ianko
    Telerik team
     answered on 26 Feb 2014
    2 answers
    163 views
    Is it possible to change the font color for just one item in the rad menu. I want a specific item to always stand out. Thanks.
    Darren
    Top achievements
    Rank 1
     answered on 26 Feb 2014
    3 answers
    121 views
    In your demo application at http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx I'm experiencing an issue with the StripFormattingOption "AllExceptNewLines" after pasting from Word.

    I've created a Word document with one sentence (shown in word_document.png).

    To copy this sentence to the clipboard I apply the following key combination: CTRL + A, CTRL + C.

    After that I paste the clipboard content to your demo application.

    When I tick the StripFormattingOption "MSWordRemoveAll". I am seeing the sentence, surrounded with <p><span>-tags (result shown in MSWordRemoveAll_result.png).
    When I tick the StripFormattingOption "AllExceptNewLines". I am seeing an unexpected newline in my sentence and additional newlines to the end of my sentence (result shown in AllExceptNewLines_result.png).

    I expected the AllExceptNewLines to also apply MSWordRemoveAll. But this apparently does not happen. When I tick both MSWordRemoveAll and AllExceptNewLines, the MSWordRemoveAll seems to be ignored (the results stay the same).

    I've also tried this with IE11. In this case the output is "<br /><br />Welcome to<br />the Netherlands<br /><br />". Even more newlines at the beginning.

    Is it possible to tweak these settings in a way that the sentence is pasted as is, without the unexpected newlines?
    Ianko
    Telerik team
     answered on 26 Feb 2014
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?