I have a contact us form that has been built and uses a RadInputManager to validate the input client side. The JavaScript that is created by the Input Manager seems to be invalid JavaScript as the variable name it uses are just numbers, e.g. var 0 = ...., and var 1 = ...
I have put a test page together which just includes two textboxes and a submit button to demostrate this. To view the page see http://learnbigteachbig.rocktime.net/test.aspx. The HTML for the page is also below.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
<!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"
>
<
div
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadInputManager
ID
=
"RadInputManager1"
runat
=
"server"
EnableEmbeddedSkins
=
"True"
EnableEmbeddedBaseStylesheet
=
"False"
>
<
telerik:TextBoxSetting
ClearValueOnError
=
"False"
EmptyMessage
=
"Full name"
ErrorMessage
=
"Your full name is required"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"fdFullName"
/>
</
TargetControls
>
<
Validation
IsRequired
=
"True"
ValidationGroup
=
"ContactUs"
/>
</
telerik:TextBoxSetting
>
<
telerik:RegExpTextBoxSetting
ClearValueOnError
=
"False"
EmptyMessage
=
"Please enter your email address"
ErrorMessage
=
"A valid email address is required"
ValidationExpression
=
"[^@]+@[^\.]+\..+"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"fdEmailAddress"
/>
</
TargetControls
>
<
Validation
IsRequired
=
"True"
ValidationGroup
=
"ContactUs"
/>
</
telerik:RegExpTextBoxSetting
>
</
telerik:RadInputManager
>
<
asp:TextBox
ID
=
"fdFullName"
runat
=
"server"
ValidationGroup
=
"ContactUs"
></
asp:TextBox
>
<
br
/><
br
/>
<
asp:TextBox
ID
=
"fdEmailAddress"
runat
=
"server"
ValidationGroup
=
"ContactUs"
></
asp:TextBox
>
<
asp:Button
ID
=
"btnSubmit"
runat
=
"server"
Text
=
"Submit"
ValidationGroup
=
"ContactUs"
/>
</
div
>
</
form
>
</
body
>
</
html
>
The Javascript error that I get is
Error: missing variable name
Source File: http://learnbigteachbig.rocktime.net/test.aspx
Line: 79, Column: 4
Source Code:
var 0 = document.all ? document.all["0"] : document.getElementById("0");
I believe this is because variable names in JavaScript must begin with a letter, $ or _ to be valid. Is there something I need to add to the Input Manager to fix the problem?
SEC7113: CSS was ignored due to mime type mismatch
Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bMySkin%3aen-US%3a759be785-708d-4ffb-9221-0edb1548ff41%3a7d6cac8e%3bTelerik.Web.UI%2c+Version%3d2012.1.215.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab29b07e8-2c1e-44e5-9e1b-59bb6459fb01%3afe53831e
<telerik:RadGrid ID="RadGrid1" runat="server" AllowCustomPaging="True"
AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
GridLines="None" Skin="WebBlue">
Dim filename As String = "whatever.xls"
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.ExportSettings.FileName = filename
RadGrid1.ExportSettings.ExportOnlyData = True
RadGrid1.ExportSettings.IgnorePaging = True
RadGrid1.ExportSettings.OpenInNewWindow = True
No matter what, the resulting excel only contains the first 25 rows. I have also tried forcing the above code by adding the following
RadGrid1.MasterTableView.AllowPaging = false
RadGrid1.Rebind()
'... the above code here and then..
RadGrid1.MasterTableView.AllowPaging = true
RadGrid1.Rebind()
No approach seems to work. There is no AjaxManager involved, and the grid itself is not ajaxified. Anyone out there have any ideas? The only complication in all of this is that the grid resides in a multipage / tabbed interface, but the export to Excel button resides outside of the multipiage. Also, I am using MasterPages - pretty simple there - no AjaxManager there either. Any thoughts appreciated.
Can we accomplish it with RadGrid.
<telerik:RadGrid ID="RapportGrid" runat="server" CellSpacing="0" GridLines="Horizontal" AllowPaging="True" Height="447px" Culture="nl-NL"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> </telerik:RadGrid>