Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
103 views
Hi,
I have a few problems with the RadEditor.
  1. I need to restrict the text lenght to 100cars for example. But if the user use the Paste button, he can paste text that has a greater size. How can I control that ?
  2. I need to restrict the number of cars per line. How can I do that ?
  3. I need to prevent any user to paste html code as I wan pure text content. How can I do that ?
Thanks a lot.

François
Rumen
Telerik team
 answered on 14 Jun 2010
1 answer
618 views

I have a large text input area where users will query information from a database. I want to restrict input to only alphanumeric keys to help prevent SQL injection. I was using a RadTextBox with the multiline attribute set and I had attached the jQuery script alphanumeric to the field, but it disabled the browser context menu. I decided to give the RadEditor a try since it allows for custom context menus and for a toolbar. The jQuery alphanumeric plugin is very nice and if there is any way to attach the script to the content area of the RadEditor, I would appreciate it. If there is another way to achieve the same effect, let me know. Thanks.

This is the basic syntax for applying the alphanumeric filter to a textbox:

<script type="text/javascript">  
    $('.textbox').alphanumeric({ allow: "_-* " });  
</script> 

Then you would have an element such as a RadTextBox or a plain TextBox and apply '.textbox' to the the CssClass attribute.

Rumen
Telerik team
 answered on 14 Jun 2010
4 answers
175 views
After much cat-herding, I have got my menu so that when you hover over a top-level item, the item changes colors and the sub-menu slides down.

I want to add a left- and right- border to the top-level item as well, but when I try, my left border is in the middle of my item.  I guess some space to the left of my item is getting the background color changed?    I can't figure out how to handle this.    Here is the bit of the .css that changes the color:

.RadMenu_ICR .rmLink:hover .rmText,  
.RadMenu_ICR .rmExpanded  
{  
    background-color#d5ecf1 !important;  
    fontnormal 12px/23px "Segoe UI"Arialsans-serif;  
    color#003366;  

 

to get borders, I am adding:

 

 

border-right:1px solid #336699;

 

 

border-left:1px solid #336699;

what else do I need to do?

 

Kamen Bundev
Telerik team
 answered on 14 Jun 2010
1 answer
610 views
I've been at this for hours.

I have a grid with:
 Edit Column
 Delete Column
 Bound Column

I want to export this as Excel.

I get the Bound Column in column C with columns A and B blank. I don't want columns A and B at all.

My last attempt was like this based on http://www.telerik.com/help/aspnet/grid/grdexporttipstricks.html

        protected void IndicationsExport(object sender, EventArgs e) 
        { 
            gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = false
            gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = false
            gridIndications.MasterTableView.ExportToExcel(); 
            gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = true
            gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = true
        } 
 

This too does not work.

Can you tell me how to remove columns from the resulting Excel file?

Remove rows?




Daniel
Telerik team
 answered on 14 Jun 2010
1 answer
55 views
I have built a page where I have a long panelbar that is set to overflow vertically.  On IE8, Safari, Chrome and Firefox, everything is great.  On IE6 and IE7, when I scroll the visible rpSlide div stays where it is, while the rest of the panelbar scrolls.  It is as if IE6/7 is rendering the div outside the flow of the panelbar.

Is this a known bug?  Any suggestions?

Thanks

Shawn McCollum
Kamen Bundev
Telerik team
 answered on 14 Jun 2010
1 answer
117 views
Team,

Am using RadUpload control for one of the purpose in my application.

My aim is to get all the file names added to the control in the sequence order.

Screen shot is attached.

For ex. My output should be C:\Test1.doc, C:\Test2.doc, C:\Test3.doc, C:\Test4.doc, C:\Test5.doc

Pls. help me out.

Thanks.
Princy
Top achievements
Rank 2
 answered on 14 Jun 2010
1 answer
99 views
Hello,

I know that ViewState can be compressed and it is a bad option for complex controls like RadGrid but please consider the markup below (having in mind that the EnableViewState option of the containing page/control is set to "false"). If I load the page initially and click the button everything's fine. But if I click it after even the slightest column resize a senseless Javascript exception gets fired with no indication what the problem may be.
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
    <telerik:RadGrid ID="RadGrid1" runat="server"
        <MasterTableView /> 
        <ClientSettings> 
            <Resizing AllowColumnResize="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
</telerik:RadAjaxPanel> 
<asp:LinkButton ID="LinkButton1" runat="server" Text="Click Me!" OnClientClick="return Update();" /> 
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
    <script type="text/jscript"
        function Update() { $find('<%= RadAjaxPanel1.ClientID %>').ajaxRequest('', ''); } 
    </script> 
</telerik:RadScriptBlock> 
 

Is this a correct behavior of the control? Is there some kind of workaround for this crash?

Drilling down to the source of the problem took quite some time... so I guess a more meaningful exception should be thrown....

Best regards,
V.
Maria Ilieva
Telerik team
 answered on 14 Jun 2010
1 answer
97 views
The FileExplorer control does not display the specified path hierarchy.  The file explorer control is currently housed inside an EditItemTemplate for a GridTemplateColumn within a MasterTableView of the RadGrid.  I am able to find the file explorer control and change its background color, but for some reason the path is not displayed.  Any ideas?  The page design and C# code have been included below.

Page Design:
<telerik:RadGrid ID="exampleRadGrid" runat="server" 
onitemdatabound="reportDealershipRadGrid_ItemDataBound"
   <MasterTableView> 
      <Columns> 
         <telerik:GridTemplateColumn> 
            <EditItemTemplate> 
               <telerik:RadFileExplorer ID="fileNameRadFileExplorer" runat="server" /> 
            </EditItemTemplate> 
         </telerik:GridTemplateColumn> 
      </Columns> 
   </MasterTableView> 
</telerik:RadGrid> 
 

C#:
protected void exampleRadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
        if (e.Item.IsInEditMode) 
        { 
            string path = Page.ResolveUrl("~/Files/"); 
            RadFileExplorer fileNameRadFileExplorer = (RadFileExplorer)e.Item.FindControl("fileNameRadFileExplorer"); 
            fileNameRadFileExplorer.Configuration.ViewPaths = new string[] { path }; 
            fileNameRadFileExplorer.BackColor = System.Drawing.Color.Green;
            fileNameRadFileExplorer.InitialPath = path;
        }  



Fiko
Telerik team
 answered on 14 Jun 2010
6 answers
134 views
I have an issue where I have a type ahead radcombobox inside a grid, and after I open it and scroll down on the page, the  slide part of the combo box doesn't stay in position and floats down when I scroll.

I've tried to put some style on the .rcbSlide class, but to no avail.

Any Suggestions?

Nate
Simon
Telerik team
 answered on 14 Jun 2010
1 answer
70 views
We have an issue where, in IE7, after an image is uploaded, it does not appear in the folder list. The actual file is on the server but the file list in the dialog is not refreshing. The users have to exit out of the dialog, refresh and then select the image. (happens with all files actually inc docs)

This is a DNN portal (using both the Telerik and DNN provider) and version 2009.3.1104

Thanks
Ian
Rumen
Telerik team
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?