Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
56 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
64 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
92 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
440 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
295 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
    116 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
    96 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
    3 answers
    70 views
    I set up a PivotGrid, but noticed the FIlterWindow wasn't displaying when I used a certain field as a filter.  However, it did show up when I used that field as a column or row.  I figured out that it was because there were NULL values in that field.  Is there any way to filter on a field that contains NULL values?
    Pavlina
    Telerik team
     answered on 26 Feb 2014
    1 answer
    141 views
    The Text property of the editor converts the html into plain text. Very handy. It would be really helpful if this could be exposed as a static method on the editor for use elsewhere, without having to create an editor object.

    I know that I could just grab the source code and create my own, but then I don't get the benefit of improvements and bug fixes you may add in the future.
    Niko
    Telerik team
     answered on 26 Feb 2014
    1 answer
    78 views
    HI Team,
    I want to make something like fb notifications but with tooltip.. First of all I have a table which got id, task alert, status , account_id and title. then I created 2 stored proc one which selects the count of tasks, the second selects the title of the task and the two of them where account_id = @ account_id which I get it from cookies.. All of this done , the problem is my design I want to make a hyperlink or imagebutton in the page menu div to select the count of tasks like fb with counter (1st proc) and when user click the hyperlink it displays the tooltip with title data from database (2nd proc).. is there anyway to achieve this with ToolTip?
    Marin Bratanov
    Telerik team
     answered on 26 Feb 2014
    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?