Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Is there an easy way to do this. I already have my ToolTip hooked up, and it shows next to the RadEditor when the associated tool button is clicked (I just tagged a custom function in to show the tooltip), but is there a way I can get it to show up in relation to the button rather than the entire editor window?
Svetlina Anati
Telerik team
 answered on 03 Feb 2010
4 answers
162 views
Hi,

I have implemented the SpellChecker in combination with RadEditor where I haven't used the RadEditor's AjaxSpellCheck tool, but I have pointed separate SpellChecker component to Radeditor's content area. I did this, because using the RadEditor's built-in AjaxSpellChecker doesn't provide the option of spell checking in new dialog box, but just an "inline" one, as far as I can see.
Everything works fine if I use non-MSWord spell check provider (currently using TelerikProvider), as soon as I switched to MSWordProvider, I started to get MSWordAdapter.dll (or it’s dependencies) missing error. In my installation of Telerik controls I can see folder MSWordSupport under "Spell" folder, and there's only  instructions on how to setup the MS Word in dcomcnfg, which I have done exactly as you said. The version of MS Word, we have is MS Office 2007.. Then I tried to run the component, but with no success, again the same error.. Then I searched forums again and have found the set of three dlls that should be copied into the bin directory of my webapp. I did that, but again with no success.. Can you, please, advise? Thank you.

Adrian
Rumen
Telerik team
 answered on 03 Feb 2010
6 answers
285 views
I have the problem that if I click on a row I need to get the row to editInline.
But when I use

function RowClick(sender, eventArgs) { 
 
if (selectedRow == eventArgs.get_itemIndexHierarchical() ) { 
 
 editedRow = eventArgs.get_itemIndexHierarchical(); 
$find("ctl00_masterdetail_MasterDetailControl_detailrecords_positionGridControl_RadGrid1_ctl00").editItem(editedRow); 
 
 } 
 } 

eventArgs.get_itemIndexHierarchical() is undefinied, so editedRow is undefined and everything crashed.

Where can be the problem?

edit: I found the problem, the eventArgs.get_itemIndexHierarchical() is set but the

$find("ctl00_masterdetail_MasterDetailControl_detailrecords_positionGridControl_RadGrid1_ctl00").editItem(editedRow); 





does nothing...
p
Top achievements
Rank 1
 answered on 03 Feb 2010
5 answers
119 views
Hi,

The examples on the demo website all maintain the structure of the grid, make it grayed out and show a blue circle when sorting.

As far as I can see my code is the same as the examples. The one difference is that I do not have auto-generate for the columns and I am creating the grid entirely in code-behind (in Page_Init) as I need to load the columns dynamically.

In my grid, the entire grid disappears for a second and then is re-displayed with the sorting. Is there a setting that will make it keep the original grid grayed out like the demo?

Thanks,
Dewang
Pavlina
Telerik team
 answered on 03 Feb 2010
1 answer
132 views
Hi,

I have a RadGrid consisting of a column with hyperlinks.  I would like to ExportToExcel using the following ExcelML option to maintain the formatting:
radGridN.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML; 

However to use the GridExcelExportFormat.ExcelML, I am forced to set ExportOnlyData to true:
radGridN.ExportSettings.ExportOnlyData = true; 

But then I lose the hyperlink in Excel and see only the Data (as expected).  Is there a way that I can still use ExcelML option to keep the nice formatting and but also get my Hyperlinks to work in Excel?

Greg
Daniel
Telerik team
 answered on 03 Feb 2010
5 answers
179 views
Hi, I am using the Q1 2009 release of your amazing controls. I am using the Panel Bar with a sitemap data source (MOSS2007). This leads to me no being able to expand the panels as the top level items have a url set. I have followed the KB article 'Preserve the expand and collapse functionality of an item which has its NavigateUrl property set.' There are a number of thins that don't add up when comparing the example against the Q1 2009 control.

  1. There is no image element to be found in the DOM of the panelbar the expand arrows are just the backgund image of the SPAN tag. This means that the java script function to trap the click fails everytime as there is no ImageElement
  2. The 'panelbar.AllItems.length' fails on each call as 'AllItems' is undefined.
  3. Using the code behind method to add Image and Expanded Image urls doesn't seem to work for me, the only way I could get them to show up was to modify the css as follows :
/* <expand arrows> */ 
/*
.RadPanelBar_ECPanelBar .rpExpandable .rpText,
.RadPanelBar_ECPanelBar .rpExpanded .rpText
{
    background-color: transparent;
    background-image: url('PanelBar/Expandable.png');
}
*/ 
.RadPanelBar_ECPanelBar .rpExpandable .rpText, 
{ 
    background-color: transparent; 
    background-image: url('PanelBar/arrow-down.png'); 
} 
 
.RadPanelBar_ECPanelBar .rpExpanded .rpText 
{ 
    background-color: transparent; 
    background-image: url('PanelBar/arrow-up.png'); 
    background-position: 100% 0px !important; 
} 
 
 
/* </expand arrows> */ 
 
 

The 0px is due to the standard value being -467px and hiding the image.

