Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
Hello all,
Using RadGrid version 2011.3.1305.40 I have a gridcalculatedfield that works until I want a total at the footer.

This is my field:
<telerik:GridCalculatedColumn 
                            DataFields="oneAmt,twoAmt,threeAmt" 
                            Expression="{0}-{1}-{2}"
                            UniqueName="netAmt" 
                            AllowFiltering="False" 
                            AllowSorting="False"
                            DataFormatString="{0:c}" 
                            Groupable="False"
                            HeaderText="Net Amount" 
                            Reorderable="False" 
                            ShowSortIcon="False" Aggregate="Sum" DataType="System.Decimal" 
                            FooterAggregateFormatString="{0:c}">
                            <FooterStyle HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                            <ItemStyle HorizontalAlign="Right" />
</telerik:GridCalculatedColumn>

The error I get when I run this is:
Inner Exception Type: System.Reflection.TargetInvocationException
Inner Exception: Exception has been thrown by the target of an invocation.
Inner Source: mscorlib
Inner Stack Trace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Telerik.Web.UI.GridBoundColumn.GetAggregate(IEnumerable enumerable, IQueryable queryable, String fieldName, Type dataType, GridAggregateFunction func)
   at Telerik.Web.UI.GridCalculatedColumn.ApplyAggregates35(TableCell cell, String footerText)
   at Telerik.Web.UI.GridCalculatedColumn.footerCell_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.GridItemBuilder.CreateGroupFooterItem(GridGroupingContext group)
   at Telerik.Web.UI.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup, Boolean& isGroupFooter)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.Web.UI.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup, Boolean& isGroupFooter)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.Web.UI.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup, Boolean& isGroupFooter)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   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 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
   at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Exception Type: System.Web.HttpUnhandledException
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source: DefaultPage
Stack Trace: 
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.fiscalanalysis_fiscalreportanalysisdisplay_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ef32ca4f\11f861fb\App_Web_3whl54po.2.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Your help is appreciated.
Radoslav
Telerik team
 answered on 06 Jul 2012
1 answer
78 views
Hello, i need to know if is possible that FormDecorator change the style of the pages of the multipage. i have a tabstrip with multipage and a radpageview. The tabs has contenturl that is loaded dynamically  when clicks the tab. How can i put a formdecorator in this case?

here some code 

<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Height="75px" Width="75px">
</telerik:RadAjaxLoadingPanel>
<telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" CssClass="tabStrip" runat="server"
    MultiPageID="RadMultiPage1" Skin="Default" AutoPostBack="true" ShowBaseLine="True"
    ClickSelectedTab="True" OnTabClick="RadTabStrip1_TabClick">
</telerik:RadTabStrip>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManagerProxy1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="radMultiPage"
    BorderColor="Azure" BorderWidth="1" Height="99%" Width="100%">
    <telerik:RadPageView ID="RadPageView1" runat="server" Height="100%" Width="100%">
    </telerik:RadPageView>
</telerik:RadMultiPage>
<telerik:RadScriptBlock ID="radscriptBlock" runat="server">
    <script type="text/javascript">
        setTimeout("setPanelHeight()", 0);
         
        function setPanelHeight() {
            var heightTab = 0;
            heightTab = $("#ctl00_cphWorkWindow_tabStrip_ctl00_cphWorkWindow_tabStrip_RadTabStrip1Panel").outerHeight();
            var height = $(window).height();
            $("#ctl00_cphWorkWindow_tabStrip_ctl00_cphWorkWindow_tabStrip_RadMultiPage1Panel").height(height - heightTab - 80);
        }
    </script>
</telerik:RadScriptBlock>


regards,
Orlando.


Rumen
Telerik team
 answered on 06 Jul 2012
1 answer
124 views
I was trying a Rich Edit box for the website. We are having a basic ASP.net page. We would like to have the contents in the page edited by the Admin dynamically. Can we use RadEditor for this purpose.  Is that a free version or what is the price for the license. Do we need a separate Database to store the contents for that .
 
Rumen
Telerik team
 answered on 06 Jul 2012
2 answers
217 views
Hi all,,

i have a rad window and its contain a file upload... when i try to catch file path instead of a button click the file upload control should be always null.... and its shown an error...

please help..


Regards,

Prassin 
Prassin
Top achievements
Rank 1
 answered on 06 Jul 2012
6 answers
884 views
Hi All --

I have a templated column in my grid with a checkbox in each row.  Is there an easy way, client-side, to loop through and check/uncheck all of them?

This is not the built in checkbox column for selecting rows, but a separate column altogether.

Thanks!

Troy
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
1 answer
88 views
Hi,

How can I prevent the user from changing the slider value? One way to do this is by disabling the slider, but the look and feel isn't good.

Thanks

Vasu
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
3 answers
171 views
Hi,
I have a Rad Textbox in the form at page load i added style of display none,
now at rad combox selection change  at client event, i have to set style display block of that textbox.

function pageLoad() {
       txt = $find("<%=txtFuelsNameSearch.ClientID  %>");
       alert(txt);
   }






Thanks in advance.


Regards
Krishna
Princy
Top achievements
Rank 2
 answered on 06 Jul 2012
1 answer
45 views
Sir,

As hierarchical radgrid not suppor the databind method but is there any support how can we bind the data to hierarchical radgrid 
through webservice through client side.



Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
4 answers
494 views
Hi,

Radgrid details:
- I have setup only one column in the grid as a text box in item template. I need to implement something like excel, where user can enter/edit data in this cell, and press enter or down key to move to the cell on the row below.
- I have registered double click event on the row to redirect the user to a different page.

Can you please help me out with the problems below:
- On pressing enter in the cell (text box), a refresh / rebind happens. How can I avoid it? I tried putting in a default invisible button as well, but even that didn't work.
- On Double click of the cell (text box), the redirect happens. How can I avoid it? I tried having an "ondblclick" return false, but it didn't work.

Regards,
Saumil
Princy
Top achievements
Rank 2
 answered on 06 Jul 2012
2 answers
124 views
Hi All,

Just getting into creating custom skins, and have completed the combobox. All is working well other than the fact the check boxes still use the old skin sprites. How do i change the skin for the check boxes in the combo box? Is there a common gif that needs changing as there is seemingly no reference to anything the ComboBox_{skinname}.css file, and there are no check box sprites in the copied skin folder.

Any help would be appreciated.

Thanks
rpm
Top achievements
Rank 1
 answered on 05 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?