Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
hi,

Yet another problem, I am using ASP.NET Ajax extensions like Validator Callout and Filtered Textbox in my page and they are refusing to work in Sitefinity. When adding the control as module in Sitefinity it exception-ed to say that only one Script manager can live on a page, I removed it and found out that all the Extension controls are not working. What to do ? Please reply as early as possible. Thanks
Zubair
Top achievements
Rank 1
 answered on 24 Aug 2008
2 answers
100 views
Hi,

I was browsing RadControls for ASPNET AJAX Q2 2008 Live Examples tonight, and noticed something a little out-of-place.  On the Calendar -> Appearance -> Skins page, the screenshot for the Outlook skin is blurry.  I figured out that a calendar with the Outlook skin is considerably smaller than the other calendar skins, so I guess the thumbnail just got overstretched.  Still, it looks kind of funny in the middle of all the other much clearer skins!  I don't know if this is a fixable thing or not, but I just thought I might look nicer to have a consistent clarity throughout all the thumbnails.  Thanks for all your great work!

-UIdev
UIdev
Top achievements
Rank 1
 answered on 23 Aug 2008
4 answers
143 views
Hi,

In a master/content page website I have a content page which hosts a RadFormDecorator, used to docorated a search panel and a RadGrid. The grid has Vista skin. The grid has a classic GridButtonColumn:

<telerik:GridButtonColumn ConfirmText="ELIMINARE l'elemento Selezionato?"  
                    ButtonType="ImageButton"  
                    ImageUrl="~/admin/images/Delete.gif"  
                    CommandName="Delete" Text="Elimina Elemento" 
                    UniqueName="DeleteColumn"
        <ItemStyle HorizontalAlign="Center" /> 
    <HeaderStyle Width="30px" /> 
</telerik:GridButtonColumn> 

when th page is first loaded the images are not displayed. The images are displayed back if I select a row or an ajaxified refresh is forced.

I removed the decorator and the images are displayed properly.

Any advice?

Thank you
Lorenzo
AndreaT
Top achievements
Rank 1
 answered on 23 Aug 2008
2 answers
238 views

I am creating a grid programmatically within a page. The datasource is an object list in which the objects contain lists as sub-objects.

An example of the object used within the list is as follows:

public class TaskView  
 
{
#region Private Variables  
 
private string _projectName;  
private string _projectCode;  
private string _taskCode;  
private string _taskName;  
 
private List<string> _dataTypeHeaderNameList;  
private List<string> _dataTypeNameList;  
private List<decimal> _dataTypeDataList;
#endregion  
 
   
 
#region Constructors  
 
// Constructors  
 
public TaskView()  
 
{  
 
}
#endregion  
 
   
 
#region Properties  
 
public string ProjectCode  
 
{  
get { return _projectCode; }  
set { _projectCode = value; }  
}  
 
public string ProjectName  
 
{  
get { return _projectName; }  
set { _projectName = value; }  
}  
 
 
public string TaskCode  
 
{  
get { return _taskCode; }  
set { _taskCode = value; }  
}  
 
public string TaskName  
 
{  
get { return _taskName; }  
set { _taskName = value; }  
}   
 
public List<string> DataTypeHeaderNameList  
 
{  
get { return _dataTypeHeaderNameList; }  
set { _dataTypeHeaderNameList = value; }  
}  
 
public List<string> DataTypeNameList  
 
{  
get { return _dataTypeNameList; }  
set { _dataTypeNameList = value; }  
}  
 
public List<decimal> DataTypeDataList  
 
{  
get { return _dataTypeDataList; }  
set { _dataTypeDataList = value; }  
}
#endregion  
 
}  
 

