Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
169 views
Hi,

I have a RadGrid (version Q1 2012) in which I hide some items in the headercontextmenu :

protected void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
        {
            switch (e.Item.Value)
            {
                case "GroupBy":
                case "UnGroupBy":
                case "bottomGroupSeperator":
                case "BestFit":
                case "bestFitSeparator":
                case "ColumnsContainer":
                case "filterMenuSeparator":
                    e.Item.Attributes.Add("style", "display: none");
                    break;
                default:
                    break;
            }
        }


The items are hidden except for the separators I want to hide. The result I see is four separators in stead of one.
How can I hide these separators?

Paul

Princy
Top achievements
Rank 2
 answered on 21 May 2012
7 answers
383 views
I use RadUpload to upload multiple files of varying count. I select each file at a time, sometimes more than 10 files.
I wish that I in the RadUpload "select file" dialogue was able to select multiple files and that the RadUpload detected the number of selected files and automatically added every file to the RadUpload control as a separate "file item".

Or is this already possible?
Princy
Top achievements
Rank 2
 answered on 21 May 2012
2 answers
156 views
Hello

I am using RadMaskedTextBox

<telerik:RadMaskedTextBox ID="txtContactPhoneFax" runat="server" Mask="(###) ###-#### ####"  Text='<%# Bind("Fax") %>'>      </telerik:RadMaskedTextBox>

In application I am entered the values in textBox like -->  (222) 456-7778 7779

When I get the values in code  like -->  txtContactPhoneFax.text
It shows   --> 22245677787779 only


But,I need the values in  code  like  (222) 456-7778 7779


Thanks in Advance



PINCO
Top achievements
Rank 1
 answered on 20 May 2012
5 answers
273 views
I tried to use the export to PDF for the Telerik RadGrid but it doesn't work.
I think that this is a problem for me since all of my pages are inside Master page that already has script manager, so I can't add another one in my content page.
What can I do to solve it?

right now, I have this:

masterpage:
<asp:ScriptManager id="scriptmanager1" runat="server"/>

contentpage:
<asp:content id="content1" contentplaceholder="contentplaceholder1" runat="server">
<asp:updatepanel id="up1" runat="sever"
<telerik:RadGrid id="radgrid1"...>
<exportSetting ignorePaging="true" openInNewWindow="true">
<pdf pageheight="297mm" pagewidth="210mm" 
</exportSetting>
<masterTableView commanditemdisplay="top">
<command itemtemplate>
<asp:imagebutton id="downloadpdf" runat="server" commandname="exporttopdf" imageurl="pdf.jpg" backcolor="white">
</command itemtemplate>
  
......
  
</asp:updatepanel>
</asp:content>
DANA
Top achievements
Rank 1
Veteran
 answered on 20 May 2012
1 answer
84 views
When using the Apply Class tool to allow the user to select a css class to format text - there is a "Clear Class" item that is automatically added to the list of classes/styles the user can select. 

How can I change the text of that first item? I would like it to say Clear Style or Clear Formattig instead. Is there a property somewhere I can set?
Rumen
Telerik team
 answered on 19 May 2012
1 answer
131 views
I need RadEditor to upload and embed YouTube videos.  This is working in several browsers, but not in IE8.  Is there any reason you can think of that it wouldn't or anything that needs to be configured in Explorer?  Here is some sample code. 

<object width="210" height="150">
     <param name="movie" value="http://www.youtube.com/v/o2GBYBTty0M">
     </param>");
     <param name="wmode" value="transparent">
     </param>");
     <embed src="{UrlVideo}"");
        type="application/x-shockwave-flash" wmode="transparent"
      width="210" height="150">
      </embed>
      </object>

Thanks in advance for your help.
Rumen
Telerik team
 answered on 19 May 2012
5 answers
93 views
While testing I came across this issue where if a block of text has multiple styles/classes already applied to it and you try to reset them all to one common style - it doesn't work. I can recreate this issue in your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/cssfiles/defaultcs.aspx 


 In the attached image you can see the situation I created with the following steps:  It is what Microsoft chose to use  

  1. apply* Blue to "It is what Microsoft chose to use"
  2. apply Red to "Microsoft"
  3. apply Green to "chose"

Then this is where I have my problem. I have decided I want all the text to just be Blue again so I:
  1. select all the text "It is what Microsoft chose to use" 
  2. try to apply Blue
  3. no change!

or also does nothing if I select only "Microsoft chose" and try to apply Blue style to remove both the red and green at the same time.

It will work if I select text that has only 1 style involved such as only the word chose or only the word Microsoft - but it doesn't work if more then one style is involved.

*apply using the Apply CSS Class dropdown list


Rumen
Telerik team
 answered on 19 May 2012
3 answers
94 views
I am trying to apply formatting in editor's selected multiline  text , I select some multiline text and select bold then click on the bullets icon from the tool bar  it shows only one bullet for all lines.
2) another issue I face is when select the font size for selected text it changes the font size but in the dropdown of font in toolbar some other value(first value)  displayed selected 
3) I am able to reproduce the issue on your demo site with IE browser.
Rumen
Telerik team
 answered on 19 May 2012
3 answers
99 views
I just upgraded the editor on our site from 4.x to 5.8.x. because the original one just began blanking out today all of a sudden.  I got the binding redirects into the web.config so the site's not erroring out now; however, when I go to the list form where I'm supposed to be using it, the editor is still blank.  This can be explained by the javascript errors I'm getting, which I'll list below:

Sys is undefined (
On the form page at this line: Sys.WebForms.PageRequestManager._initialize('ctl00$SPWebPartManager1$g_2a0d2d04_10f6_44c4_a6a8_cd5734c12b7f$ff2_1$ctl00$ctl00$TelerikScriptManager', document.getElementById('aspnetForm'));

 

)

Type is undefined (MOSSEditorTools.js Line 25, Character 1)

Sys is undefined (
On the form page at this line:
WebForm_AutoFocus('ctl00_SPWebPartManager1_g_2a0d2d04_10f6_44c4_a6a8_cd5734c12b7f_ff1_1_ctl00_ctl00_TextField');Sys.Application.initialize();
)

I think I've seen somewhat similar threads to this, but I couldn't quite make the connection.  Any relevant advice would be MUCH appreciated.

~David

 

Rumen
Telerik team
 answered on 19 May 2012
5 answers
275 views
The tutorial RadControlsAJAXCourseware.pdf calls for Courseware Projects Folder and image files, such as CopyHS.png, CutHS.png, PasteHS.png, EditInformationHS.png, PrintHS.png and PrintPreviewHS.png, etc.  I downloaded the .zip file that also contains the .pdf.  I cannot find any of these files.  The project is simply the same demos you see online.  Where is the Courseware Projects file located?
Ann
Top achievements
Rank 1
 answered on 18 May 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
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
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?