Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
191 views
In this RadSchedule demo, it mentions that you can use AllowMultipleValues for a resource to allow a many to many relationship. How do you do that with a SQL Server data source?
Peter
Telerik team
 answered on 07 May 2012
1 answer
95 views
Hi,

  • I have these software in my desktop:
Win Server 2003
SharePoint 2007 (MOSS)
Sharepoint service 3.0
Visual Studio 2010
IIS 6
.net AJAX 3.5

  • I installaed RadControls for .net AJAX 3.5 BY walking through these steps:

 

1) Installing RadControls from ZIP file
http://www.telerik.com/help/aspnet-ajax/introduction-all-conrols-from-zip.html

2) Setting ASPNET (Network Service) Permissions
http://www.telerik.com/help/aspnet-ajax/introduction-setting-aspnet-permissions.html

3) Add RadControls to the Global Assembly Cache
http://www.telerik.com/help/aspnet-ajax/introduction-add-to-global-assembly-cache.html

4) Extending your SharePoint 2007 site with Microsoft ASP.NET AJAX 3.5
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html

5) Deploying RadControls for ASP.NET Ajax (EXCEPT STEP 3)
http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

6) Installing RadEditor in a MOSS 2007 farm
http://www.telerik.com/help/aspnet-ajax/moss-installing-radeditor-in-moss-2007-farm.html

7) Create an AJAX-enabled SharePoint WebPart that uses RadControls (The error appear after this step)
http://www.telerik.com/help/aspnet-ajax/moss-create-ajax-enabled-sharepoint-webpart-radcontrols.html

Sharepoint Log Has this error:
OWSTIMER.EXE (0x1280)        0x1454 Windows SharePoint Services    General         Medium   Entering MRU trim routine.

Note:
I am adding the controls to by website by creating it using C# classes, so I need to add RadEditor and Rad Calenred to my website using c# classes not adding it directly to the sharepoint site (adding webpart).

My problem is: I cannat add any radeditor to my website using creatchildconrols although i did the prvios steps and addd Telerik.Web.Design.dll and Telerik.Web.UI.dll to the references
and using the namespaces

using System.Web.UI;

using Telerik.Web.UI;

when I add the controls (this.Controls.Add(this.radEditor))the attached error appears.


Question: What exactly I need to do to start using RadControls?


Thank you for your help

 


Rumen
Telerik team
 answered on 07 May 2012
3 answers
103 views
Is it possible to setup RadEditor to pull styles from a different domain? For example, taking your example from the help page:

<telerik:RadEditor runat="server" ID="RadEditor1">
    <CssFiles>
        <telerik:EditorCssFile Value="~/ExternalCssFiles/Styles1.css" />
        <telerik:EditorCssFile Value="~/ExternalCssFiles/Styles2.css" />
    </CssFiles>
</telerik:RadEditor>

Can I do something like this:

<telerik:RadEditor runat="server" ID="RadEditor1">
    <CssFiles>
        <telerik:EditorCssFile Value="http://www.mysite.com/styles/Styles1.css" />
        <telerik:EditorCssFile Value="http://www.mysite.com/styles/Styles2.css" />
    </CssFiles>
</telerik:RadEditor>

If not directly, do you have any recommendations on how I could implement something like this? I'm building a rather large CMS that will control content for multiple sites inside a single area and within the editor I would like for styles that show up to mimic the ones actually on the site being edited.
Rumen
Telerik team
 answered on 07 May 2012
4 answers
109 views
I have a read only grid control on the web.  When you click on a row i want to be able to display whole bunch of information on the right side of the grid.  For example lets say you have a first name and last name showing on the grid.  Upon clicking on the grid row user can see further information such as address, email, etc on that user on the right side of the grid.
My questions are
 #1 the SelectedIndexChanged doesn't fire why? am i doing something wrong?
#2 I see the manual say use a checkbox.  It doesn't really work for me but I figured i place a checkbox on the grid( i don't see an option for autopostback on the checkbox column).  Anyways, I run  the app and the checkbox is disabled ( i can't click on it).
Can someone help me here?
Thanks

Saro
Top achievements
Rank 1
 answered on 07 May 2012
7 answers
135 views
Hi,

Is that possible to rotate RadTabStrip tabs automatically like a slide show?

improwise
Top achievements
Rank 1
Iron
Iron
 answered on 07 May 2012
1 answer
197 views
Hi

I'm using a RadComboBox with check boxes and server side when the user saves the form I insert using the following:
var sb = new StringBuilder();
var collection = ddlAdditionalStaff.CheckedItems;
foreach (var item in collection)
sb.Append(item.Value + "|");

Which leaves me with a field in my database table eg. Fred|Mark|Gary|

My question is how can I rebind this field to the RadComboBox with Checkboxes when the user edits the form. I have tried the text, selected value and checkeditems without luck. I have seen in the documentation the DataCheckedField can be used, but I do not understand it's use so could do with some clarification.

Any help would be greatly appreciated.

Ben
Ben
Top achievements
Rank 1
 answered on 07 May 2012
2 answers
120 views
I'm working with the RadChart in displaying a stacked bar chart.  I have enabled scrolling along the x-axis.  The scrollbar is overlapping the bottom series (see attached image).  How do I fix this?
Chad Johnson
Top achievements
Rank 1
 answered on 07 May 2012
