Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
275 views
I have a RadGrid with a Form Template for Inserting and Updating the data.  I would like to enable Ajax for the entire grid and for individual elements within the Grid.  I am using the AjaxManager and AjaxManagerProxy to attempt to accomplish this.  I have for example an AjaxManagerProxy within with FormTemplate which enables Ajax for a second RadGrid which sits within the EditForm and a second AajxManagerProxy inside a user control also within the edit form.  These all work as expected, but when I add the main RadGrid to the main AjaxManager all of the "sub" ajax updates cause the whole Grid to update rather than just the small section which was updating previously. 

To shed a but more light on what I am looking for, this is an example: 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="admin_Default2"

Title="Untitled Page" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title>CSA - Compliance, Safety, Accountability</title>

</head>

<body runat="server" id="MyBody">

<a style="display: none;" href="#content">Skip to Content</a>

<form id="form1" runat="server">

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

</telerik:RadScriptManager>

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

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="grid">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="grid" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadGrid runat="server" ID="grid" AutoGenerateColumns="true" AutoGenerateEditColumn="true"

OnNeedDataSource="getDocuments" Width="300">

<MasterTableView>

<EditFormSettings EditFormType="Template">

<FormTemplate>

<telerik:RadAjaxManagerProxy runat="server" ID="proxy">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="btn">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="txt" />

<telerik:AjaxUpdatedControl ControlID="lbl" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManagerProxy>

<telerik:RadAsyncUpload runat="server" ID="fileUpload" />

<asp:TextBox runat="server" ID="txt" />

<asp:Button runat="server" ID="btn" OnClick="click" Text="Add" />

<asp:Label runat="server" ID="lbl" />

<asp:Button runat="server" CommandName='<%=RadGrid.UpdateCommandName%>' Text="Update" />

</FormTemplate>

</EditFormSettings>

</MasterTableView></telerik:RadGrid>

</form>

</body>

</html>



public partial class admin_Default2 : System.Web.UI.Page


{

    protected void Page_Load(object sender, EventArgs e)

    {

    }

    protected void getDocuments(object sender, GridNeedDataSourceEventArgs e)

    {

        (sender as RadGrid).DataSource = new int[] { 2, 3, 4, 5, 6, 7 };

    }

    protected void click(object sender, EventArgs e)

    {

        ((sender as Button).NamingContainer.FindControl("lbl") as Label).Text +=

"<br/>" + ((sender as Button).NamingContainer.FindControl("txt") as TextBox).Text;

        ((sender as Button).NamingContainer.FindControl("txt") as TextBox).Text = "";

    }

}



The final result should be that clicking the add does not submit the rest of the edit panel, but clicking the other button does
Pavlina
Telerik team
 answered on 10 Mar 2011
1 answer
94 views
Hi, I am working with Q3 reporting and .net ajax and have a report that I am trying to incorporate in a tabstrip/multipage approach. The report works/displays fine outside of a PageView within the multipage, but if I drop it into a pageview, this disables all the tabs in the tabstrip and you can no longer navigate to content in any of the tabs. Using Firebug, there are no javascript errors. The tabs can be selected and change color, but multipage selection / switching no longer happens. Any thoughts out there?
Peter
Telerik team
 answered on 10 Mar 2011
8 answers
192 views
Hi,

I would like to validate the default inline template insert, basically I don't want to let the user create appointments that don't have subject inserted.

Can this be achieved? For some reason 'OnClientAppointmentInserting' is not getting triggered.

Thanks in advance.

Daryl
Veronica
Telerik team
 answered on 10 Mar 2011
2 answers
300 views

I'm getting a security exception when using the RadEditor in Medium Trust

Web.config 
 

<

 

system.web >  

 

 

<

 

trust level="Medium" originUrl="" />

 

 

 

....
... 

 

<httpHandlers>
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false" />
  
    </httpHandlers>
  
<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
  
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
  
    </handlers>
    <defaultDocument>
      <files>
        <clear />
        <add value="default.aspx" />
        <add value="index.html" />
        <add value="Default.htm" />
        <add value="index.htm" />
        <add value="Default.asp" />
        <add value="iisstart.htm" />
      </files>
    </defaultDocument>
  </system.webServer>

Master Page
  
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" OutputCompression="AutoDetect" ScriptMode="Release" runat="server" LoadScriptsBeforeUI="True"
        EnableScriptCombine="True">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" OutputCompression="AutoDetect"  runat="server">
    </telerik:RadStyleSheetManager>
    <%--RestoreOriginalRenderDelegate="false" needed for godaddy hosting, which runs in Medium Trust--%>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="false">
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server">
    </telerik:RadSkinManager>
    <telerik:RadWindowManager EnableEmbeddedSkins="true" ID="RadWindowManager1" runat="server"
        InitialBehaviors="None" EnableViewState="true" DestroyOnClose="true" Behaviors="Close, Resize, Maximize, Move"
        ShowContentDuringLoad="true">
        <Windows>
            <telerik:RadWindow runat="server" InitialBehaviors="None" Left="" Top="" ID="Features"
                Behaviors="Close, Resize, Maximize, Move" Height="400" Modal="True" VisibleStatusbar="false"
                Width="1000px" DestroyOnClose="false" ShowContentDuringLoad="true" ReloadOnShow="True"
                OnClientClose="ClearWindow" Animation="None" NavigateUrl="">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadFormDecorator ID="RadFormDecorator2"  DecoratedControls="All" runat="server"
        DecorationZoneID="ZoneID1"></telerik:RadFormDecorator>
    <div class="DesignWidth" style="height: 100%;">
        <div id="ZoneID1" style="height: 100%;">
            <uc1:Header ID="Header1" runat="server" />
            <uc2:Menu ID="Menu1" runat="server" />
            <telerik:RadAjaxPanel ID="PagePanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
                RestoreOriginalRenderDelegate="false">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </telerik:RadAjaxPanel>
        </div>
    </div>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  runat="server" HorizontalAlign="Center"
        Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    </form>

