Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hi there,

I have a problem regarding the select box i'm using in my application. I want to select multiple items in the box. However I want to customize it further by highlighting the selected items in a color of my choice. Please help me out.
Thanks in advance
SAVYO
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2012
4 answers
143 views
When UseStaticHeaders=true and AllowScroll=true  and there is not enough data to cause the scroll bar to appear, the Header does not render properly where the scroll bar will be.  part of the header is not as tall as the rest.

This can be roughly corrected by setting the column widths, but when the grid is resized (due to moving splitter bars), the inconsistancy will show.
See attached

Using Skin="Office2007", but this appears to happen with all skins.

How can this be corrected?
Pavlina
Telerik team
 answered on 30 Apr 2012
1 answer
82 views
I am having issues with a collapsible panel I'm using which contains the RadDatePicker. It works fine in IE7 forward but in compatibility mode or IE6 the date input and calendar button do not reside inside of the collapsible panel. I have tried changing the ZIndex property on the RadDatePicker with the same results. I can add a z-index style setting to the date input or calendar element and it will place the particular element behind the panel but not inside. Any ideas on how to fix this?
Maria Ilieva
Telerik team
 answered on 30 Apr 2012
1 answer
86 views
Hi ,

I hope my question is simple one. I have searched in net, but could not end up with the good answer.

Can we align the node image.  ( i have set the image by  Node.ImageUrl = "test.jpg" ), right now its showing before the node text
like  image - Sample Text ,  i just wanna swap the order, i.e first the node text and then the node image. 

is it possible, if soo, could you guys pls help me to fix this?
Plamen
Telerik team
 answered on 30 Apr 2012
6 answers
1.4K+ views
Hi

I have a requirement to restrict a user from entering special character in the Radtextbox. I have tried both RegularExpressionValidator and CustomValidator with ClientValidationFunction, but both are capturing after user completes the entry. Just curious to know if we have any control just like AjaxTextbox extender so user will not be able to enter invalid characters instead of validating after the data entry.

Thanks
Vasil
Telerik team
 answered on 30 Apr 2012
2 answers
93 views
Hi,
I am using an RadAsyncUpload inside my grid, to upload a single file. When in edit mode, the existing file is supposed to be overwritten. But this is not the case. I have tried with several different ways to create the file (my example here is the last one) - I have also tried using File.WriteAllBytes. This is my code:
In create mode, the file is created perfectly...
Control asyncUpload1 = editableItem.EditManager.GetColumnEditor("FileNameWithExtension").ContainerControl.FindControl("AsyncUpload1");
if (asyncUpload1 != null && asyncUpload1 is RadAsyncUpload)
{
    if (((RadAsyncUpload)asyncUpload1).UploadedFiles.Count > 0)
    {
        UploadedFile uploadedFile = ((RadAsyncUpload)asyncUpload1).UploadedFiles[0];
        if (letterTemplate.FileNameWithExtension != uploadedFile.FileName && letterTemplate.FileNameWithExtension != null)
        {
            File.Delete(GetTemplatePath(letterTemplate.MunicipalityCode, letterTemplate.FileNameWithExtension));
        }
 
        letterTemplate.FileNameWithExtension = uploadedFile.FileName;
 
        byte[] buffer = new byte[uploadedFile.InputStream.Length + 1];
        uploadedFile.InputStream.Read(buffer, 0, buffer.Length);
 
        CreateDirectoryIfNotExistent(Server.MapPath(string.Format(TEMPLATE_PATH, letterTemplate.MunicipalityCode)));
        using (FileStream stream = new FileStream(GetTemplatePath(letterTemplate.MunicipalityCode, letterTemplate.FileNameWithExtension), FileMode.Create))
        {
            stream.Write(buffer, 0, buffer.Length);
        }
    }
    else if (e.CommandName == CMD_CREATE)
    {
        Label error = (Label)editableItem.EditManager.GetColumnEditor("FileNameWithExtension").ContainerControl.FindControl("lblError");
        error.Text = "Angiv en Word skabelon-fil.";
        return;
    }
}
Maria Ilieva
Telerik team
 answered on 30 Apr 2012
9 answers
137 views
Hi,