8 answers
154 views
Hello,

after updating the ASP.Net controls from Q3 2011 to Q1 2012 the following problem occured;
When disabling the RadDatePicker and hide the DatePopupButton the display of the date is a litlle bit unexpected :-). If the DatePopupButton stays vsible everything works fine but when visible is false than there's my problem.

.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.PanelBar_Default" %>
 
<%@ Register Src="~/PanelBar/WebUserControl.ascx" TagName="ucpb" TagPrefix="usercpb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
  <title></title>
  <style type="text/css">
     
  </style>
  <script type="text/javascript">
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <telerik:RadScriptManager ID="ScriptManager1" runat="server">
  </telerik:RadScriptManager>
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
  </telerik:RadAjaxManager>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook">
  </telerik:RadAjaxLoadingPanel>
  <telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
    <script type="text/javascript">
    </script>
  </telerik:RadScriptBlock>
  <telerik:RadAjaxPanel runat="server" ID="rapHourControl" LoadingPanelID="RadAjaxLoadingPanel1">
    <div style="width: 100px;">
      <telerik:RadDatePicker runat="server" ID="rdpDate" Skin="Windows7" Width="100px"
        TabIndex="2" DatePopupButton-TabIndex="-1">
        <DateInput ID="rdpDateInput" runat="server" EmptyMessage="Required">
          <EmptyMessageStyle BackColor="#FFF1F1" Font-Italic="True" ForeColor="Red" />
          <FocusedStyle BackColor="#CCFFCC" />
        </DateInput>
      </telerik:RadDatePicker>
    </div>
  </telerik:RadAjaxPanel>
  </form>
</body>
</html>

aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using Telerik.Web.UI;
using System.Data;
 
namespace WebApplication1
{
  public partial class PanelBar_Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      rdpDate.Enabled = false;
      rdpDate.DatePopupButton.Visible = false;
    }
 
    protected override void OnInit(EventArgs e)
    {
      base.OnInit(e);
 
      rdpDate.SelectedDate = DateTime.Now;
    }
  }
}

Anyone?

Regards,
  Jos Meerkerk



Vasil
Telerik team
 answered on 07 May 2012
4 answers
115 views
Editor: any option for thesaurus? Could I integrate something like nhunspell or mythes?

Form fields: Is there any built in way to dynamically add /duplicate a group of fields including upload?

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 07 May 2012
2 answers
139 views
This is what I'm trying to achieve:

I have some data that I want to export using a click of a button. When the user clicks the export button, I'm creating mutliple RadGrids dynamically, adding them to the form, and triggering the ExportToExcel() method.

This is part of the code:
For Each Vendor_ID As Integer In hashDataByVendor.Keys
    Dim tempRadGrid As New Telerik.Web.UI.RadGrid
    Dim dtVendor_ID As System.Data.DataTable = hashDataByVendor(Vendor_ID)
    tempRadGrid.DataSource = dtVendor_ID
    Dim vendor As New Vendor(Vendor_ID)
    tempRadGrid.ID = String.Format("{0}-{1}", vendor.Vendor_Name, Date.Now.ToString("MMddyyyy_HHmmssfff"))
    tempRadGrid.MasterTableView.Caption = String.Format("{0} ETA List for {1}", vendor.Vendor_Name, Date.Today.ToString("MM/dd/yyyy"))
 
    Dim tempColumnGrid As New Telerik.Web.UI.GridBoundColumn
    tempRadGrid.MasterTableView.Columns.Add(tempColumnGrid)
    tempColumnGrid.DataField = "Task_ID"
    tempColumnGrid.HeaderText = "Task ID"
    tempColumnGrid.ItemStyle.HorizontalAlign = HorizontalAlign.Left
 
    tempRadGrid.MasterTableView.ShowHeader = True
    tempRadGrid.AutoGenerateColumns = False
    tempRadGrid.ExportSettings.HideStructureColumns = False
    tempRadGrid.ExportSettings.ExportOnlyData = True
    tempRadGrid.ExportSettings.FileName = String.Format("{0} - {1}", vendor.Vendor_Name, Date.Now)
    tempRadGrid.ExportSettings.OpenInNewWindow = True
    Page.Controls.Add(tempRadGrid)
    tempRadGrid.DataBind()
    intTempVendor_ID = vendor.Vendor_ID ' Store the current vendor_id so we can use it in the GridExporting Sub.
    tempRadGrid.MasterTableView.ExportToExcel()
 
    AddHandler tempRadGrid.GridExporting, AddressOf tempRadGrid_GridExporting
    intVendorsCounter += 1
Next

When there is only ONE Grid created through this loop - everything works fine.

When there is more then one Grid created I'm getting an error: 

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:

Line 355:                tempRadGrid.ExportSettings.FileName = String.Format("{0} - {1}", vendor.Vendor_Name, Date.Now)
Line 356:                tempRadGrid.ExportSettings.OpenInNewWindow = True
Line 357:                Page.Controls.Add(tempRadGrid)
Line 358:                tempRadGrid.DataBind()
Line 359:                intTempVendor_ID = vendor.Vendor_ID ' Store the current vendor_id so we can use it in the GridExporting Sub.



Any clue on how to solve this matter?
Daniel
Telerik team
 answered on 07 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?