Please see the markup of the composite control I am making (due to code behind restictions in MOSS this is a much easier way)

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LeftNav.ascx.cs" Inherits="usercontrols_LeftNav" compilationMode="Always" %> 
<%@ Register assembly="Telerik.Web.UI, Version=2009.1.311.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"  
        namespace="Telerik.Web.UI" tagprefix="telerik" %> 
         
<script type="text/javascript">      
function onClicking(sender, eventArgs)      
{      
    var target = eventArgs.get_domEvent().target;  
    var item = eventArgs.get_item();  
    if (target == eventArgs.get_item().get_imageElement())  
    {  
        if (item.get_expanded())  
            item.collapse();  
        else  
            item.expand();  
          
        eventArgs.set_cancel(true);  
    }  
}      
</script>  
 
<telerik:RadAjaxManagerProxy runat="server" ID="rampChild" > 
</telerik:RadAjaxManagerProxy> 
<telerik:RadPanelBar runat="server" ID="rpbVertNav" PersistStateInCookie="true"  
     Skin="ECPanelBar"  
    ExpandMode="SingleExpandedItem" EnableEmbeddedSkins="false" 
    OnClientItemClicking="onClicking" onitemdatabound="rpbVertNav_ItemDataBound"> 
</telerik:RadPanelBar> 
using System; 
using System.Web; 
using Telerik.Web.UI; 
 
public partial class usercontrols_LeftNav : System.Web.UI.UserControl 
{ 
 
    private string _siteMapID = "QuickLaunchSiteMap"; 
 
    public string siteMapID { get { return this._siteMapID; } set { this._siteMapID = value; } } 
 
     
    protected void Page_Load(object sender, EventArgs e) 
    { 
         
    } 
 
    protected override void OnInit(EventArgs e) 
    { 
        base.OnInit(e); 
 
        rpbVertNav.DataSourceID = _siteMapID; 
    } 
 
    protected void rpbVertNav_ItemDataBound(object sender, RadPanelBarEventArgs e) 
    { 
        if (e.Item.Items.Count > 0) 
        { 
            e.Item.ImageUrl = "arrow-down.png"; 
            e.Item.ExpandedImageUrl = "arrow-up.png"; 
            e.Item.ImagePosition = RadPanelItemImagePosition.Right; 
        } 
    } 
} 

This is the js I was trying to use as taken from your sample

<script type="text/javascript">   
        <!-- For radPanelBar -->    
        function OnLoad(sender, args)      
        {      
            var panelbar = sender;      
             
            for (var i = 0; i < panelbar.AllItems.length; i++)      
            {      
                var panelItem = panelbar.AllItems[i];      
                      
                if (panelItem.ImageElement)      
                {      
                    panelItem.ImageElement.AssociatedItem = panelItem;      
                    panelItem.ImageElement.onclick = function (e)      
                    {      
                        if (!e) e = window.event;      
                              
                        if (this.AssociatedItem.Expanded)      
                        {      
                            this.AssociatedItem.Collapse();      
                        }      
                        else     
                        {      
                            this.AssociatedItem.Expand();      
                        }      
                              
                        e.cancelBubble = true;      
                        if (e.stopPropagation)      
                        {      
                            e.stopPropagation();      
                        }      
                        return false;      
                    }      
                }      
            }      
        }      
        </script>    

I really want to use this panel bar control for my navigation in this site but i cannot as it will not expand as expected. PLease can you update the sample to work with Q1 2009 or post a 2009 working sample using a sitemapdatasource.

Many Thanks

Chris
Chris
Top achievements
Rank 2
 answered on 03 Feb 2010
2 answers
214 views
I currently have this radgrid and I'm trying to find the control rntbTotalTax2 in the footer using the $find client side command.   How can I find this control using client side scripting.

Here is the javascript that I'm using to test with
:

 

<script type="text/javascript">

 

 

 

function test(sender, args) {

 

 

var parent1 = $find("rg2ConfirmCart");

 

 

var child1 = $find("rntbTotalTax2", parent1);

 

 

 

}

 

 

</script>

 


What happens is that child1 comes back null when test function is fired from a button that is not in the grid.  

<

 

telerik:RadGrid ID="rg2ConfirmCart" runat="server" AllowSorting="true" AutoGenerateColumns="false" OnItemDataBound="rg2CartConfirm_ItemDataBound" ShowFooter="true" >

 

<

 

MasterTableView CommandItemDisplay="None">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn UniqueName="rg2GtcProduct" AllowFiltering="false">

 

 

<HeaderTemplate>

 

 

<asp:Label ID="rg2GtcProductHdr" runat="server" Text="Product"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblProductName2" runat="server" Text="" Width="175"></asp:Label><br />

 

 

<asp:Label ID="lblSku2" runat="server" Text="" Width="175"></asp:Label><br />

 

 

</ItemTemplate>

 

 

<FooterTemplate>

 

 

<asp:Button ID="bEditCart" runat="server" Text="Edit Cart" PostBackUrl="~/ts1/index.aspx" /><br />

 

 

<asp:Button ID="bReCalc" runat="server" Text="Recalculate" PostBackUrl="~/ts1/index.aspx" /><br />

 

 

</FooterTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="rg2GtcQty" AllowFiltering="false" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">

 

 

<HeaderTemplate>

 

 

<asp:Label ID="rg2GtcQtyHdr" runat="server" Text="QTY"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate><asp:Label ID="lblQty2" runat="server" Text="" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="rg2GtcPrice" AllowFiltering="false" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" FooterStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right">

 

 

<HeaderTemplate>

 

 

<asp:Label ID="rg2GtcPriceHdr" runat="server" Text="Price"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate><asp:Label ID="lblPrice2" runat="server" Text="" />

 

 

</ItemTemplate>

 

 

<FooterTemplate>

 

 

<asp:Label ID="lblTotalExtPriceTxt2" runat="server" Text="Subtotal:" />

 

 

</FooterTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="rg2GtcExtPrice" AllowFiltering="false" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" FooterStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right">

 

 

<HeaderTemplate>

 

 

<asp:Label ID="rg2GtcExtPriceHdr" runat="server" Text="Ext Price"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate><asp:Label ID="lblExtPrice2" runat="server" Text="" />

 

 

</ItemTemplate>

 

 

<FooterTemplate>

 

 

<asp:Label ID="lblTotalExtPrice2" runat="server" Text="0" CssClass="LabelStyleCartTax" />

 

 

<telerik:RadNumericTextBox ID="rntbTotalTax2" Value="0" Label="Tax:" runat="server" CssClass="LabelStyleCartTax" Type="Percent" Width="35px" SelectionOnFocus="SelectAll" FocusedStyle-HorizontalAlign="Right" EnabledStyle-HorizontalAlign="Right" >

 

 

</telerik:RadNumericTextBox>

 

 

<telerik:RadNumericTextBox ID="rntbTotalShipping2" Value="0" Label="Shipping:" CssClass="LabelStyleCartTax" runat="server" Type="Currency" Width="65px" SelectionOnFocus="SelectAll" FocusedStyle-HorizontalAlign="Right" EnabledStyle-HorizontalAlign="Right" >

 

 

</telerik:RadNumericTextBox>

 

 

<telerik:RadNumericTextBox ID="rntbOrderTotal2" Value="0" ReadOnly="true" Label="Order Total:" CssClass="LabelStyleCartTax" runat="server" Type="Currency" Width="65px" SelectionOnFocus="SelectAll" FocusedStyle-HorizontalAlign="Right" EnabledStyle-HorizontalAlign="Right" >

 

 

</telerik:RadNumericTextBox>

 

 

</FooterTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

<ExpandCollapseColumn Resizable="False" Visible="False">

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn Visible="False">

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

Webguy
Top achievements
Rank 1
 answered on 03 Feb 2010
2 answers
266 views
I have to enable/disable button on the textchanged event. If I use server side textchanged event with autopostback true, the Ajax request takes some time and in the meantime, the user can click the button which is enabled but has to be disabled on text changed event. How can I do the Javascript Onblur event with RadAjaxmanager on the page or trap the textbox onblur event even if the button is clicked ?

Thanks

Thanks.
Martin
Telerik team
 answered on 03 Feb 2010
5 answers
174 views

Today I upgraded from the Telerik.Web.UI version 2008.3.1125.20 to version 2009.1.311.20. Doing so broke all the javascript/AJAX functionality on my webpage. After a couple of hours of removing controls I eventually narrowed the problem down to setting the RadDock.Visible property to false.

When that property is set to false, either in the markup or in the code behind, a javascript error occurs in the MicrosoftAjax.js file. With identical code this error does not occur for the previous version of the Telerik.Web.UI assembly.

Here is a link to a sample project I have created demonstrating the issue: http://dl.getdropbox.com/u/109257/RadControlsExample.zip.

Currently the project references the 2009.1.311.20 version of the Telerik.Web.UI assembly in the /dep/Telerik.Web.UI/2009.1.311.20 folder. You can run the project to see that an error occurs in the javascript execution of the page. You will also notice that the javascript function DockInitialize() that I added to the Default.aspx markup that changes the cursor when you mouse onto and off of the title bar for the RadDocks does not work because of this error.

If you change the referenced Telerik.Web.UI assembly to the one located in the /dep/Telerik.Web.UI/2008.3.1125.20 folder (the previous version) and uncomment the proper .axd references in the Web.config file you will see that the page loads without error and the javascript functions properly.

I'm would like a solution to this error so I can upgrade as soon as possible. In the meantime I am going to have to use an older version of the Telerik.Web.UI assembly.

Thank you.

Pero
Telerik team
 answered on 03 Feb 2010
1 answer
74 views
Hi,
We are using RadEditorPlaceHolder in MCMS 2002 driven ASP.NET 2.0 application. In edit mode user posts content in to this control. The posting contains text and images. So the height of the control cannot be determined thorough code at design as well as runtime. The AutoResizeHeight property also does not work with this control. So the content is over flown out of control or the control become too lengthy than the content if fix the height through the code / property.

Kindly help me to fix this issue as soon as possible.

Thank you,
Jey
Rumen
Telerik team
 answered on 03 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?