Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
I have a main page that contains the radAjaxManager.  Then, on a user control, I have the following defined:

<telerik:RadAjaxManagerProxy ID="rampObjectIndexInfo" runat="server" />
<telerik:RadAjaxLoadingPanel ID="ralpObjectIndexInfo" runat="server" />

Within the user control, I create a series of dynamic controls.  At some times, we create repeating rows of fields where the user can add additional rows (e.g., we initially define 2 rows of three text boxes, but the user can add additional rows as they desire).  We define the buttons as follows (only the minus button is shown, the plus button is defined pretty much the same):

ImageButton minusButton = new ImageButton();
minusButton.ImageUrl = GetString("ObjectDetails.IndexingInfo.RepeatingRowRemove.ImageName");
minusButton.AlternateText = GetString("ObjectDetails.IndexingInfo.RepeatingRowRemove.AltText");
minusButton.OnClientClick = "RemoveLine('" + dataGroupId + "', 'btnpm_" + dataGroupId + "_" + controlSuffix + "'," + controlSuffix + ");";
minusButton.ID = epCustom.ID + "_M_" + (controlSuffix);
minusButton.Style.Add("padding-right", "3px");

//Index info is an array of dynamically created controls that will be displayed to the user
indexInfo.Controls.Add(minusButton);
rampObjectIndexInfo.AjaxSettings.AddAjaxSetting(minusButton, minusButton.Parent, ralpObjectIndexInfo);

The issue I'm having is that instead of executing the OnClientClick event, a full post-back is executed and the form is entirely reloaded (which is what we're trying to avoid since there are a half-dozen other controls that update as well and that causes a major performance hit).

What am I missing?
Shinu
Top achievements
Rank 2
 answered on 27 Feb 2014
1 answer
62 views
in the 2010 version had no problem 
value = item ["COLUMN_NAME"]. Text  (value correct)

in the 2013 version I have a problem
value = item ["COLUMN_NAME"]. Text  (value incorrect), return (&nbsp;)
Princy
Top achievements
Rank 2
 answered on 27 Feb 2014
1 answer
114 views

Hi I made couple of changes on my ISS server and I'm trying to re install my project, I have telerik already but Im getting this error: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute'  when I try to load the project

Please let me know how can I fix this problem

Thank you

Carolina

Digno Martinez
Top achievements
Rank 1
 answered on 27 Feb 2014
2 answers
121 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
177 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
286 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
69 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
81 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
115 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
483 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?