The columns within the grid are created based on the above object. Basically, columns are created for ProjectName, TaskName, and the number of items within the DataTypeNameList. The code snippet for creating the columns is as follows:

        boundColumn = new GridBoundColumn();  
        RadGridTaskView.MasterTableView.Columns.Add(boundColumn);  
        boundColumn.UniqueName = "ProjectName";  
        boundColumn.DataField = "ProjectName";  
        boundColumn.HeaderText = "Project Name";  
        boundColumn.Aggregate = GridAggregateFunction.None;  
 
 
        boundColumn = new GridBoundColumn();  
        RadGridTaskView.MasterTableView.Columns.Add(boundColumn);  
        boundColumn.UniqueName = "TaskName";  
        boundColumn.DataField = "TaskName";  
        boundColumn.HeaderText = "Task";  
        boundColumn.Aggregate = GridAggregateFunction.None;  
 
 
        for (int i = 0; i < criteria.CostDataList.Count; i++)  
        {  
            boundColumn = new GridBoundColumn();  
            RadGridTaskView.MasterTableView.Columns.Add(boundColumn);  
            boundColumn.UniqueName = criteria.CostDataList[i];  
            boundColumn.DataField = "DataTypeDataList[" + i.ToString() + "]";  
            boundColumn.HeaderText = criteria.CostDataList[i];  
            boundColumn.DataFormatString = "{0:#,###.00}";  
            boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
            boundColumn.DataType = Type.GetType("System.Decimal"false);  
            boundColumn.Aggregate = GridAggregateFunction.Sum;  
            boundColumn.FooterText = "Total:";  
        } 

When the page is loaded and at least one item is in the DataTypeDataList the following exception is thrown:

System.Data.SyntaxErrorException was unhandled by user code  
  Message="Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier." 
  Source="System.Data" 
  StackTrace:  
       at System.Data.ExpressionParser.ParseAggregateArgument(FunctionId aggregate)  
       at System.Data.ExpressionParser.Parse()  
       at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)  
       at System.Data.DataTable.Compute(String expression, String filter)  
       at Telerik.Web.UI.GridBoundColumn.ApplyAggregates(TableCell cell, String footerText)  
       at Telerik.Web.UI.GridBoundColumn.cell_DataBinding(Object sender, EventArgs e)  
       at System.Web.UI.Control.OnDataBinding(EventArgs e)  
       at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)  
       at System.Web.UI.Control.DataBind()  
       at System.Web.UI.Control.DataBindChildren()  
       at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)  
       at System.Web.UI.Control.DataBind()  
       at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)  
       at Telerik.Web.UI.GridTableView.CreateFooterItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTFoot tfoot)  
       at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)  
       at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)  
       at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)  
       at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)  
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)  
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()  
       at Telerik.Web.UI.GridTableView.PerformSelect()  
       at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()  
       at Telerik.Web.UI.GridTableView.DataBind()  
       at Telerik.Web.UI.RadGrid.DataBind()  
       at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)  
       at Telerik.Web.UI.RadGrid.Rebind()  
       at View_TaskView.HierarchyDataViewCriteria_Submit(Object sender, EventArgs e) in d:\Documents and Settings\TLP\My Documents\Visual Studio 2005\Projects\Athena\AthenaWeb\View\TaskView.aspx.cs:line 366  
       at UserControls_DataViewCriteria.OnSubmit(EventArgs e) in d:\Documents and Settings\TLP\My Documents\Visual Studio 2005\Projects\Athena\AthenaWeb\UserControls\DataViewCriteria.ascx.cs:line 68  
       at UserControls_DataViewCriteria.ButtonSubmit_Click(Object sender, EventArgs e) in d:\Documents and Settings\TLP\My Documents\Visual Studio 2005\Projects\Athena\AthenaWeb\UserControls\DataViewCriteria.ascx.cs:line 352  
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)  
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)  
       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)  
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)  
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)  
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
 

If I set the grid bound column aggregate property to None (instead of Sum)  within the loop that is creating the columns, the grid is created without errors.

When the grid is created successfully (i.e., with the aggregate property set to None), and I attempt to sort on one of the columns that is created within the for loop, I get the following error when I click on the column header to invoke the sort:

