<system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="WCFClientsAspNetAjaxBehavior"> <enableWebScript/> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <services> <service name="WCFClients"> <endpoint address="" behaviorConfiguration="WCFClientsAspNetAjaxBehavior" binding="webHttpBinding" contract="WCFClients"/> </service> </services> <bindings> <webHttpBinding> <binding name="webBinding"> <security mode="Transport"> </security> </binding> </webHttpBinding><OperationContract()> _Public Function LoadClients(ByVal context As RadComboBoxContext) As RadComboBoxData 'The RadComboBoxData object contains all required information for load on demand: ' - the items ' - are there more items in case of paging ' - status message to be displayed (which is optional) Dim result As New RadComboBoxData() ' Dim connectionStr As String = Current.Session("ConnectionString").ToString Dim connectionStr As String = "MyConnectionString" Dim TransMgr As New TransmgrClientsDataContext(connectionStr) 'Get all items from the Customers table. This query will not be executed untill the ToArray method is called. Dim allCustomers = From c In TransMgr.Clients _ Order By c.LastNm _ Select customer = New RadComboBoxItemData With _ {.Text = c.LastNm & " " & c.FirstNm, .Value = Convert.ToString(c.Clnt_No)} 'In case the user typed something - filter the result set If Not [String].IsNullOrEmpty(context.Text) Then allCustomers = allCustomers.Where(Function(item) item.Text.StartsWith(context.Text)) End If 'Perform the paging ' - first skip the amount of items already populated ' - take the next 10 items Dim customers = allCustomers.Skip(context.NumberOfItems).Take(10) 'This will execute the database query and return the data as an array of RadComboBoxItemData objects result.Items = customers.ToArray() Dim endOffset As Integer = context.NumberOfItems + customers.Count() Dim totalCount As Integer = allCustomers.Count() 'Check if all items are populated (this is the last page) If endOffset = totalCount Then result.EndOfItems = True End If 'Initialize the status message result.Message = [String].Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, totalCount) Return resultEnd Function<script type ="text/javascript" > function validateCombo(source, args) { args.IsValid = false; var combo = $find(source.controltovalidate); var selectedItem = combo.get_selectedItem(); if (selectedItem) { var value = selectedItem.get_value(); if (value > 0) { args.IsValid = true; } } }</script><telerik:RadComboBox runat="server" ID="rcbClients" Height="100px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" AllowCustomText="false" EmptyMessage="Type lastname ..."> <WebServiceSettings Path="WCFClients.svc" Method="LoadClients" /></telerik:RadComboBox><asp:CustomValidator ID="cvClients" runat="server" ClientValidationFunction="validateCombo" SetFocusOnError="true" ErrorMessage="Please select a client from Dropdown" ControlToValidate="rcbClients">*</asp:CustomValidator>Hi,
Initially, My Application referenced with Telerik 2008 version and It accessed custom themes from the
App_themes folder. It was working fine. Now, I have updated the telerik version 2011. I am surprised to see that all my css
are not working properly. Application Design failed in all radcontrols like RadGrid,RadTreeview etc.,
I have read documentation in the below url,
http://www.telerik.com/help/aspnet-ajax/grid-appearance-creating-new-skins.html
For RadGrid Design, I did the following,
I have changed some class names in the custom.css file.
.RadGrid to .RadGrid_Office2007 and .MasterTable_2007 to .rgMasterTable.
After changing this, I have got some decent alignment of this grid. But, I am not able
to retain the original design. I have both the versions (Telerik) of this application,
not able to fix up the design problem exists in the latest version (2011).
Please see the screenshot attached herewith.
Please do the needful.
Thanks,
V. Raguraman.

I am working with version 2011.3.1305.35 of
the RadGrid. I have a wide grid with 19 columns. There is an additional field I
need to add that contains comments, which by its self can be 1000 characters
long. If I add that column to the end of the grid most of the data is cut off.
What I want to do now is put that comments column in a details table so the
user can click the expand icon and view the comments. I think I have it set up
correctly however, there is code in the ItemCreated event that tries to run
when the expand icon is clicked. What is the best way to determine if the item
being created is part of the details table?
Here is how I have the set grid setup:
<telerik:RadGrid ID="tGrid" runat="server" AllowPaging="True" AllowCustomPaging="true" PageSize="500" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" OnNeedDataSource="tGrid_NeedDataSource" AllowMultiRowSelection="true" OnItemCreated="tGrid_ItemCreated" OnDataBound="tGrid_DataBound"> <PagerStyle AlwaysVisible="True" Position="Top" /> <MasterTableView Width="100%" DataKeyNames="schedID" ClientDataKeyNames="schedID"> <Columns> .... </Columns> <DetailTables> <telerik:GridTableView AdditionalDataFieldNames="schedComments" DataKeyNames="SchedID"> <Columns> <telerik:GridBoundColumn DataField="schedComments" Display="true" UniqueName="schedComments" SortExpression="schedComments"> <HeaderStyle Width="100%"></HeaderStyle> <ItemStyle Wrap="true" /> </telerik:GridBoundColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView></telerik:RadGrid><script type="text/javascript"> function openRadWin() { radopen("Creation_Incident_Details.aspx","RadWindow1"); } </script><asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/img/dupliquer.jpg" CommandArgument='<%# Eval("idFamille") %>' ToolTip='<%# Eval("nomFamille") %>' OnClientClick="openRadWin(); return false;" /> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"><Windows> <telerik:RadWindow id="RadWindow1" runat="server" width="400px" height="400px" title="Telerik RadWindow"> </telerik:RadWindow></Windows></telerik:RadWindowManager>
setTimeout(function () { sender.fire('FontName', { value: 'Courier New' }); }, 300);
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?