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

I use several telerik asp.net ajax controls (latest version) in my project. These controls reside in several usercontrols which use Output Caching. I followed the help article to disable embedded scripts and to register them manually. This works fine and so far I have no problems. But, I'm facing some problems when I load the page with the cached user controls in an iframe where the hosting page, which includes this iframe, also uses telerik controls but with EmbeddedScripts = true. The AnimationScript causes an error "Too much recursion"

}}return this.oldstep(e);  // This is the error point};

Maybe I'm not doing it correctly and you have some advice for me:
As said I use several telerik control in my project and I want to use caching on all controls. What I did:
I took all common scripts
1. Core.js,
2. jqueryplugins (I load the jquery.min.js from google cdn seperatley), 
3. NavigationScripts
4. PopupScripts
5. Scrolling
6. Animation
7. Subsequently all the scripts for the controls I use (RadRotator, RadTagCloud, etc.)

and put them into ONE file and registered this file in my master page. Which works great when the page is called alone.
The reason why I load this page in an iframe is that the admin of the page can rearrange the usercontrols. This hosting page uses the RadMenu for example which is included normally (Embedded Scripts, no caching etc.). The problem with the "too much recursion" error is that all other scripts fail (rearranging the usercontrol relies heavily on javascript)
As said the normal scenario is to call the page standalone but not in an iframe. Unfortunatley I cannot change the EmbeddedScripts property when the page is loaded in an iframe.

I Hope I made a silly mistake and there is a quick fix.

Thanks in advance.
deval
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
103 views
My scheduler is populated via a webservice call that returns an XmlDocument. I want to send some additional data that is associated with each appointment. I have tried adding a new element and key to the resources section of the Xml but this makes the scheulder have an error (object reference not set). I've also tried adding it as an extra element which generates no errors, but I can't find a way to retrieve the information.

Can you advise how to do this?
Peter
Telerik team
 answered on 21 Oct 2010
2 answers
383 views

