Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
186 views
HI,
      I am showing sharepoint List's record in telerik radgrid & also showing group footer aggregate & Radgrid's footer aggregate,Its working fine.But aggregates not working on sharepoint list's calculated column (datatype -number).
           Another problem is I have Sharepoint list column named Amount whose datatype is text I want to aggregate it ...It actually contains the numbers.......
        Following is the event log...............

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          9/20/2013 11:16:13 AM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      PRASHANT-PC
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 9/20/2013 11:16:13 AM 
Event time (UTC): 9/20/2013 5:46:13 AM 
Event ID: 4734b834495a4bde96c7dabba3b5d0d4 
Event sequence: 7 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1824670420/ROOT-2-130241295584824445 
    Trust level: WSS_Minimal 
    Application Virtual Path: / 
    Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\42916\ 
    Machine name: PRASHANT-PC 
 
Process information: 
    Process ID: 7272 
    Process name: w3wp.exe 
    Account name: PRASHANT-PC\PRASHANT 
 
Exception information: 
    Exception type: TargetInvocationException 
    Exception message: Exception has been thrown by the target of an invocation. 
 
Request information: 
    Request URL: http://prashant-pc:42916/_layouts/Diary.aspx 
    Request path: /_layouts/Diary.aspx 
    User host address: 192.xxx.x.xxx
    User: PRASHANT-PC\PRASHANT
    Is authenticated: True 
    Authentication Type: NTLM 
    Thread account name: PRASHANT-PC\PRASHANT 
 
Thread information: 
    Thread ID: 15 
    Thread account name: PRASHANT-PC\PRASHANT 
    Is impersonating: False 
    Stack trace:    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 Telerik.Web.UI.GridBoundColumn.GetAggregate(IEnumerable enumerable, IQueryable queryable, String fieldName, Type dataType, GridAggregateFunction func)
   at Telerik.Web.UI.GridBoundColumn.ApplyAggregates35(TableCell cell, String footerText)
   at Telerik.Web.UI.GridGroupFooterItem.Initialize(GridColumn[] columns)
   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.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.WebControls.DataBoundControl.PerformSelect()
   at Telerik.Web.UI.GridTableView.PerformSelect()
   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.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-09-20T05:46:13.000000000Z" />
    <EventRecordID>51354</EventRecordID>
    <Channel>Application</Channel>
    <Computer>PRASHANT-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>9/20/2013 11:16:13 AM</Data>
    <Data>9/20/2013 5:46:13 AM</Data>
    <Data>4734b834495a4bde96c7dabba3b5d0d4</Data>
    <Data>7</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1824670420/ROOT-2-130241295584824445</Data>
    <Data>WSS_Minimal</Data>
    <Data>/</Data>
    <Data>C:\inetpub\wwwroot\wss\VirtualDirectories\42916\</Data>
    <Data>PRASHANT-PC</Data>
    <Data>
    </Data>
    <Data>7272</Data>
    <Data>w3wp.exe</Data>
    <Data>PRASHANT-PC\PRASHANT</Data>
    <Data>TargetInvocationException</Data>
    <Data>Exception has been thrown by the target of an invocation.</Data>
    <Data>http://prashant-pc:42916/_layouts/Diary.aspx</Data>
    <Data>/_layouts/Diary.aspx</Data>
    <Data>192.xxx.x.xx</Data>
    <Data>PRASHANT-PC\PRASHANT</Data>
    <Data>True</Data>
    <Data>NTLM</Data>
    <Data>PRASHANT-PC\PRASHANT</Data>
    <Data>15</Data>
    <Data>PRASHANT-PC\PRASHANT</Data>
    <Data>False</Data>
    <Data>   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 Telerik.Web.UI.GridBoundColumn.GetAggregate(IEnumerable enumerable, IQueryable queryable, String fieldName, Type dataType, GridAggregateFunction func)
   at Telerik.Web.UI.GridBoundColumn.ApplyAggregates35(TableCell cell, String footerText)
   at Telerik.Web.UI.GridGroupFooterItem.Initialize(GridColumn[] columns)
   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&amp; isGroup, Boolean&amp; 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.WebControls.DataBoundControl.PerformSelect()
   at Telerik.Web.UI.GridTableView.PerformSelect()
   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.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
  </EventData>
</Event>

      

Tsvetoslav
Telerik team
 answered on 24 Sep 2013
1 answer
659 views
hi support,

Since we have some problems with iframe in our project, so is there a way that Tab Strip can load aspx page without using iframe?

thanks for help,

Roger
Nencho
Telerik team
 answered on 24 Sep 2013
2 answers
136 views
Hi,

I am using version Q2 717 2013 of the ASP.NET for AJAX controls.

I'm using the RadDock.

I don't see a client event that I can assign a function to, for when the user clicks the expand / collapse button.  Is there one?

FYI:  I've implemented a custom close button, so I've also added the following line of code in code-behind, to add the expand / collapse button.

		dock.Commands.Add(New DockExpandCollapseCommand())

