<
telerik:RadGrid ID="Grid_tblboqmaterial" runat="server" EnableAJAX="True"
AllowAutomaticInserts="True" DataSourceID="SqlDataSource2" GridLines="None" >
The bit in bold comes up with the error "Validation(ASP.NET): Attribute 'EnableAJAX' is not a valid attribute of element 'RadGrid' ".
I have added an AJAX manager and configured the grid to depend on itself and it would appear that AJAX is being used. In my case all I'm trying to do is multiply 2 columns of the active row in the grid and place the result in a 3rd column and with AJAX it is just as slow as doing a full postback. Clearly I am doing something wrong.
I tried to do the simple calculation in javascript but I cannot work out the syntax to get the values of the columns of the row I am on because both of the columns required are not the column being updated.
Does anybody know what might be the mistake here or can offer a solution that should be quick for this simple calculation?
Thanks in advance
Ben
| <telerik:RadComboBox Skin="MySkin" EnableEmbeddedSkins="false" AllowCustomText="true" MaxHeight="300" runat="server" /> |
| <telerik:RadComboBox ID="RadComboBoxProducts" DataSourceID="odsProducts" Filter="Contains" DataTextField="ProductName" DataValueField="ProductID" |
| Width="205" DropDownWidth="300" MaxHeight="100" runat="server"> |
| </telerik:RadComboBox> |

<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!
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>
<script runat="server">
protected override void InitializeCulture()
{
System.Globalization.
CultureInfo cultureInfo =
(System.Globalization.
CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
cultureInfo.DateTimeFormat.ShortDatePattern =
"d MMM yy";
try
{
System.Threading.
Thread.CurrentThread.CurrentCulture = cultureInfo;
}
catch
{
}
base.InitializeCulture();
}
</script>
</
head>
<
body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="sscriptmgr" runat="server">
</telerik:RadScriptManager>
<div>
<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
</telerik:RadDateTimePicker>
</div>
</form>
</
body>
</
html>
Error happened when a date or time is selected from the calendar.
I need to initialize the CultureInfo because I need to control the displayed DateTime format.
Your help is much apprepciated.
Edwin

| <telerik:RadWindowManager ID="RadWindowManager" runat="server"> |
| <Windows> |
| <telerik:RadWindow Skin="Gray" Behaviors="Close, Maximize" RestrictionZoneID="RestrictionZone" |
| ID="RadWndOH" VisibleOnPageLoad="false" Title="Order History" runat="server" |
| Width="300px" DestroyOnClose="true" OnClientActivate="OnClientActivate"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function OnClientActivate(sender) { |
| //get a reference to the RadWindow object |
| oWnd = sender; |
| if (oWnd != null) { |
| oWnd.maximize(); |
| } |
| } |
| function ShowOrderHistoryPopup(navigateUrl) { |
| var wnd = window.radopen(navigateUrl, 'Order History'); |
| wnd.maximize(); |
| return false; |
| } |
| </script> |
| </telerik:RadCodeBlock> |