Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
114 views
Hello,
I use the Microsoft CRM Dynamics where I implement custom page using the splitter.
I have activate the CRM outlook Offline for my projet where I have the same page like in my CRM Online.
Whene I'm in offline outlook use Cassini for use the crm Offline and my custom page.
When the page custom load I have a Javascript error : Microsoft JScript runtime error: 'Telerik' is undefined
This is the error at the first line : Telerik.Web.UI.RadSplitter._preInitialize("UC_ElementMaster1_SplitterFrame")
<script type="text/javascript">
<!--
Telerik.Web.UI.RadSplitter._preInitialize("UC_ElementMaster1_SplitterFrame");Telerik.Web.UI.RadPane._preInitialize("UC_ElementMaster1_LeftPane", "UC_ElementMaster1_SplitterFrame", "", "UC_ElementMaster1_VerticalSplitBar",  0, 0, "False");
WebForm_InitCallback();var UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data = new Object();
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.images = UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray;
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.collapseToolTip = "Collapse {0}";
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.expandToolTip = "Expand {0}";
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.expandState = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ExpandState'];
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.selectedNodeID = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_SelectedNode'];
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.hoverClass = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_3';
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.hoverHyperLinkClass = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_2';
for (var i=0;i<6;i++) {
var preLoad = new Image();
if (UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray[i].length > 0)
preLoad.src = UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray[i];
}
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.lastIndex = 0;
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.populateLog = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_PopulateLog'];
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.treeViewID = 'UC_ElementMaster1:UC_TreeviewElement1:treeviewElement';
UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.name = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data';
Telerik.Web.UI.RadSplitBar._preInitialize("UC_ElementMaster1_VerticalSplitBar", "UC_ElementMaster1_SplitterFrame", "UC_ElementMaster1_LeftPane", "UC_ElementMaster1_ContentPane", 1, 0);Telerik.Web.UI.RadPane._preInitialize("UC_ElementMaster1_ContentPane", "UC_ElementMaster1_SplitterFrame", "UC_ElementMaster1_VerticalSplitBar", "",  2, 1, "True");
theForm.oldSubmit = theForm.submit;
theForm.submit = WebForm_SaveScrollPositionSubmit;

Do you have an idea? a solution?
Thank you
Regards

This is my Web.config page.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a6u861955e089" >
      <section name="Treeview.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a6u861955e089" requirePermission="false" />
 </sectionGroup>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <connectionStrings>
    <add name="TEST1" connectionString="Provider=SQLOLEDB;Data Source=Sev1\CRM;Initial Catalog=MSCRM_MSDE;Integrated Security=SSPI" providerName="SQLOLEDB" />
    <add name="TEST2" connectionString="Provider=SQLOLEDB;Data Source=Sev1\CRM;Initial Catalog=MSCRM_MSDE;Integrated Security=SSPI" providerName="SQLOLEDB"/>
  </connectionStrings>
  <system.web>
    <httpRuntime executionTimeout="300" maxRequestLength="8192"/>
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpModules>
    <httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"  validate="false" />
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
      <add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />           
      <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />           
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>           
      <add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
      </httpHandlers>
    <compilation defaultLanguage="C#" debug="false">
      <assemblies>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="Microsoft.Crm.SdkTypeProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="Microsoft.Crm.Platform.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </assemblies>
    </compilation>
    <authentication mode="Windows" />
    <identity impersonate="true" />
    <xhtmlConformance mode="Legacy" />
    <pages buffer="true" enableSessionState="true" enableViewState="true" validateRequest="false">
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </controls>
    </pages>
    <sessionState mode="InProc" cookieless="false" timeout="20"/>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="classicMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
                 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
                 type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*"    type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.3.1115.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />  
      </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <location path="MSCRMServices">
    <system.web>
      <httpRuntime maxRequestLength="8192"/>
      <webServices>
        <!-- configuring the reflector + format extension for custom WSDL generation -->
        <soapExtensionReflectorTypes>
          <add type="Microsoft.Crm.Sdk.CrmServiceSoapExtensionReflector, Microsoft.Crm.WebServices" />
        </soapExtensionReflectorTypes>
        <conformanceWarnings>
          <remove name='BasicProfile1_1'/>
        </conformanceWarnings>
      </webServices>
    </system.web>
  </location>