Content Page
  
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/TenkillerTaxidermy.Master" CodeBehind="Test.aspx.vb" Inherits="TenkillerTaxidermy.Test" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  
<telerik:RadEditor ID="reap_HTMLContent" ToolbarMode="Default" ContentAreaMode="Div"
                                    AllowScripts="true" runat="Server" Width="875px" AutoResizeHeight="false">
                                    <Modules>
                                        <telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" Visible="false" />
                                        <telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" Visible="false" />
                                        <telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" Visible="false" />
                                        <telerik:EditorModule Name="RadEditorStatistics" Enabled="true" Visible="true" />
                                    </Modules>
                                </telerik:RadEditor>
  
</asp:Content>


Exception
Security Exception 
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 
  
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
Stack Trace: 
  
  
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.SpecialDemand(PermissionType whatPermission, StackCrawlMark& stackMark) +0
   System.Security.CodeAccessPermission.DemandInternal(PermissionType permissionType) +30
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +143
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +231
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) +17
   System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +3316
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
Rumen
Telerik team
 answered on 10 Mar 2011
1 answer
131 views
hi

i have seen  demos for charts,but didnt find 3D  bar charts
Do We have 3D bar charts in Telerick Charts


Thanks
Harin
Giuseppe
Telerik team
 answered on 10 Mar 2011
1 answer
104 views
Hi,

I am facing a strange problem.We have  a dropdown list and based on the selection update occurs. As we don't want postbacks,
we have achieved this through AjaxUpdatedControls.
So for 10-15 times it never posts back and thats fine
But strangely after trying for 10-15 times..the page refreshes/postbacks.

Is this some kind of bug? I am using Telerik.Web.UI.dll  (Version - 2010.1.415.35)
Please have a look.QA is giving me hard time :)

<telerik:RadAjaxManager ID="ajaxSubmitDSEvent" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ddlMyHLSite">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lstSubEventType" LoadingPanelID="loadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnUpdateAddress">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="txtDisplayAddress" LoadingPanelID="loadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="loadingPanel1" EnableEmbeddedSkins="false" />

Many Thanks
Anurag
Maria Ilieva
Telerik team
 answered on 10 Mar 2011
1 answer
131 views
Dear All, 

I have a grid with three columns

Month
Working Days
Average KG

I use DataTable to bind my data with grid because my database is oracle.

After binding I need the Working Days Column to be editable, like user can change working days in a month and on the base of new value entered I need to recalculate the Average KG column. 

Please guide me how to get this result from Rad Grid.

I actually want to update other column on the change in one column.

Ragards,
Abdul Ahad
Mira
Telerik team
 answered on 10 Mar 2011
1 answer
52 views

Hi,

Can any one please help me out with the following issue on QTP 9.5:

 

 

1. QTP9.5 is unable to identify the Upload fields in the Application. It identifies the field as a WinObject >Activex.

2. QTP9.5 is unable to identify the Upload fields in the Application. It identifies the field as a Frame >WebElement.

 

I have added the latest Patch available for QTP9.5 - 'QTP_00550'  and 'QTP_00552' , still the facing the same problem.

Kindly guide.. :)

Thanks,
Shraddha

 

Konstantin Petkov
Telerik team
 answered on 10 Mar 2011
4 answers
257 views
Hello Telerik Team,

I know that this kind of topic has been solved many times, but I couldn't have found solution in my case.

I use inline editing form in the radgrid. I have radcombobox control defined inside of the radgrid <EditItemTemplate> section. The combobox has set property EnableLoadOnDemand=true.

What I need to achieve is to set focus on the same combobox when requested item is selected. Now, when user selects some item from the combobox list it's updated properly, but focus in not set on it. I found something similar in this thread: http://www.telerik.com/community/forums/aspnet-ajax/combobox/set-focus-and-cursor-at-the-end-of-text-in-radcombobox.aspx

I use this script in the protected void cmb_Artikel_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e):
StringBuilder script = new StringBuilder();
script.Append("Sys.Application.add_load(function(){");
script.Append("var combo2 = $find('" + combo.ClientID + "');");
script.Append("combo2.get_inputDomElement().focus();");
script.Append("combo2.selectText(combo2.get_text().length, combo2.get_text().length); });");            
  
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "comboCursor", script.ToString(), true);

The script runs properly, the combobox gets focus after user selects some item. For this steps everything looks good and correct, the problem will appear when user clicks on update button in the edited row.

Then the error message is appeared: Microsoft JScript runtime error: 'null' is null or not an object

Detailed info about this error is in the attachment.

I think that it will be related to Sys.Application.add_load from the above script section. Maybe there must be append some script for unload section when ajax request is completed ?

Please help me to solve this issues.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 10 Mar 2011
1 answer
76 views
I have an explorer type screen - treeview on the left, pane on the right, When you click on a node in the treeview, a page loads in the pane on the right. All works fine. But there are times when the user does something in the right pane that I want to reload the treeview.

How can I fire an event either in the treeview or on the page from the pane which is running an all together different page?

TIA - Jeff.
Dobromir
Telerik team
 answered on 10 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?