Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
155 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
191 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
117 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
116 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
196 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
1 answer
193 views
We're transitioning certain pages of our project to a new skin. Basically what I'd like to do is use Telerik's Black skin as the default and then in my appthemes folder make the customizations. In my web config I have a Telerik.Skin defined in app settings <add key="Telerik.Skin" value="MyOldSkin" />

There is also a <pages styleSheetTheme="MyOldAppTheme" />

I need to on a page by page basis be allowed to override these two settings WITHOUT altering the original settings...I tried just on my aspx page

<%Page stylesheettheme="MyNewThemeFolder" ...
<telerik:radskinmananger skin="Black"

Is this possible? its somewhat kind of working sometimes but not really and I'm not sure I'm doing this correctly any help greatly appreciated.
Tsvetina
Telerik team
 answered on 13 Apr 2012
4 answers
414 views
I'm getting this error message when using radeditor with ToolbarMode="ShowOnFocus" and ContentAreaMode="Div"
along with any textbox

As soon as you focus on the TextBox the JS error comes up.

Using firefox 4. 

telerik version 2011.1.510.40

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadEditor ID="RadEditorFooter" runat="server" ToolbarMode="ShowOnFocus"
            ContentAreaMode="Div">
        </telerik:RadEditor>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>


How do i fix this?
thank you
Rumen
Telerik team
 answered on 13 Apr 2012
2 answers
298 views
Hello Telerik-Team,
I know in some threads this problem is adressed, but I could not found a solution.

This is what I am doing, or rather would do, in my project.

I have a vertical RadSplitter control which contains in the left pane a RadScheduler and in the right pane another RadSplitter control. The RadSplitter control in the right pane is inside a RadSlidingZone/RadSlidingPane control.

At the start, the RadSlidingZone on the right is slided out, so the RadScheduler control is visible in the maximum width, which is working perfectily.

My goal is now, only to show a zoned out RadSlidingZone if the currently selected view of the RadScheduler (the left part of the vertical RadSplitter) is DayView or WeekView, i.e. when the user switches to the MonthView two two things should happen:

1. If in the DayView or in the WeekView the right part, i.e. the SlidingZone, was visible, it should zone out, so the month view has its maximal width

2. The button to slide in or out the sliding zone should be disabled, or at least not work if the user clicks it.

The second part works fine, i.e. I wrote a javascript function which is called with the right sliding out event, i.e. if the user clicks the SlidingZone button, I check in the java script method if the selected view is the month view, and if yes the event will be canceled (I found this trick on the forum, thanks a lot :-))

My problem is the first thing:
I found in this forum a way to automatically slide out the sliding zone, using the javascript functions RadSlidingZone.undock(<SlidingPaneId>) (if the pane is docked) or RadSlidingZone.collapse(<SlidingPaneId>) (if the pane is only expanded)

The RadSlidingZone.collapse() method works fine, i.e. at after changing the view (I do not use the navigation commands but an own combo box, i.e. I cannot use the OnNavigationCommand client event) and after loading the new html page I run a little java script . If the selected view is then month view, I call the collapse java script method. Naturally this works only if the RadSlidingZone is NOT DOCKED, but only expanded.

But if I change to day view, expand the SlidingZone and dock it (or use the property to dock it automatically after expanding it) and then change back to the month view, the docked SlidingZone will not undock. I know, in this case I have to use the undock() method of the SlidingZone, but when I use this, the return value is simply false. When I debug this, the RadSlidingZone property with the ID of the expanded AND the property with the ID of the DOCKED pane are both "null", therefore the undock() method will not work (neither  the collapse() method).

I read in the forum that it is possible to undock the RadSlidingPane back on the server in C# (the C#-property which holds the ID of the docked pane can simply be set to zero). I tried this, and yes, the former docked RadSlidingPane will vanish BUT the left pane of my RadSplitter control, i.e. the RadScheduler control, will not be expanded to the right. It's width will not be changed, so that the RadScheduler pane does not change but the docked sliding pane will undock and therefore the area on the right of my vertical RadSplitter control is empty.