<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*"/>
        </authorization>
    </system.web>
</location>
  <appSettings>
    <!-- Trace management -->
    <add key="TracePath" value="C:\\log\\"/>
    <add key="TraceEnabled" value="true"/>
    <add key ="CrmServerName" value ="localhost:2525"/>
    <!--If Crm Web site is not installed on port 80, set in "CrmServerName" key with value ="SERVER_NAME:1234"-->
    <add key ="TEST1TreeViewWebService" value ="http://localhost:3341/Service1.asmx"/>
    <add key ="CrmOrganization" value ="ElementIE"/>
    <add key="HelpCatalogName" value="Microsoft CRM Help"/>
    <add key="DevErrors" value="On"/>
    <add key="ClientType" value="Outlook"/>
    <add key="ReportViewerMessages" value="Microsoft.Crm.Web.Reporting.CrmReportViewerMessages, Microsoft.Crm.Application.Outlook.Pages, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
   </appSettings>
  <applicationSettings>
    <!--
     Settings used for the Element Offline
    -->
    <Treeview.Properties.Settings>
      <setting name="Treeview_wr_crmservice_CrmService" serializeAs="String">
        <value>http://localhost:2525/MSCrmServices/2007/CrmService.asmx</value>
      </setting>
    </Treeview.Properties.Settings>
  </applicationSettings>
</configuration>

 This is my custom page. There is not any c# code linked to the splitter.
ASCX :
<%@ Assembly Name="CRMDataAccess" %>
<%@ Assembly Name="GenericElement" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ElementMaster.ascx.cs"
    Inherits=".Generic.Element.UserControls.UC_ElementMaster" EnableViewState="true" %>
<%@ Register Src="UC_TreeviewElement.ascx" TagName="UC_TreeviewElement" TagPrefix="uc1" %>
<%@ Register Src="UC_TabContent.ascx" TagName="UC_TabContent" TagPrefix="uc2" %>
<%@ Register Src="UC_SearchResult.ascx" TagName="UC_SearchResult" TagPrefix="uc3" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<Div id="GeneralTable" style="height: 100%; width: 100%; overflow: hidden; padding: 0px;
    margin: 0px">
    <telerik:RadSplitter ID="SplitterFrame" runat="server" Height="100%"
        Width="100%" Skin="Windows7" >
        <telerik:RadPane ID="LeftPane" runat="server" overflow="auto">
            <uc1:UC_TreeviewElement ID="UC_TreeviewElement1" runat="server" />
        </telerik:RadPane>
        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" />
        <telerik:RadPane ID="ContentPane" runat="server" Scrolling="Both">
            <uc2:UC_TabContent ID="UC_TabContent1" runat="server"  />
            <uc3:UC_SearchResult ID="UC_SearchResult1" runat="server" />
        </telerik:RadPane>
    </telerik:RadSplitter>
</Div>
 
ASPX :
 
<%@ Assembly Name="CRMDataAccess" %>
<%@ Assembly Name="GenericElement" %>
 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Publishing.aspx.cs" Inherits="Generic.Element.Publishing" EnableViewState="true" MaintainScrollPositionOnPostback="true" %>
 
<%@ Import Namespace="Generic.Element.UserControls" %>
<%@ Import Namespace="Generic.Element" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="UserControls/UC_ElementMaster.ascx" TagName="UC_ElementMaster"
    TagPrefix="uc1" %>
