Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
139 views
HI,
   I have aggergate problem on one of the column Total_goal of the data source. If remove the aggergate then no exception.
   What is the reason for this behaviour? Clearly Total_Goal Column is the part of data source.

<telerik:GridTemplateColumn Aggregate="Sum" DataField="Total_Goal" UniqueName="TotalGoals" ItemStyle-Width="75px" HeaderStyle-Font-Bold="true" FooterAggregateFormatString="{0:F2}" FooterStyle-Font-Bold="true" >
                                            <HeaderTemplate>
                                                Total Goal
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <a href="HinoPartsDashBoardTransactions.aspx?SalesType=AM&amp;from= <%#ddlStartMonth.SelectedValue%>&amp;to=<%#ddlEndMonth.SelectedValue%>&amp;DMP= <%#Eval("User_ID")%>"><%#Eval("Total_Goal")%></a>
                                             </ItemTemplate>
                                                            
                                         </telerik:GridTemplateColumn>

Total_Goal     Total_sales
0.00                123.67
0.00                4567.89




Error:

Server Error in '/HinoParts3' Application.

Cannot find column -1.

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.IndexOutOfRangeException: Cannot find column -1.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IndexOutOfRangeException: Cannot find column -1.]
   System.Data.DataColumnCollection.get_Item(Int32 index) +92
   Telerik.Web.UI.GridDataTableFromEnumerable.GetColumnsToUse() +7894
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1055
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +222
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +96
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +478
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +219
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +351
   Telerik.Web.UI.RadGrid.DataBind() +165
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3869
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +177
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Balkar
Top achievements
Rank 1
 answered on 23 May 2013
3 answers
79 views
Hi Telerik team and community

I've got a little  question. I use the fileexplorer control but I've hidden the original toolbar and I use a personnal toolbar. So, I've to custom all handler to call functionnality (new dir, gridview etc ... )

Here is my question, How I can call the dialog upload window with a personal button ? I hope my question is understandable

Thanks

Romain




Romain
Top achievements
Rank 1
 answered on 23 May 2013
2 answers
83 views
Hello, I'm new to using the Telerik controls and I haven't had any luck finding an answer to my problem so far.  All I'm trying to do is have a different background image for un-selected menu items, selected menu items and hovered menu items.  So far I've been able to apply this style to all menu items except for the very first one.  I'm not doing any thing different in my code, so I'm wondering if I should be doing something different.  In my attached picture, you can see the first menu item (selected) without my background image.  The second item has the correct selected style, the third item has the correct un-selected style and the final item has the correct hover style.  If it makes any difference, this control is on a master page.

CSS
.NormalMenuItem
{
    /*background-color: red !important;*/
    background-image: url(../Images/headerNormal.png) !important;
    background-size: 100% 35px;
}
 
.NormalMenuItem:hover
{
    /*color: red !important;
    background-color: white !important;*/
    background-image: url(../Images/headerHover.png) !important;
    background-size: 100% 35px;
}
 
.SelectedMenuItem
{
    /*background-color: purple !important;*/
    background-image: url(../Images/headerActive.png) !important;
    background-size: 100% 35px;
}

C#
DataTable mnuDT = new DataTable();
mnuDT.Columns.Add("Section");
mnuDT.Rows.Add("Employees");
mnuDT.Rows.Add("Projects");
mnuDT.Rows.Add("Customers");
 
Telerik.Web.UI.RadMenuItem homeRmi = new Telerik.Web.UI.RadMenuItem();
homeRmi.Text = "Home";
homeRmi.CssClass = "NormalMenuItem";
homeRmi.ClickedCssClass = "SelectedMenuItem";
homeRmi.SelectedCssClass = "SelectedMenuItem";
homeRmi.Selected = true;
rmMain.Items.Add(homeRmi);
 
for(int i = 0; i < mnuDT.Rows.Count; i++)
{
    Telerik.Web.UI.RadMenuItem rmi = new Telerik.Web.UI.RadMenuItem();
    rmi.Text = mnuDT.Rows[i].ItemArray[0].ToString();
    rmi.CssClass = "NormalMenuItem";
    rmi.ClickedCssClass = "SelectedMenuItem";
    rmi.SelectedCssClass = "SelectedMenuItem";
    rmMain.Items.Add(rmi);
}

ASPX
<telerik:RadMenu ID="rmMain" runat="server" onitemclick="rmMain_ItemClick">
</telerik:RadMenu>
Athena
Top achievements
Rank 1
 answered on 23 May 2013
2 answers
485 views
After upgrading I get Failed to create designer 'Telerik.Web..... on all Telerik controls.

The only way I can get the controls to work is to down grade them.  What do I need to do to get them to work?

Using Telerik version 2011.1.519.35
only working version looks like 2010.1.519.35 located in the installation folder all other version are in the Download folder. 
Using VS2010 Prem, Windows 7 Ent. all service packs installed and up to date.

Thanks.
Roberto Monge Fernández
Top achievements
Rank 2
 answered on 23 May 2013
3 answers
159 views
Hi

I'm using a RadAlert from the server side to pop up if there is an issue. I'm using the RadAlert because it gives me 1 button, if it pops up I want the OK click to stop processing the serverside event.

How can I achieve this.

Or if I have to use RadConfirm how do I hide the Close button.

Andy
Andy Green
Top achievements
Rank 2
 answered on 23 May 2013
1 answer
135 views
How do I set a comma as the tag separator?  It seems my tags are being separated by space, but our tags can contain separator words.  For example "Santa Monica,Public Library" is displayed as 4 tags instead of just 2.

Is there something I'm missing here?  Seems like this should be the default behavior.

Thanks for your time.

Slav
Telerik team
 answered on 23 May 2013
3 answers
182 views
Hi! Is there a simple way to align the icon vertically via CSS? (See attached.) Thanks!
Marin Bratanov
Telerik team
 answered on 23 May 2013
1 answer
235 views
I have a RadDropDownTree and i want to set the selected value, I do this with the ddtDiagCategorie_OnNodeDataBound, my node is selected in the list when i open it, but th text is not dispay at first time, I tried with DefaultMessage property with no result. I was thinking that the right manner was using the SelectedText or SelectedValue like a normal dropdown, but th property is readonly, how does I have to do this. (The big consequence is after a modify, if the user don't go to selecte the value in the DropDownTree, he save an empty value in the database...)

My code on the event :

protected void ddtDiagCategorie_OnNodeDataBound(object sender, DropDownTreeNodeDataBoundEventArguments e)
        {
            if (BilletCourant != null && BilletCourant.IdCategorie.HasValue)
            {
                if (e.DropDownTreeNode.Value.Equals(BilletCourant.IdCategorie.Value.ToString()))
                {
                    e.DropDownTreeNode.CreateEntry();
                }
            }
 
            //ExpandAllNodes sur ce contrôle
            e.DropDownTreeNode.Expanded = true;
        }

Kate
Telerik team
 answered on 23 May 2013
1 answer
212 views
Hi,
           My application contains a Radgrid & search functionality. It works well in my system. but when I published & host in  production server, its not working.. Even paging in the Radgrid is also not working , watever button i press it loads the first page only.. I used
if(!IsPostBack) in the pageload eventhough it loads the first page only . Please help me with a solution thanks in advance..
Eyup
Telerik team
 answered on 23 May 2013
2 answers
132 views
Hi!

I have been racking my brain trying to style two lines in the calendar control: the border of the calendar, and the divider line on the popup (see attached.) Via CSS, how can I override these lines?

Thanks!
Michael O'Flaherty
Top achievements
Rank 2
 answered on 23 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?