Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views

Hello,,

 

We are using RadEditor in  our application. Here we are facing an issue in RadEditor’s HTML mode.

The actual issues is ,the word href="[!RPLINK:2!]"  is displaying as href="[%21RPLINK:2%21]".

We are not getting why the extra characters are displaying like %21 instead of ! in  HTML mode.

This issue exist  in FireFox browser only in IE, Chrome its working fine.

REgards
Samir

Samir Patel
Top achievements
Rank 1
 answered on 06 Jun 2012
2 answers
53 views
Since I always get a server error when I try to reply to my thread
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupsdefaultexpanded-after-sorting-reorder.aspx
I post my post herein, perhaps an admin could merge the threads.

So here is my reply:
Thanks for that sample. But somehow the group expands only after two clicks on the expand icon (both clicks do a postback). This occurs only after the page was rendered the first time, after that it works normally. 
What could that be?   
JP
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
268 views
Hello!

I use RadFormDecorator for styling. My form contains a DropDownList (asp:DropDownList). I want to disable/enable the DropDownList by javascript.
if (chb.checked) {
   jQuery("#" + ddlId).removeAttr('disabled');
} else {
   jQuery("#" + ddlId).attr('disabled', 'disabled');
}

It works good in FF and Chrome. But it does not work in IE.
How can I fix it?

Thanks 
Niko
Telerik team
 answered on 06 Jun 2012
1 answer
164 views

Hi,

I have come across an issue with the layout of a tab strip on my page.  I have a menu div on the left side with a fixed height and a content div next to it.

The issue is that the tabs appear at the bottom of the page instead of in the div st the top (see attached screen shot).

Here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Tabstriptest._default" %>
  
<%@ 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 runat="server">
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
    <div style="width: auto;">
            <div style="width: 180px;height: 500px; float: left;background-color: Red;">Menu here</div>
            <div style="width: auto;margin-left: 190px;margin-right: 0px;">
                <div style="width: 100%;background-color: Green;">
                    <telerik:RadToolBar ID="rtbVisitMenu" runat="server" Width="100%">
                    <Items>
                        <telerik:RadToolBarButton runat="server" Text="New Visit">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" Text="Edit Visit">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" Text="Print">
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>
                </div>
                <div style="width: 100%;background-color: Blue;">
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
                        <Tabs>
                            <telerik:RadTab Text="tab 1" runat="server" PageViewID="RadPageView1" Selected="true"></telerik:RadTab>
                            <telerik:RadTab Text="tab 2" runat="server" PageViewID="RadPageView2"></telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
                        <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">RadPageView1</telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView2" runat="server">RadPageView2</telerik:RadPageView>
                    </telerik:RadMultiPage>
                </div>
            </div>
        </div>
  </form>
</body>
</html>

Is this an issue with the tab strip of is there soem html/css I can use to get around this.

Thanks

Gavin.

Princy
Top achievements
Rank 2
 answered on 06 Jun 2012
5 answers
204 views
Hi there,

For our application we are trying to show two series of data in a stacked bar chart, each series contains 2 items. We are finding a problem where we are getting both series items being displayed within the same stacked bar, so rather than having 2 items per bar...we have 4.

If we use the group databinding feature on a normal bar chart it seems to be working fine but under stacked bar chart type we are encountering problems

Hope you can help

Regards
Rosko
Telerik team
 answered on 06 Jun 2012
2 answers
131 views
Hi all, 

My requirement was to search a text the user gives inside the Grid and select that particular row. The user can also do find next in the grid. I was able to identify all the rows in which that particular text is there. And I am able to select each row as well and show it to the end user. But the problem is, it is a hierarchy grid. So assume that the row is present in the second level of grid. Then the row gets highlighted. But the second level is not expanded. The user has to expand and find out where the text is. Instead of this, is there any alternative approach that I can take. 