<!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" style="overflow:hidden">
<head id="Head1" runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <base target="_self"></base>
    <title><%=GetElementName() %></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <div id="ParentDivElement" style="height: 100%;">
            <uc1:UC_ElementMaster ID="UC_ElementMaster1" runat="server" />
        </div>
        <asp:HiddenField ID="txtElementType" runat="server" />
    </form>
</body>
</html>

Dobromir
Telerik team
 answered on 13 Feb 2012
4 answers
237 views
Currently i am working with the RadAsyncUpload Telerik control.  Everything is working as i hoped it would: Validating the number of files clientside, being able to upload multiple files, etc.  So everything works fine.  However, one client has come to me and expressed his dislike for the UI of the button.  Attached should be a screenshot showing an asp button being highlighted and the "Upload Pictures" being the RadAsyncUpload button.  I can't seem to find a way to customize the RadAsyncUpload button to reflect the similar representation that the asp buttons provide (hovering color, buttonsize, onclick color, etc.).  So my question is, is there anyway to add an asp button which would trigger RadAsyncUpload's upload process?

Thanks again for the help,

-  Pat
Dimitar Terziev
Telerik team
 answered on 13 Feb 2012
1 answer
60 views
Hi Team,

The Rad grid used in our application has different controls in each Item template.
In IE6, IE7 & IE9, the row height is automatically getting resized based on the content inside the cells in each row.
But in IE8, it is not getting resized automatically.
I attached the screen shots of how the grid loaded in IE7 and IE8.
Please look into the screen shot and provide us solution to resolve this issue.

We are using Telerik 2009.2.701.35 Version.

Thanks,
Meenakshi.
Vasil
Telerik team
 answered on 13 Feb 2012
1 answer
174 views
Hi,
I have  radgrid on my page. My Requirement is to enter data to few columns and in one of the column, I will have to upload a resume(This file can be in Doc or Docx format). I need to save this to DB and then again rebind the grid. After rebinding I will have to be able to download this resume.
Request for a sample code for achieving this.
Thanks and Regards,
Deepika Karanth
Shinu
Top achievements
Rank 2
 answered on 13 Feb 2012
1 answer
59 views
I've found what I think is a bug with the RadMenu control in the newest version of the RadControls (2011.3.1305). I had created a static RadMenu control (i.e. items defined at design time, using the smart tags) before the latest upgrade, and the generated code looked like this:

<telerik:RadMenu ID="RadMenu2" runat="server">
    <Items>
        <telerik:RadMenuItem runat="server" ImageUrl="..." Text="..." >
            <Items>
                <telerik:RadMenuItem runat="server" ImageUrl="..." Text="..." NavigateUrl="...">
                </telerik:RadMenuItem>
                [... several more items ...]
            </Items>
        </telerik:RadMenuItem>
    </Items>
    <WebServiceSettings>
        <ODataSettings InitialContainerName="">
        </ODataSettings>
    </WebServiceSettings>
</telerik:RadMenu>

This worked fine before the upgrade, but after we upgraded to the newest version, I started getting the following error in the Chrome developer console on the page that contained the control:

Uncaught TypeError: Cannot read property 'Name' of undefined
b.ODataBinderTree._buildNodeScriptResource.axd:27
b.ODataBinderTree._buildTreeScriptResource.axd:23
b.ODataBinderTreeScriptResource.axd:17
b.NavigationControlODataSettingsScriptResource.axd:7
a.RadMenu.set_webServiceSettingsScriptResource.axd:425
Sys$Component$_setPropertiesScriptResource.axd:3758
Sys$Component$createScriptResource.axd:3816
(anonymous function)http://[websitename]/:856
(anonymous function)ScriptResource.axd:3484
Sys$_Application$_raiseInitScriptResource.axd:5078
Sys$_Application$initializeScriptResource.axd:4928
initScriptResource.axd:5032
Sys$_Application$_domReady.document.addEventListener.check

