Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
237 views
I have a radwindow that contains a grid.  Selecting an item in the grid activates a second radwindow that allows the selected grid item to be edited.  Clicking 'update' in the 2nd radwindow should close the window and rebind the grid in the first window.  I just cant get this to work, when ever I close the second window the refresh function never gets fired, heres my code

this activates the 2nd window from the grid in the first radwindow

function ShowEditForm(id, rowIndex) {
             
            var grid = $find("<%= RadGrid1.ClientID %>");
            var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
            grid.get_masterTableView().selectItem(rowControl, true);
            var oBrowserWnd = GetRadWindow().BrowserWindow;
            oBrowserWnd.radopen("BandMemberEditForm.aspx?ID=" + id, "BandMemberDialog");
            return false;
        }




this code should refresh the grid when the 2nd radwindow closes

function refreshGrid(arg) {
            //debugger;
            alert("refresh grid");
            if (!arg) {
                $find("<%= Telerik.Web.UI.RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Rebind");
 
            }
            else {
                $find("<%= Telerik.Web.UI.RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("RebindAndNavigate");
 
 
            }
        }



in the 2nd radwindow, I have this code to close the window and rebind the grid in the first window

function CloseAndRebind(args) {
        alert("close and rebind");
        GetRadWindow().Close();
        //debugger;
        //var oWindow = GetRadWindow();
        GetRadWindow().BrowserWindow.refreshGrid(args);
    }


I know this function is called because of the alert, but the refreshGrid function never gets called

can anyone see what im doing wrong here ?
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
2 answers
71 views
I have a panel bar on which i want to place a loading panel when an item is clicked.  It works fine as long as the item does not have any sub items in which case the loading panel is not covering the whole panel bar.  How can I solve this?

Jorge
Maria Ilieva
Telerik team
 answered on 26 Jul 2011
6 answers
790 views
Im working, in a Dynamics CRM customization, and I'm considering to use Telerik controls, but first I  would like to know If I can Include ASP.NET Ajax RadControls in this proyect, and If the radcontrols work fine with Dynamics CRM.


Many thanks, in advance, for your help.
Moises Rodriguez

Klibor
Top achievements
Rank 1
 answered on 26 Jul 2011
4 answers
104 views

I'm using RadHtmlField from Telerik.SharePoint.FieldEditor in my SharePoint site and make use of the Document Manager. When I've uploaded documents and then wish to select one, the list is not sorted. Should I add something to my ConfigFile.xml? It currently looks like this:

<configuration>
  <property name="AllowThumbGeneration">True</property>
  <property name="ConvertToXhtml">True</property>
  <property name="EnableDocking">False</property>
  <property name="ShowHtmlMode">False</property>
  <property name="ShowPreviewMode">False</property>
  <property name="StripAbsoluteAnchorPaths">true</property>
  <property name="StripAbsoluteImagesPaths">true</property>
  <property name="ToolbarMode">ShowOnFocus</property>
  <property name="ToolsWidth">100px</property>
  <property name="DocumentsPaths">
 <item>/Documents</item>
  </property>
  <property name="MaxDocumentSize">
 <item>20971520</item>
  </property>
  <property name="ImagesPaths">
    <item>PublishingImages</item>
    <item>/SiteCollectionImages</item>
  </property>

</configuration>

Stanimir
Telerik team
 answered on 26 Jul 2011
2 answers
87 views
Hello,

I have an existing master page that has worked without issue for a number of applications for a long time.

I (late to the party) added a RadAjaxLoadingPanel with a RadAjaxManager:

Navigating to a page with a RadGrid in the child page within the MainUpdatePanel, I see the Ajax loading image while the grid is waiting for results. However, when the grid finishes receiving the results (I think), I see a number of modal alerts with the following web page error:

Error: 'undefined' is null or not an object

This repeats then the page displays without any content rendered within the MainUpdatePanel area.

Clicking a RadMenu link in the header to navigate results in:

Error: Object required

Then navigation to the requested page proceeds with no other issue.

Can you help me to identify the cause? I have reproduced the issue with the following Master Page stripped of unnecessary items (no code-behind required).

Master Page

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteMaster.master.cs" Inherits="SampleWebApplication.SiteMaster" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>Test</title>
</head>
<body>
    <form id="MainForm" runat="server">
  
        <telerik:RadScriptManager ID="TelerikScriptManager" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <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:RadAjaxManager ID="TelerikAjaxManager" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="MainUpdatePanel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="MainUpdatePanel" LoadingPanelID="TelerikAjaxLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
  
        <telerik:RadMenu ID="MajorNavMenu" runat="server">
            <CollapseAnimation Duration="200" Type="OutQuint" />
            <ExpandAnimation Type="None" />
            <Items>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/Default.aspx" Text="Home"></telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
  
        <asp:UpdatePanel ID="MainUpdatePanel" runat="server">
            <ContentTemplate>
  
                <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
                </asp:ContentPlaceHolder>
  
            </ContentTemplate>
        </asp:UpdatePanel>
  
        <telerik:RadAjaxLoadingPanel ID="TelerikAjaxLoadingPanel" runat="server">
        </telerik:RadAjaxLoadingPanel>
  
    </form>
</body>
</html>

Content Page

<%@ Page Title="Home" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SampleWebApplication.Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
  
    <asp:Button 
        id="DoSearch" 
        runat="server" 
        Text="Search" 
        OnClick="DoSearch_OnClick" 
        Width="195">
    </asp:Button>
  
    <telerik:RadGrid ID="SearchResults" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
        <MasterTableView DataKeyNames="TestValue">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="TestValue" HeaderText="Test Value">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
  
</asp:Content>

Content Page Code-behind

namespace SampleWebApplication
{
    using System;
  
    public partial class Default : System.Web.UI.Page
    {
        private readonly dynamic testData = new[]
        {
            new { TestValue = "Test Value 1" },
            new { TestValue = "Test Value 2" },
            new { TestValue = "Test Value 3" },
            new { TestValue = "Test Value 4" },
            new { TestValue = "Test Value 5" },
            new { TestValue = "Test Value 6" },
            new { TestValue = "Test Value 7" },
            new { TestValue = "Test Value 8" },
            new { TestValue = "Test Value 9" },
            new { TestValue = "Test Value 10" }
        };
  
        protected void DoSearch_OnClick(object sender, EventArgs e)
        {
            this.SearchResults.DataSource = testData;
            this.SearchResults.DataBind();
        }
    }
}

Thank you!

Richard
Maria Ilieva
Telerik team
 answered on 26 Jul 2011
1 answer
106 views

When a node of the treeview (in a combobox) is clicked, the text and value of this node is set to the selected item of the combobox. client side this works well. serverside the selectedvalue is rondomly empty.

function
nodeClicking(sender, args) {

 

 

var comboBox = $find("<%= cbEmployees.ClientID %>");

 

 

var node = args.get_node()

 

comboBox.set_text(node.get_text());

comboBox.trackChanges();

 

var item = comboBox.get_items().getItem(0);

 

item.set_value(node.get_value());

item.set_text(node.get_text());

comboBox.commitChanges();

comboBox.hideDropDown();

comboBox.attachDropDown();

}

Shinu
Top achievements
Rank 2
 answered on 26 Jul 2011
5 answers
99 views
Hello

I am getting text from radtreeview and trying to put the text in radeditor

i am doing it using fallowing JavaScript it is working fine in chrome. In IE8 pasteHtml is overwriting previous content in radeditor
function SetPlaceHolders(sender, args) {
     
            var Tree = $find("<%=RadTreeView_CommonControls.ClientID%>");
            var selectedNode = Tree.get_selectedNode();
            var text = selectedNode.get_value();
 
            if (text != null) {
             
 
                var editor = $find('<%= RadEditor_setupContent.ClientID  %>');
                          
                 editor.pasteHtml(text);
            }
        }
 i have tried fallowing links still i am facing same problem :

http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-replacing-all-text-in-ie8.aspx
http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-after-node-at-cursor-position.aspx
Thanks and regards
Alekhya
Dobromir
Telerik team
 answered on 26 Jul 2011
1 answer
116 views
Some of the issues I notice with ImageEditor demo on the Telerik site, is that the dialogs are slow. It's almost like it's using the same window to display all the dialogs. Is this a correct assumption and is it only me who experiences this slowness (in IE7 it's more noticeable, but in Chrome there is only a slight noticeable delay)?

Another issue I notice is that when you insert text, it looks pixelated, almost like there isn't any Anti-Aliasing going on with the text. Is this something that will be fixed?

Those are just some of the issues I notice with the RadImageEditor control demo.
Niko
Telerik team
 answered on 26 Jul 2011
2 answers
69 views
Hi ,

   Am using Radgrid having 200 columns with 5 to 10 rows only retrive. But it take long time to retrive. There is any way to increse the performance.

thanks,
vinoth
vinoth sansar
Top achievements
Rank 2
 answered on 26 Jul 2011
1 answer
206 views
Hi,

I can't seem to find a way to stop the resizing feature of the RadTextBox. Need to have this feature to keep website consistent with other Telerik controls.

Can somebody help please?

Andrew
Galin
Telerik team
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?