Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
84 views
How do you create a new instance of a RadWindow using Javascript, I am trying to create multiple RadWindows based on the CommandName of the Button on the Ribbon. For example, a button called "Create Chart" will open a new window of a chart, and the user can click "Create Grid" to display a grid window, both of the windows should be on the page. And I am trying to do this without a postback...which is why I want to create them using Javascript.

Here is the function I am trying

function dsxRibbonBar_ButtonClicked(sender,args)
{
 var windowType = args.get_commandName();//How do I get the the button command name? 
 alert(windowType);
}


Thanks in advance.



Michael
Michael
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
30 views
The Context popup menu which comes on right click, inside the RadEditor control is not having aligned text.
the menu text in the popup, is wrapped and not in order.
Please find attached the screenshot
Rumen
Telerik team
 answered on 14 Mar 2013
1 answer
61 views
    <telerik:RadEditor ID="Message" runat="server" ClientIDMode="Static" Height="400px"
                                Width="100%" EditModes="Design, Preview" ToolsFile="~/Styles/RadTools.xml"
                                EnableResize="False">
                                <ImageManager MaxUploadFileSize="100" UploadPaths="~/images" ViewPaths="~/images" />
                                <MediaManager MaxUploadFileSize="100" UploadPaths="~/images" ViewPaths="~/images" />
                                <FlashManager MaxUploadFileSize="100" UploadPaths="~/images" ViewPaths="~/images" />
                            </telerik:RadEditor>


I'm using Telerik Rad Editor in my Application, when i click on Editor the cursor is no showing up, but when i start typing the cursor appears at the begginning of the text and did not move along with the text.

Thanks
Rumen
Telerik team
 answered on 14 Mar 2013
1 answer
102 views
When I load the rad editor in IE 9 with compatibility mode set to IE 7, I get the following error alerts invoked from RadEditor.js. Whereas in Mozilla, it loads without such error alerts and the content is displayed. Also, this works fine if the IE9 is set to IE9 compatibility mode.

"error while executing filter StripScriptsFilter - [object Error]"
"error while executing filter EncodingScriptsFilter - [object Error]"

Following these alert messages, the rad editor does not load the content rather it shows "null."

I am using Rad Editor of Telerik.Web.UI (version 2011.2.712.40).

Let me know how to fix this issue.
Rumen
Telerik team
 answered on 14 Mar 2013
3 answers
85 views

What is the version of jQuery used in 2013.1.220?
On the site http://www.telerik.com/help/aspnet-ajax/introduction-using-jquery.html you are listing 2012 Q3 and mentioning jQuery 1.7.2, support. What about this latest release, which version of jQuery does it support, thanks.

Genady Sergeev
Telerik team
 answered on 14 Mar 2013
1 answer
128 views

Live, as the user types, I would like the same characters that are entered in one editor to appear in another.  How can I do this?  If there is some way to do this with client-side events, that would be awesome.

What I'm doing is using a RadEditor for a text area where the user types message content for the body of an email.  We have HTML templates for these emails that the user selects.  These get loaded into another RadEditor that shows a Preview of the user's email.   When the user clicks an Update button, the text from the message content editor gets inserted into part of the template inside the preview editor.   This is done so that we can control exactly what parts of the template a user modifies.   

It would be awesome if I could do away with that "Update" button and instead update the Preview as the user types!   

Thanks for your time.
Lee
Top achievements
Rank 1
 answered on 14 Mar 2013
2 answers
489 views
Hi All,

I have a textbox and a radgrid on aspx page.
i write the path of css file in that textbox and on textbox's text change event i want to apply the given css to RadGrid to change the display style of the RadGrid (as we can do with Asp.net GridView control). I dont want to use the skins.
How can i apply the css classes to change the style of rows,headers and footers dynamically without creating skins. 

Sh
Top achievements
Rank 1
 answered on 14 Mar 2013
2 answers
105 views
I have RadGrids in my application that need the columns resized by their content; however, I do not want to include header into consideration for resize.

For example, in the grid below, the content of Contact Person Name is almost always empty. Using the code below, the Contact Person Name becomes as wide as it needs to be to fit the header in one single row. But I do not care about the header content, it can be split into multiple lines if need be. If all the 25 rows in a page is empty for this record, I'd rather the header be split into three lines (one per word) and have a small column.

<telerik:RadGrid ID="rgCompany" runat="server" AutoGenerateColumns="false" EnableViewState="true"
    PageSize="25" AllowSorting="true" AllowMultiRowSelection="true" AllowCustomPaging="true"
    OnNeedDataSource="rgCompany_NeedDataSource" OnSortCommand="rgCompany_SortCommand"
    OnItemDataBound="rgCompany_ItemDataBound">
     
    <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Bottom" AlwaysVisible="True" />
 
    <ClientSettings EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="true"></Selecting>
        <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" AllowResizeToFit="True"></Resizing>
        <ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" />
    </ClientSettings>
     
    <MasterTableView>
        <telerik:GridBoundColumn UniqueName="Name" HeaderText="Company Name" DataField="CompanyName" />
        <telerik:GridBoundColumn UniqueName="City" HeaderText="City" DataField="City" />
        <telerik:GridBoundColumn UniqueName="State" HeaderText="State" DataField="State" />
        <telerik:GridBoundColumn UniqueName="Zip" HeaderText="Zip" DataField="Zip" />
        <telerik:GridBoundColumn UniqueName="Phone" HeaderText="Phone Number" DataField="PhoneNumber" />
        <telerik:GridBoundColumn UniqueName="Contact" HeaderText="Contact Person Name" DataField="ContactName" />
    </MasterTableView>
 
</telerik:RadGrid>


I'm calling this function from the javascript pageLoad of all pages that contain grid.

function resizeGridToFitColumnContent (grid) {
    var masterTable = grid.get_masterTableView();
    var columns = masterTable.get_columns();
     
    for (var i = 0; i < columns.length; i++) {
        columns[i].resizeToFit();
    }
}


Can this be achieved?

Also, sometimes if the grid is long (a lot of columns) it takes more than a few seconds for the page is load up. The screen goes white until the calculation is done and grid is displayed. How can I easily provide a message during this time?
Galin
Telerik team
 answered on 14 Mar 2013
4 answers
268 views
I'm using a radfileexplorer to display a list of folders that have pdf files within them.  My folders are named for the year that pdf file is about so I have folders from 2005-2012. Within vs2008 it orders my folders from 2005 down to 2012 and that is how it displays in my radfileexplorer.   I need to have 2012 be the top folder going down to 2005 and i'm not sure how I can achieve this.

Instead of listing like this:
2005
2006
2007
.
2012

I need it to list like this:
2012
2011
2010
.
2005

Thank you for any help
Tc Blaize
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
146 views
Hi,

 I am trying to export aspx page to PDF by using itextsharp.dll.

But unable to do that with Telerik Rad controls in page,  itextsharp.dll is not able to recognize the Telerik controls.

I appreciate help on this issue for exporting aspx page with PDF.


Thanks,
Gops
Rumen
Telerik team
 answered on 14 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?