The RadMenu still displayed, but the dropdown wouldn't work, and other RadControls that appeared later on the page didn't work, probably because the browser simply stopped loading scripts at that point. The fix was to comment out the <WebServiceSettings> tag, which made the error disappear and the functionality return to normal. Since it was a static menu anyway, the functioning of the menu wasn't affected. I figured I'd post this here to help others who might have the same problem, and it might also be something the developers would want to patch in a future version of the controls.
Genady Sergeev
Telerik team
 answered on 13 Feb 2012
1 answer
94 views
I'm working with the RadToolBarDropDown control, and the goal is to populate the text of the RadToolBarDropDown dynamically in C#;

The RadToolBarDropDown is encapsulated in a RadToolBar;

Is it best to place the below code in a "if (!IsPostBack)" section : 

RadToolBarDropDown rbViewReport = (RadToolBarDropDown)RadToolBar4.FindItemByText("Please Select");
rbViewReport.Text = RetrievedValueConfirm;
 
Princy
Top achievements
Rank 2
 answered on 13 Feb 2012
3 answers
185 views

I am using Windows XP, VS 2008 VB,  and Telerik controls 2009.2.826.35.  I have a radtabstrip with three tabs and a radmultipage with three pageviews.  There are fieldvalidators for the first two pages/tabs and a validationsummary for each.  The validation is triggered if the user clicks on the button at the bottom of the page but wont’t if they just click on the tab at the top.  If a user clicks on the second tab without all the required fields filled in on the first pageview, I want the validationgroup for that page to be triggered.  If the user gets as far as the second pageview and clicks on the third tab, without all required fields filled in, then I want the validationgroup for the second page to be triggered. 

 

I have set the “CausesValidation” property to true but it appears to have no effect.  I have also tried to use the javascript routine, UpdateValidationGroup (two slightly different variations), that I found in your forums but it gives me an error:  “Microsoft JScript runtime error: 'undefined' is null or not an object”.  It occurs on the line:  var selectedTab = tabstrip.get_selectedTab();.
Below is  my markup without the pageviews and the controls.

Thanks for any assistance,
Alex

<%@ Page Title="" Language="VB" MasterPageFile="~/Pages/MasterPages/MasterPage.master"
    AutoEventWireup="false" CodeBehind="ExamRegistration.aspx.vb" Inherits="SPPOnlineExamRegistrationWebApp.Pages_ExamRegistration" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--- <link href="../../Library/CSS/StyleSheet.css" rel="stylesheet" type="text/css" />   --->
    <form id="main" runat="server">
    <br />
    <p style="text-align: center">
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Medium" Text="Pesticide Exam Registration"></asp:Label>
    </p>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
<script type="text/javascript"
 function UpdateValidationGroup() 
 
  var tabStrip = $find("<%= RadTabStrip1.ClientID %>");  
  var selectedTab = tabStrip.get_selectedTab();  
  if(selectedTab != null) 
   tabStrip.ValidationGroup = selectedTab.get_value(); 
 
</script
  
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="0" BorderStyle="None" Font-Size="Medium" Skin="WebBlue" Height="19px" CausesValidation="true"
        Width="441px" AutoPostBack="True" OnClientTabSelected="UpdateValidationGroup" ValidationGroup="ExamRegistration"  >
        <Tabs>
            <telerik:RadTab runat="server" PageViewID="rpvExamRegistration" Text="Exam Registration"
                SelectedIndex="0" Selected="True" onclick="UpdateValidationGroup()" Value="ExamRegistration" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" PageViewID="rpvContactInformation" Text="Contact Information"
                SelectedIndex="1" onclick="UpdateValidationGroup()" Value="ContactInfo" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" PageViewID="rpvConfirmation" Text="Confirmation" SelectedIndex="2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>

Manivannan
Top achievements
Rank 1
 answered on 13 Feb 2012
1 answer
78 views
Hi,

I'm trying to implement sorting on a custom field, could someone provide me with an example

Code as below, would want to implement sorting on

 