Is there a way to determine if a vertical scroll bar shown in the grid?

Thanks.
Covertix
Top achievements
Rank 1
 answered on 30 Apr 2012
1 answer
107 views
I can't find how to display the button add new record !
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2012
2 answers
147 views
I have using telerik spell checking. In the IE its working fine but in the firefox showing  error - "Spell Check Handler Server Error:500".

The following step I have try.
I have created RadSpell folder in App_Data

I have included in Web.Config file
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
</httpHandlers>

and

 

 

 

 

<system.webServer>
  
<modules runAllManagedModulesForAllRequests="true" />
  
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" preCondition="integratedMode" />
<add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" preCondition="integratedMode" />
<add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" preCondition="integratedMode" />
<add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
</handlers>
  
</system.webServer>


In the Bin folder I have included the following DLL
Telerik.Web.Design.dll
Telerik.Web.UI.dll


Error Showing in alertbox:

Spell Check Handler Server Error:500

<html>
  
    <head>
  
        <title>A potentially dangerous Request.Form value was detected from the client (CommandArgument="...roke. sfd <br>").</title>
  
        <style>
  
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
  
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
  
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
  
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
  
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
  
         pre {font-family:"Lucida Console";font-size: .9em}
  
         .marker {font-weight: bold; color: black;text-decoration: none;}
  
         .version {color: gray;}
  
         .error {margin-bottom: 10px;}
  
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
  
        </style>
  
    </head>
  
   
  
    <body bgcolor="white">
  
   
  
            <span><H1>Server Error in '/EmailMarketing' Application.<hr width=100% size=1 color=silver></H1>
  
   
  
            <h2> <i>A potentially dangerous Request.Form value was detected from the client (CommandArgument="...roke. sfd <br>").</i> </h2></span>
  
   
  
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
  
   
  
            <b> Description: </b>Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted.  This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack.  To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section.  However, it is strongly recommended that your application explicitly check all inputs in this case.  For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
  
            <br><br>
  
   
  
            <b> Exception Details: </b>System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (CommandArgument="...roke. sfd <br>").<br><br>
  
   
  
            <b>Source Error:</b> <br><br>
  
   
  
            <table width=100% bgcolor="#ffffcc">
  
               <tr>
  
                  <td>
  
                      <code>
  
   
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
  
   
  
                  </td>
  
               </tr>
  
            </table>
  
   
  
            <br>
  
   
  
            <b>Stack Trace:</b> <br><br>
  
   
  
            <table width=100% bgcolor="#ffffcc">
  
               <tr>
  
                  <td>
  
                      <code><pre>
  
   
  
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (CommandArgument="...roke. sfd <br>").]
  
   System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +8730676
  
   System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +122
  
   System.Web.HttpRequest.get_Form() +114
  
   Telerik.Web.UI.SpellCheckHandler.ProcessRequest(HttpContext context) +187
  
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
  
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
  
</pre></code>
  
   
  
                  </td>
  
               </tr>
  
            </table>
  
   
  
            <br>
  
   
  
            <hr width=100% size=1 color=silver>
  
   
  
            <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
  
   
  
            </font>
  
   
  
    </body>
  
</html>
  
<!-- 
  
[HttpRequestValidationException]: A potentially dangerous Request.Form value was detected from the client (CommandArgument="...roke. sfd <br>").
  
   at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
  
   at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
  
   at System.Web.HttpRequest.get_Form()
  
   at Telerik.Web.UI.SpellCheckHandler.ProcessRequest(HttpContext context)
  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  
--><!-- 
  
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Karthik
Top achievements
Rank 1
 answered on 30 Apr 2012
2 answers
116 views
I have a RadGrid control on a page where users can reorder projects by dragging and dropping. In a stand alone version it works fine, but once placed inside the ASP content frame in the existing site, the RowDrop event fires twice. If I step through and stop the second pass through the method, the rows reorder nicely. Is there a way to cancel the event from codebehind? Do you have any suggestions about what to look for?

BTW, this control is inside an ASP content tag within a master page. The majority of the code is directly from the samples in the 2012 Q1 release samples.

Thanks in advance
Vasil
Telerik team
 answered on 30 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?