I Have 2 RadDatePicker and I’d like to ask if it’s possible to disable dates before a specific dates selected
(as airlines dates you can't select a return date before a departure date)

i used a trick that i changed the MinDate of the second RadDatePicker to the selected date of the first one in the code behind but its kind slow.


protected void pickDateFrom_OnSelectedDateChanged(object sender, EventArgs e)
        {
            if (pickDateFrom.SelectedDate.HasValue)
            {
                pickDateTo.MinDate = pickDateFrom.SelectedDate.Value;
            }
        }

is there any way to do this in JavaScript or something to make it faster

i'm Sorry this is asp.net problem not a windows forms one, admin could you please delete it or move it to the right section.

 

Mohammad
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
90 views
I am currently reviewing the latest radcontrols to decide if I'm going to upgrade from our current 2008 Q2 version of the classic version. In this progress I got the comment from our users that the they have some problems with the new interface of the filebrowsers (image manager etc)
1. the new manager is slow (minutes in stead of seconds) in showing about 1000 items (without paging) where the non ajax browser didn't have those problems.Why is the newer version so much different in loading the items? I know paging is faster but this results in the following point.
2. when paging is turned on we have to problem the that finding a specific file in the list is tedious as the default sorting is unclear on how it sorted and the users have to look at every page to see if there file is there. if sorting is turned on however it still takes longer to find a file then it used to and more actions from the user.

I am willing to customize the dialogs but I rather limit that to a minimum so there will be a lower maintenance.

Kind regards
Rumen
Telerik team
 answered on 21 Oct 2010
1 answer
233 views
I am using Linq to Sql and a LinqDatasource.  I have added a property to one of the class linq classes that were created as below.
public string FullName
        {
            get { return string.Format("{0}, {1}", this.LastName, this.FirstName); }
        }

When trying to sort or filter on this column I receive The member FullName has no supported translation to SQL error. 

Does anyone know how to get around this.  I realize there is no column in the database called Fullname.  I can set the sort expression of the coulmn to "User.LastName + User.FirstName" and this works, but it still errors when filtering.

Thanks for any help.
Nikolay Rusev
Telerik team
 answered on 21 Oct 2010
1 answer
70 views
Hey guys, I'm new to these controls so I'm sure this is an easy one, but I spent some time with it last night and no luck.

I'm trying to use Radspell in a .net 4.0 MVC app (VS2010) and I was able to get the controls installed and clear up some errors (missing/out-of-order radscriptmanager, etc.) but now when I run the app and click the "check spelling" link, nothing happens.

I'm not getting any errors, and when I watch it with the javascript debugger in Safari there's no error or failing requests.  

Here's what the code on the view looks like:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <telerik:RadSpell ID="RadSpell1" runat="server" ButtonType="LinkButton" 

     

    ControlToCheck='Description' IsClientID="True" HandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"/>


Any assistance appreciated, thanks!
Rumen
Telerik team
 answered on 21 Oct 2010
1 answer
117 views
I am using Radupload 2008.3.1314.35 version. It works fine locally but it's not able to upload file on test servers. It doesn't show any error but it isn't uploading the file either. I want to add that 6 months ago this thing was working fine in test server but recently when I tried to test it , it doesn't do anything. It is copying csv file in that server but not reading from it. Please help..
blue123
Top achievements
Rank 1
 answered on 21 Oct 2010
5 answers
138 views
hi  all,

   I am new to telerik controls.here i am implementing one web application in that i used two radpanel(i.e top and bottom panel),in the top pane contains Binary Image control and bottom pane contains rad rotator control.here i am rendering the images from the data base in to the rotator with out using the postback .but my requirement is  to show the images in the binary image which i select in the rorator thumb.but i didn't get any clue from any where.pls help me how to show the image in the binary image control.i find some functionalities which are itemClick and onItemClicked functions on the clientside but i didn't find any information abt those functions ,i read the radControlsAjaxCourseWare pdf but i din't find any clue, but he explained in  freedemos using postback but i need without using postback,pls help me or give me any refference which gives the solution.

thanks in advance.
ravi.
Fiko
Telerik team
 answered on 21 Oct 2010
1 answer
62 views
we have the following in JavaScript to get hold of the one of the attributes that we set on editor from code-behind the following was  

editor._rootElement.attributes["PageclientID"].value;

working fine and after updating to the latest sp we run into the following issue, can you please let us know what needs to be done?


'editor._rootElement.attributes' is null or not an object


Thanks
-Nen
Rumen
Telerik team
 answered on 21 Oct 2010
3 answers
152 views
i'am getting an error while using IE 8  
htmlfile: Could not complete the operation due to error 800a025e.

I found this temporaly solution 
Tools -> Compatibility View Settings -> and check Display all websites in compatilbility view

But i think that i can't change this setting in all client that is using my web application 

i call SetCursorToTextEnd function after the grid is filtered, because i need put the cursor at the end text
 

<

 

 

script type="text/javascript" language="javascript">

 

 

 

 

 

function SetCursorToTextEnd(textControlID) 

 { 

 

 

var text = document.getElementById(textControlID);

 

 

if (text != null) {

 

 

 

if (text.createTextRange) {

 

 

 

var range = text.createTextRange();

 

 range.moveStart(

 

'character', text.value.length);

 

 range.collapse();

range.select(); //Here is the error!!!

}

 

 

else if (text.setSelectionRange) {

 

 

 

 

var textLength = text.value.length;

 text.setSelectionRange(textLength, textLength);

}

}

 }

 

 

 

</script>

 

 

<

 

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function doFilter(sender, eventArgs, columna) {

 

 

 

if (eventArgs.keyCode == 13) {

 

 eventArgs.cancelBubble =

 

true;

 

 eventArgs.returnValue =

 

false;

 

  

 

 

if (eventArgs.stopPropagation) {

 eventArgs.stopPropagation();

eventArgs.preventDefault();

}

 

 

 

var tableView = $find("<%= gridProductos.ClientID %>").get_masterTableView();

 

 

var ordenamiento = "";

 

 

 

 

if (columna == "SupplierID" || columna == "CategoryID" || columna == "UnitsInStock") {

 ordenamiento =

 

"EqualTo";

 

 }

 

else {

 

 ordenamiento =

 

"Contains";

 

 }

filtro = sender.value;

$(

 

'#hdControlFiltro').val(sender.id);

 

 tableView.filter(columna, sender.value, ordenamiento);

}

}

 

 

 

function MasterTableViewCreated(sender, eventArgs) {

 

 

var nombreControlFiltro = $("#hdControlFiltro").val();

 

 

 

 

if (nombreControlFiltro != '') {

 SetCursorToTextEnd(nombreControlFiltro);

}

}

 

 

</script>

 

 

 

</telerik:RadCodeBlock>

 

<

 

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

 

 

 

 

<telerik:RadStyleSheetManager ID="RadStylesheetManager1" runat="server" />

 

 

 

 

 

 

 

<telerik:RadSkinManager ID="RadSkinManager1" Skin="Office2007" runat="server" />

 

 

<telerik:RadAjaxManager ID="ajax_manager1" runat="server">

 

 

 

 

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="gridProductos">

 

  

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="gridProductos" />

 

 

 

 

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadGrid ID="gridProductos" runat="server" AutoGenerateColumns="false"

 

 

 

onneeddatasource="gridProductos_NeedDataSource" AllowFilteringByColumn="true"

 

 

 

 

AllowSorting="true" onitemcreated="gridProductos_ItemCreated" AllowPaging="true" AllowCustomPaging="True" ClientSettings-ClientEvents-OnMasterTableViewCreated ="MasterTableViewCreated"

 

 

 

 

AllowMultiRowSelection="false" OnSortCommand="gridProductos_SortCommand" OnPageIndexChanged="gridProductos_PageIndexChanged">

 

 

 

 

<MasterTableView>

 

 

 

 

<Columns>

 

 

 

<telerik:GridImageColumn ImageUrl="images/seleccionar.png" UniqueName="Seleccionar">

 

 

 

 

</telerik:GridImageColumn>

 

 

 

 

<telerik:GridTemplateColumn DataField="ProductName" HeaderText="ProductName" UniqueName="ProductName" AllowFiltering="True">

 

 

 

<HeaderTemplate >

 

 

 

 

<table>

 

 

 

 

<tr>

 

 

 

 

<td>

 

 

 

 

<asp:TextBox ID="txt_fProductName" runat="server" onkeydown="doFilter(this,event,'ProductName')" ></asp:TextBox>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

<tr>

 

 

 

 

<td align="center">

 

 

 

 

<asp:LinkButton ID="SortProductName" CommandName="Sort" CommandArgument="ProductName" runat="server" Text="ProductName"></asp:LinkButton>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

</table>

 

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

 

<%

 

 

# Eval("ProductName")%>

 

 

 

</ItemTemplate>

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridTemplateColumn DataField="SupplierID" HeaderText="SupplierID" UniqueName="SupplierID" AllowFiltering="True">

 

 

 

<HeaderTemplate >

 

 

 

 

<table>

 

 

 

 

<tr>

 

 

 

 

<td>

 

 

 

 

<asp:TextBox ID="txt_fSupplierID" runat="server" onkeydown="doFilter(this,event,'SupplierID')" ></asp:TextBox>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

<tr>

 

 

 

 

<td align="center">

 

 <

 

 

asp:LinkButton ID="SortSupplierID" CommandName="Sort" CommandArgument="SupplierID" runat="server" Text="SupplierID"></asp:LinkButton>

 

 

 

 

 

 

 

</td>  

 

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate>

 

 

 

 

<%# Eval("SupplierID")%>  

 

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="CategoryID" HeaderText="CategoryID" UniqueName="CategoryID" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>  

 

 

 

<td>

 

<asp:TextBox ID="txt_fCategoryID" runat="server" onkeydown="doFilter(this,event,'CategoryID')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr 

 

 

<td align="center">

 

<asp:LinkButton ID="SortCategoryID" CommandName="Sort" CommandArgument="CategoryID" runat="server" Text="CategoryID"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate> <%

 

 

 

# Eval("CategoryID")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="QuantityPerUnit" HeaderText="Valor" UniqueName="QuantityPerUnit" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fQuantityPerUnit" runat="server" onkeydown="doFilter(this,event,'QuantityPerUnit')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortQuantityPerUnit" CommandName="Sort" CommandArgument="QuantityPerUnit" runat="server" Text="QuantityPerUnit"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate><%

 

# Eval("QuantityPerUnit")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="UnitPrice" HeaderText="UnitPrice" UniqueName="UnitPrice" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fUnitPrice" runat="server" onkeydown="doFilter(this,event,'UnitPrice')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortUnitPrice" CommandName="Sort" CommandArgument="UnitPrice" runat="server" Text="UnitPrice"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate> <%

 

 

 

# Eval("UnitPrice")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="UnitsInStock" HeaderText="UnitsInStock" UniqueName="UnitsInStock" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fUnitsInStock" runat="server" onkeydown="doFilter(this,event,'UnitsInStock')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortUnitsInStock" CommandName="Sort" CommandArgument="UnitsInStock" runat="server" Text="UnitsInStock"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate><%

 

 

 

# Eval("UnitsInStock")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

 

</MasterTableView>

 

<ClientSettings Selecting-AllowRowSelect="true">

 

</ClientSettings>

 

<GroupingSettings CaseSensitive="false" />

 

</telerik:RadGrid>

 

 

 

Pavlina
Telerik team
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?