Do you have any ideas?

Is it possible to simulate the click of the undock button with java script? Because if the user first clicks the undock button and then changes the view type all works.

Greetings,
Richard
Richard
Top achievements
Rank 1
 answered on 13 Apr 2012
7 answers
180 views
Hello

I'm building up my web application using RadRibbonBar.

I have a question that can RadRibbonBar collapse and expand like the one in Office 2010?

Because the ribbon bar seems to take a lot of space...

Thanks in advance.

Thanh Dang
Bozhidar
Telerik team
 answered on 13 Apr 2012
5 answers
247 views
I have added a table control inside radpanelitem content template.
The issue is with the row, it does not take the height of the image inside it (6px)
If i render the table without the radpanelbar, the rows are rendered correctly.
I would appreciate any workaround for this issue.

Here is the code (please replace the images with different images to see the error) -

<telerik:RadPanelBar ID="RadPanelBar3" runat="server" ExpandMode="FullExpandedItem" Width="100%">
            <Items>
                <telerik:RadPanelItem runat="server" Text="search" Expanded="True">
                    <ContentTemplate >
                        <asp:Table runat="server" ID="tblsearchRequest" style="border-spacing:0;" CellSpacing="0" >
                            <asp:TableRow style="border-width:0">
                                <asp:TableCell style="margin:0;padding:0;border-width:0; font-size: 1px">&nbsp;</asp:TableCell>
                                <asp:TableCell HorizontalAlign="left" style="padding-right: 4px; border-bottom: 1px solid #B4BBCD; padding: 0px;  font-size: 1px"></asp:TableCell>
                                <asp:TableCell ID="tdAny" runat="server" HorizontalAlign="left"  style="border-bottom: 1px solid #B4BBCD; padding-right: 4px; padding: 0px; height: 6px; font-size: 1px; width: 11px" VerticalAlign="bottom">
                                    <asp:Image Visible="false" Width="11" Height="6" ID="imgSelAny" runat="server" ImageUrl="~/Images/SelectArrow.gif" BorderWidth="0" ></asp:Image>
                                </asp:TableCell>
                                <asp:TableCell HorizontalAlign="left" style="padding-right: 4px; border-bottom: 1px solid #B4BBCD; padding: 0px;  font-size: 1px"></asp:TableCell>
                                <asp:TableCell ID="tdAll" runat="server" HorizontalAlign="left" style="border-bottom: 1px solid #B4BBCD; padding-right: 4px; padding: 0px; height: 6px; font-size: 1px; width: 11px" VerticalAlign="bottom">
                                    <asp:Image Visible="false" ID="imgSelAll" Width="11" Height="6" runat="server" ImageUrl="~/Images/SelectArrow.gif" BorderWidth="0" ></asp:Image>
                                </asp:TableCell>
                                <asp:TableCell HorizontalAlign="left" style="padding-right: 4px; border-bottom: 1px solid #B4BBCD; padding: 0px;  font-size: 1px"></asp:TableCell>
                                <asp:TableCell ID="tdBool" runat="server" HorizontalAlign="left" style="border-bottom: 0px solid #B4BBCD; padding-right: 4px; padding: 0px; height: 6px; font-size: 1px; width: 11px" VerticalAlign="bottom">
                                    <asp:Image ID="imgSelBool" Width="11" Height="6" runat="server" ImageUrl="~/Images/SelectArrow.gif" BorderWidth="0" ></asp:Image>
                                </asp:TableCell>
                                <asp:TableCell HorizontalAlign="left" style="padding-right: 4px; border-bottom: 1px solid #B4BBCD; padding: 0px; font-size: 1px"></asp:TableCell>
                                <asp:TableCell style="margin:0;padding:0;border-width:0; font-size: 1px"></asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>
                    </ContentTemplate>
                </telerik:RadPanelItem>
            </Items>
    </telerik:RadPanelBar>
Ivan Zhekov
Telerik team
 answered on 13 Apr 2012
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?