Again, my goal / question is:  I want to run some client-side code (NOT do a postback) after the user has expanded or collapsed a dock.  How can I do that?

Thanks,
Brent
Brent Hetland
Top achievements
Rank 1
 answered on 24 Sep 2013
2 answers
105 views
Hi,

I'm using 2013.2.717 of the ASP.NET for AJAX controls.

I'm using the RadDock control and I have implemented a custom DockCommand for Closing a Dock.

Q.  In my javascript function that runs when the user closes a Dock, how can I get the dock's UniqueName property?

The only thing I see that gets it is:  sender._uniqueName

While that works for now, it seems like since that is a "private field", Telerik could change it without notice and break my application...  So, using that line of code seems dangerous.

Isn't there a way "more supported way" to get the Dock object's UniqueName property from javascript?

Thanks,
Brent
Brent Hetland
Top achievements
Rank 1
 answered on 24 Sep 2013
1 answer
101 views
We are under telerik upgradation to the latest version available. On the way we faced an issue saying Radgrid.AsyncRedirect() is not in the new dll (getting "missing any reference" error). Does anyone know what would be the replacement for Radgrid.AsyncRedirect() method to achieve the same functionality in the latest telerik dll (telerik.web.ui)? kindly help. Thank you in advance.
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
2 answers
145 views
Hi,
using combobox and want to stay at default text like select user type after page refresh and data save completed
 <telerik:RadComboBox ID="cmbusertype" runat="server" Width="280px" ExpandAnimation-Type="OutBounce"
                            Skin="WebBlue">
                            <DefaultItem Text="Please Select User Type" Value="-1" />
                        </telerik:RadComboBox>

Thanks
Swapnil
Top achievements
Rank 1
 answered on 24 Sep 2013
2 answers
73 views
I need to display the RadLoadingPanel for the Radgrid however I have a timer that every 3 seconds rebinds the grid. Is it possible to exclude the loading panel on certain events.
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
6 answers
516 views
Hi,
I am using RadGrid which has 4 columns. column2 = GridTemplateColumn with ItemTemplate as textbox and column4 = GridTemplateColumn with ItemTemplate as checkbox.

I need to get the value of the textbox and do some calculation and assign the calculated value to column3 for that row.
I am trying to do it on client side and this is my .ascx code for onblur of the textbox :
function ConvertToUSD(index) {               
               var grid = $find("<%=AntiXss.JavaScriptEncode(rgdPOTypes.ClientID).Trim('\'')%>");
               var MasterTable = grid.get_masterTableView();
               var Row = MasterTable.get_dataItems()[index];                                
               var cell = MasterTable.getCellByColumnUniqueName(Row, "TextboxCurreny");              
               if (!cell) {
                       var nextcell = MasterTable.getCellByColumnUniqueName(Row, "InUSD");              
                       nextcell .InnerHTML = cell.InnerHTML * 50;
               }
           }

In the above code, the value of 'cell' is always coming as null.
file.ascx.cs
protected void rgdPOTypes_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                TextBox txtBox = (TextBox)item.FindControl("TextboxCurreny");
 
                txtBox.Attributes.Add("onblur", "ConvertToUSD('" + item.ItemIndex + "')");
             }
        }

Please help me understand what is going wrong in the code.

Thanks,
Preeti
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
1 answer
216 views
Hi,

i have upgraded the teleric control library with the latest version.
Earlier i was using get_value() property to get the value from the rad numeric text box and it was working fine, now when i updated it this property(get_value) is not supporting to get the value from rad numeric textbox. 

i have written my code which i have used below.

function OnBlur() 

{ 

    var Input1 = $find("<%= RadNumericTextBox1.ClientID %>"); 

    var value1= Input1.get_value(); 

    var result = value1*2; 

    var Input3 = $find("<%= RadTextBox1.ClientID %>"); 

    Input3.set_value(result);    

} 

function OnBlur1() 

{ 

    var Input2 = $find("<%= RadNumericTextBox2.ClientID %>"); 

    var value2= Input2.get_value(); 

    var result = value2*2; 

    var Input3 = $find("<%= RadTextBox1.ClientID %>"); 

    Input3.set_value(result); 

} 



<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"> 

        <ClientEvents OnBlur="OnBlur" /> 

</telerik:RadNumericTextBox> 

<telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"> 

        <ClientEvents OnBlur="OnBlur1" /> 

</telerik:RadNumericTextBox> 

<telerik:RadTextBox ID="RadTextBox1" runat="server"> 

</telerik:RadTextBox>


Can you please tell me which property will work with this so that i can get only value from the rad numeric textbox?

Kostadin
Telerik team
 answered on 24 Sep 2013
3 answers
139 views

Is it possible to set EmptyMessage in RadGrid1_ItemDataBound Edit Mode for a telerik:GridBoundColumn or GridDateTimeColumn?

Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?