Sample Code:

 $.each(($("#ctl00_ContentPlaceHolder_SpreadSheet1").find(":contains('EXPNUM CHICKEN BRST AIRLINE CUT')")), function () {
        if ((this.nodeName == "TR") && (($(this).is('.rgRow')) || ($(this).is('.rgAltRow')))) {
            $find("ctl00_ContentPlaceHolder_SpreadSheet1")._spreadSheet().searchResults.push(this);
         this.focus();
           this._selected = true;
            this.click();
           this.setActive = true;
        }

($("#ctl00_ContentPlaceHolder_SpreadSheet1").find(":contains('EXPNUM CHICKEN BRST AIRLINE CUT')")) 

The above statement gives me all the results in an array. From that array, I am trying to filter only the rows and raising the click event. But the parent level of that particular row has to get expanded. So that the user can see the highlighted row. 

Regards,
Meenakshi Sekar. 
Meenakshi
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
314 views
I'm trying to give the Captcha image rounded corners, and am not figuring it out.  I've attempted to use jQuery to wrap the image element in a span tag and setting the background image to use the same src, but that came up blank.  Now I'm trying to wrap in div tags, but they disappear whenever a new image is generated.

Perhaps I'm mistaken with my angle of attack - all I really want to do is give rounded corners and a border to the image.  Any advice on how to accomplish this would be most appreciated.

Thanks,
Joel
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2012
1 answer
133 views
I have a page where I have a standard HTML Select element that is decorated using the RadFormDecorator.  I am dynamically updating the options in the list via javascript and making an asp.net ajax call to a webservice that has a call back that in turn clears out the select's options list and re-populates it.  The problem is that the options are being updated, but the portion of the drop down that is displayed and populated from the RadFormDecorator is not updated.  I have attached the dcode that shows how I am updating the control.  Any help in figuring out what I need to do to get the <ul> portion that is created by the radformdecorator would be much appreciated.

Thanks!

function populateSearchAttributesSuccess(result) {
    var drpSearchAttributeFixedList = document.getElementById('drp_SearchAttributeFixedList');
    var drpSearchAttributeAssociatedList = document.getElementById('drp_SearchAttributeAssociatedList');
    var drpSearchAttributeItemLookup = document.getElementById('drp_SearchAttributeItemLookup');
    var drpSearchAttributeBlackList = document.getElementById('drp_SearchAttributeBlackList');
    var drpSearchAttributeFilterAssociatedList = document.getElementById('drp_merchlist_search_attribute');
 
    var doFixed = false;
    var doAssociated = false;
    var doLookup = false;
    var doBlack = false;
    var doFilter = false;
 
    if (drpSearchAttributeFixedList != null) {
        doFixed = true;
        drpSearchAttributeFixedList.style.display = 'block';
        drpSearchAttributeFixedList.options.length = 0;
    }
    if (drpSearchAttributeAssociatedList != null) {
        doAssociated = true;
        drpSearchAttributeAssociatedList.style.display = 'block';
        drpSearchAttributeAssociatedList.options.length = 0;
    }
    if (drpSearchAttributeItemLookup != null) {
        doLookup = true;
        drpSearchAttributeItemLookup.style.display = 'block';
        drpSearchAttributeItemLookup.options.length = 0;
    }
    if (drpSearchAttributeBlackList != null) {
        doBlack = true;
        drpSearchAttributeBlackList.style.display = 'block';   
        drpSearchAttributeBlackList.options.length = 0;
    }
    if (drpSearchAttributeFilterAssociatedList != null) {
        doFilter = true;
        drpSearchAttributeFilterAssociatedList.options.length = 0;
    }
         
    var xmlCatalogsArray = result.getElementsByTagName('Table1');
 
    var o;
 
    for (var i = 0; i < xmlCatalogsArray.length; i++) {
        if (xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild != null && xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild) {
            if (doFixed) {
                //Populate the fixed list
                o = document.createElement('option');
                o.value = xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild.data;
                o.text = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
                o.label = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
 
                if (isInternetExplorer())
                    drpSearchAttributeFixedList.appendChild(o);
                else
                    drpSearchAttributeFixedList.add(o, null);
            }
 
            if (doAssociated) {
                //Populate the associated list
                o = document.createElement('option');
                o.value = xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild.data;
                o.text = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
                o.label = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
 
                if (isInternetExplorer())
                    drpSearchAttributeAssociatedList.appendChild(o);
                else
                    drpSearchAttributeAssociatedList.add(o, null);
            }
 
            if (doLookup) {
                //Populate the Item Lookup field
                o = document.createElement('option');
                o.value = xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild.data;
                o.text = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
                o.label = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
 
                if (isInternetExplorer())
                    drpSearchAttributeItemLookup.appendChild(o);
                else
                    drpSearchAttributeItemLookup.add(o, null);
            }
 
            if (doBlack) {
                //Populate the Blacklist search attribute selector
                o = document.createElement('option');
                o.value = xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild.data;
                o.text = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
                o.label = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
 
                if (isInternetExplorer())
                    drpSearchAttributeBlackList.appendChild(o);
                else
                    drpSearchAttributeBlackList.add(o, null);
            }
 
            if (doFilter) {
                //populate the associated merchandising list filtering box
                o = document.createElement('option');
                o.value = xmlCatalogsArray[i].getElementsByTagName('ResonanceField').item(0).firstChild.data;
                o.text = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
                o.label = xmlCatalogsArray[i].getElementsByTagName('CustomerField').item(0).firstChild.data;
 
                if (isInternetExplorer())
                    drpSearchAttributeFilterAssociatedList.appendChild(o);
                else
                    drpSearchAttributeFilterAssociatedList.add(o, null);
            }
        }
    }
Niko
Telerik team
 answered on 06 Jun 2012
1 answer
64 views
Hi,

I added export to Excel/Word/Pdf to my RadGrid. Export to excel works perfectly, but export to pdf and Word just corrupt my Grid's layout (header and footer aren't displayed anymore). After another postback (e.g. when sorting), the Grid is correctly 
displayed.

These are my settings:
grid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true;
grid.MasterTableView.CommandItemSettings.ShowExportToPdfButton = true;
grid.MasterTableView.CommandItemSettings.ShowExportToWordButton = true;
grid.ExportSettings.IgnorePaging = true;
grid.ExportSettings.ExportOnlyData = true;
grid.ExportSettings.OpenInNewWindow = true;


I don't have any special logic for excel. This is the only thing I do in the GridItemCommand event handler:

if (e.CommandName == RadGrid.ExportToExcelCommandName ||
   e.CommandName == RadGrid.ExportToPdfCommandName
   || e.CommandName == RadGrid.ExportToWordCommandName)
{
   foreach (GridColumn column in grid.MasterTableView.Columns)
   {
      if (!(column is GridBoundColumn) && !(column is GridCheckBoxColumn))
      {
         column.Visible = false;
      }
   }
}

I don't get any server or client-side errors/warnings when exporting, so what could that be?
JP
Top achievements
Rank 1
 answered on 06 Jun 2012
3 answers
116 views
Hi,

I have a RadComboBox defined as follows:

<telerik:RadComboBox
    ID="ddlValue"
    runat="server"
    AllowCustomText="True"
    Width="320px"
    MarkFirstMatch="True"
    AutoCompleteSeparator=";"
    AutoPostBack="true"
    OnSelectedIndexChanged="ddlValue_SelectedIndexChanged">
</telerik:RadComboBox>

And this code-behind

protected void Page_Load(object sender, EventArgs e)
{
    if (!this.IsPostBack)
    {
        var datasource = new RadComboBoxItemCollection(ddlValue)
        {
            new RadComboBoxItem("", ""),
            new RadComboBoxItem("David Larkin", Guid.NewGuid().ToString()),
            new RadComboBoxItem("Ahmed Warreth", Guid.NewGuid().ToString()),
            new RadComboBoxItem("Ryan Estes", Guid.NewGuid().ToString()),
            new RadComboBoxItem("Antonio Siqueira", Guid.NewGuid().ToString())
        };
 
        ddlValue.DataSource = datasource;
        ddlValue.DataTextField = "Text";
        ddlValue.DataValueField = "Value";
        ddlValue.DataBind();
    }
}
 
protected void ddlValue_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    ltrSelection.Text = (sender as RadComboBox).Text;
}
I'm experiencing the following behaviour:
  1. Choose David Larkin from the combo box
  2. David Larkin appears in the label as expected
  3. Place the cursor in the combo box at the end of the text, type ";Ah" and press Enter
  4. David Larkin;Ahmed Warreth appears in the label as expected
  5. Choose the first item in the combo box
  6. I would expect the text of the combo box to become an empty string, but it is actually "David Larkin;"

Is there some property that I'm not setting that would cause this, or is it a bug in the control?

I'm using version 2011.1.413.40.

Thanks,

David
Princy
Top achievements
Rank 2
 answered on 06 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?