<telerik:RadGrid ID="rgContactsResult" runat="server" Width="99%" AllowPaging="True" AllowSorting="true"

 

GridLines="None" PageSize="10" AllowFilteringByColumn="True" AutoGenerateColumns="false">

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Wrap="false"></PagerStyle>

<GroupingSettings CaseSensitive="false" />

 <ClientSettings EnablePostBackOnRowClick="true">

 <Selecting AllowRowSelect="true" />

 <KeyboardNavigationSettings AllowSubmitOnEnter="true" />

 </ClientSettings>

 <MasterTableView CommandItemDisplay="None">

 <Columns>

 <telerik:GridBoundColumn HeaderText="Our Ref" UniqueName="contactID" DataField="contactID" AllowFiltering="false" >

  <telerik:GridTemplateColumn HeaderText="ContactJob" UniqueName="ContactJob" AllowFiltering="false">
<ItemTemplate>

 <%# ContactJob(DataBinder.Eval(Container.DataItem, "ContactID"))%>

 </ItemTemplate>

 </telerik:GridTemplateColumn>

 </Columns>

 </MasterTableView>

</telerik:RadGrid>

Thanks

 

Princy
Top achievements
Rank 2
 answered on 13 Feb 2012
4 answers
109 views
For a long time now I've used a dependable Javascript function to preselect the text in a textbox.  However I discovered today that when a textbox resides in an AJAXifield RadWindow, a more complex approach has to be used.  Here's the code showing both approaches:

  function SetFocusAndSelectText(tbID) {<br>    var textBox = $get(tbID);<br><br>    // Standard approach<br>    textBox.focus();<br>    textBox.select();<br><br><br>    // Approach when the TextBox resides in an AJAXified RadWindow<br>    //    function f() {<br>    //      debugger <br>    //      if (textBox != null) {<br>    //        textBox.focus();<br>    //        textBox.select();<br>    //      }<br><br>    //      Sys.Application.remove_load(f);<br>    //    }<br><br>    //    Sys.Application.add_load(f);<br>  }

I'm wondering if there's a way to test for whether the textbox sits within a RadWindow?  If so, then I could just call one function and let it decide which approach to use.

Sincerely,

Robert W.
Robert
Top achievements
Rank 1
 answered on 12 Feb 2012
1 answer
138 views
Hi 

I'm working on "Add to Calendar" feature from my Sharepoint webpart (created using VS2010). If I want to include  multiple breakdown appointments  (For Ex, one for today between 9.00 a.m - 11 a.m & one for tomorrow between 3.00 p.m - 5.00 p.m), How do I do that?
The following code works for a single appointment. Its creating an additional calendar  if I have more that one appointment. 
Instead I should be able to update my existing calendar with the multiple appointments.

Could you please assist me how to do this?

Here is part of my code 

                //........
                EventSessions = from eventobj1
in context.EventSessions
   where eventobj1.Event.Id == eventid
   select eventobj1;
      foreach (EventSessionsItem session in EventSessions)
      {
         Appointment _appointment = new Appointment();
 
         editor.Content = session.Event.EventDetails;
         _appointment.Subject = session.Title;
         _appointment.Description = Server.HtmlDecode(editor.Text);
         _appointment.Start = session.DateOfSession.Value; 
         _appointment.End = dtStart.AddHours(session.SessionDuration.Value); 
                     sbICSFile.Append(RadScheduler.ExportToICalendar(_appointment));
      }
      WriteCalendar(sbICSFile.ToString());

       


private
void WriteCalendar(String data)
{
HttpResponse response = Page.Response;
response.Clear();
response.Buffer =
true;
response.ContentType =
"text/calendar";
response.ContentEncoding = Encoding.UTF8;
response.Charset =
"utf-8";
response.AddHeader(
"Content-Disposition", "attachment;filename=\"Calendar.ics\"");
response.Write(data);
response.End();
}

Cat Cheshire
Top achievements
Rank 1
 answered on 12 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?