Cannot find column DataTypeDataList[0]

Any help in resolving the above issues would be greatly appreciated.


Thanks, Tony


tlp
Top achievements
Rank 1
 answered on 23 Aug 2008
0 answers
93 views
Hi,

I was having problems passing the Url : "Welcome.aspx?UserID=" + user where user is the variable defined by me, in the NavigateUrl of the RadMenu....

Could u pls help me on this as i'm really stuck!!!

Thanks
Changez
Top achievements
Rank 1
 asked on 23 Aug 2008
2 answers
130 views
I followed the example in the documentation help file(ms-help://telerik.radcontrols.prometheus.2007.Q3/telerik.radcontrols.prometheus.2007.Q3/tree_ContextMenuOverview.html) to display Add and Delete on a right-click.  If I add a new node so that it's text is "New node" and then double-click to edit the text to anything else, when I add another new node, it creates the new node with text "New node", but also resets the text of the node I just edited back to "New node".

This can easily be duplicated in your online demo at http://www.telerik.com/DEMOS/ASPNET/Prometheus/TreeView/Examples/Functionality/ContextMenu/DefaultCS.aspx.

Right-click on "Public Folders" and select "New Folder".  Then double-click and change the text to "My Folder".  Now, right-click again on "Public Folders" and select "New Folder".  There are now two folders named "New Folder" instead of one named "My Folder" and one named "New Folder".
john
Top achievements
Rank 1
 answered on 23 Aug 2008
11 answers
291 views
Hi,

Do you have RadEditor for MOSS x64 version?

Thanks

Kulo
Thomas
Top achievements
Rank 1
 answered on 22 Aug 2008
2 answers
353 views

Hi,

The ItemCommand on my RadGrid is not firing. I tried using grid from
Telerik.WebControls as well as Telerik.Web.UI.

Here is my sample page.
Please help

Thanks
Viji

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%
@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%
@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
&nbsp;&nbsp;<br />
<radG:RadGrid ID="RadGrid1" runat="server" EnableAJAX="True" GridLines="None" OnItemCommand="RadGrid1_ItemCommand"
OnNeedDataSource="RadGrid1_NeedDataSource" Style="z-index: 100; left: 9px; position: absolute;top: 71px">
<ExportSettings>
<Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"
PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />

</ExportSettings>

<ClientSettings>

<Selecting AllowRowSelect="True" />

</ClientSettings>

<MasterTableView>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

</MasterTableView>

</radG:RadGrid>

<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/PatientTest.xml">

</asp:XmlDataSource>

</form>

</

body>

</

html>

Viji
Top achievements
Rank 1
 answered on 22 Aug 2008
3 answers
134 views
I was able to download and install this into my WSS 3.0.

I can add it as a web part.

What I cannot do is get this to work so it is the default editor for our annoucements , blogs and such using these instructions

http://www.telerik.com/help/moss/editor/using%20radeditor%20in%20web%20content%20management%20scenario.html


I opened my default.aspx and default.master file and cannot find any instance of

PublishingWebControls:RichHtmlField   to replace the built in editor of MOSS


Thanks in advance

~Mike
Mike
Top achievements
Rank 1
 answered on 22 Aug 2008
2 answers
253 views
I'm attempting to add a new record to the grid using the insert button.  I have several radcontrols in template columns that show either textboxes or dropdown in edit mode.  After clicint insert, I get this error:

Line 76:                     <telerik:GridTemplateColumn HeaderText="Location Name" UniqueName="tcLocationName" EditFormColumnIndex="6">
Line 77:                         <EditItemTemplate>
Line 78:                             <telerik:RadTextBox ID="radtbLocationName" runat="server" InvalidStyleDuration="100" Text='<%# Bind("[Location Name]") %>'
Line 79:                                 Width="115px">
Line 80:                             </telerik:RadTextBox>
Kevin Clark
Top achievements
Rank 1
 answered on 22 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?