Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
166 views
I've got a site using RadSplitter with two RadPanes. One is navigation the other content. I want the browser tab title to reflect the title of the web page showing in the content pane.

I've tried something like this from a interval timer. But iframe.document.title is not the title of the web page. Any ideas?

var iframe = $find("<%= ContentPane.ClientID %>").getExtContentElement();                   
document.title = iframe.document.title;
 
paaland
Top achievements
Rank 2
 answered on 13 Apr 2012
1 answer
74 views
Hi,

 Wrong page entries are showing in telerik self referencing hierarchy grid. It should page entries from parent entries of the grid only but it is showing child entries count also. please see the attachment for more details.

What is 26-99 of 36 in the screen shot? it should be 26-36 of 36. This is page2. In page1 also it is showing 1-175 of 36 but it should be 1-25 of 36.

please give me proper fix.

Thanks,
Rajasekhar.
Eyup
Telerik team
 answered on 13 Apr 2012
1 answer
65 views
Here is the code that I am trying. How to hide autogenerated edit column based on cell text?
protected void StoresGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            TableCell cell = (TableCell)item["StoreId"];
           if(cell.Text=="1")
      //how to hide autogenerated edit column here
              
}
}

Princy
Top achievements
Rank 2
 answered on 13 Apr 2012
1 answer
129 views
All the standard ASP.net controls that have a ImageURL property accept relative urls (ex. ~/img/image.gif)

When I place a relative URL into a Rad Rating Item, it doesn't resolve the URL, it simply embeds this as a literal value to the page's CSS.

<telerik:RadRatingItem CssClass="ratingItem" Value="1" ImageUrl="~/img/ratings/rating_1_normal.png" ToolTip="Very Easy" SelectedImageUrl="~/img/ratings/rating_1_selected.png" HoveredImageUrl="~/img/ratings/rating_1_hover.png" />

I can adjust the URL's accordingly by removing the ~/ and change it to an absolute path, however when published to a server sometimes the path is a little different. This results in the images not displaying because the CSS is pointing to the wrong place.  Is this by design?

I used this code to resolve the URLs so that I could use relative paths in the image URL properties:
If String.IsNullOrEmpty(item.ImageUrl) = False Then
              If item.ImageUrl.StartsWith("~/") Then
                  item.ImageUrl = ResolveUrl(item.ImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.SelectedImageUrl) = False Then
              If item.SelectedImageUrl.StartsWith("~/") Then
                  item.SelectedImageUrl = ResolveUrl(item.SelectedImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.HoveredImageUrl) = False Then
              If item.HoveredImageUrl.StartsWith("~/") Then
                  item.HoveredImageUrl = ResolveUrl(item.HoveredImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.HoveredSelectedImageUrl) = False Then
              If item.HoveredSelectedImageUrl.StartsWith("~/") Then
                  item.HoveredSelectedImageUrl = ResolveUrl(item.HoveredSelectedImageUrl)
              End If
          End If

Is there ever going to be an implementation of allowing relative paths in the image URL fields?
Niko
Telerik team
 answered on 13 Apr 2012
3 answers
35 views
Hi,

We have RadEditor 5.8.12.0 and MOSS 2007.

RadEditor works fine in non-IE browsers, but it also is activated in IE. I have not specifically activated it, just deployed it in Solution Management after un-deploying the Lite 4.5 version.

I would like RadEditor to NOT activate in IE, instead using the MOSS built-in rich text editor.

How do I achieve this?

Many thanks

Mark
Stanimir
Telerik team
 answered on 13 Apr 2012
3 answers
132 views
Hi,

when I activate the AddComment-Button in the ListToolsFile.xml I get the proper button, but using it I get the message: "The command AddComment is not implemented yet."

Is this feature not supported for use within SharePoint yet?

Thanks,
Phil

Stanimir
Telerik team
 answered on 13 Apr 2012
1 answer
157 views

Hi,


I have created a custom progress bar usercontrol using RadProgressArea. I have placed this control in one of my web page. On a button click event a usercontrol method will be triggered. This method in turn will trigger the UpdateProgressContext method for setting the Radprogresscontext.  The progress percentage will be retrieved using progressMethod. The RadProgressBar is getting displayed.
But if I try to call the UpdateProgressContext method asynchronously using delegate, my progressbar itself is not displayed. This is my code.

private delegate void BeginProgress(Progress prog); 

public Update(Progress progressMethod)
{
    BeginProgress beginUpdate = new BeginProgress(UpdateProgressContext);
  
    beginUpdate.BeginInvoke(progressMethod, new AsyncCallback(ProgressCallbackMethod), new object());
}
  
private void UpdateProgressContext(Progress progressMethod)
{
            int currentPercentage = 0;
            const int total = 100;
            while (currentPercentage <= 100)
            {
  
                currentPercentage = progressMethod();
  
                radProgress.Speed = "N/A";
                radProgress.PrimaryTotal = 1;
                radProgress.PrimaryValue = 1;
  
                radProgress.PrimaryPercent = 100;
  
                radProgress.SecondaryTotal = total;
  
                radProgress.SecondaryValue = currentPercentage;
                radProgress.SecondaryPercent = currentPercentage;
  
                radProgress.CurrentOperationText = "Step " + currentPercentage.ToString();
  
                radProgress.TimeEstimated = (total - currentPercentage) * 100;
            }
        }

Any help will be appreciated. Thanks in advance.

Regards,
Subbu

Genady Sergeev
Telerik team
 answered on 13 Apr 2012
1 answer
86 views
In javascript I can do this to expand a pane.

function expandPane(paneID)
    {
        var splitter = $find("Radsplitter1");
        var pane = splitter.getPaneById(paneID);
        pane.expand();
    }

How can I do the same thing from C# code behind?
Rumen
Telerik team
 answered on 13 Apr 2012
1 answer
94 views
Hi,
The context menu from the editor seems not to pay attention to anything in editor.css which I have told the editor to use, which works for the main content, but context menus seems to inherit from my main page css.

is there a way to overide the css for the context menu? which classes does it use? or div elements?

Thanks

Joss
Rumen
Telerik team
 answered on 13 Apr 2012
4 answers
163 views
Hello,

I have a set of RadDock's with 3 commands; edit, close and minimize/maximize.
I use a custom headertemplate for the docks, the toolbar renders as clickable icons below my headertemplate.
I would like to change this toolbar to be a dropdown menu (just a square arrow, clicking it brings up the three options in the toolbar)... in the very right of the dock header but I'm not sure how I would achieve this.

Any suggestion/approach on how this can be achieved is greatly appreciated! :)

Thanks,
Lars
Lars
Top achievements
Rank 1
 answered on 13 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?