Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
190 views
I'm getting the following javascript error on a page when clicking an ajaxified button after upgrading to Visual Studio 2010 and ASP.Net 4.0:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Mon, 10 Oct 2011 16:11:46 UTC

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '�'.
Line: 6
Char: 84093
Code: 0
URI: http://[website url removed]/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ae71d0a15-7471-4384-9905-78bdf2047cba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.413.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abd09f19b-b595-4ea4-8ab8-449a745bc83c%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a874f8ea2%3a490a9d4e%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41%3aaa288e2d%3a3f6e8f3f%3a8e6f0d33%3a6a6d718d

No code changes have been made to the page and it was working fine under .Net 3.5.  We are on version 2011.1.413.35 of the Telerik controls.

 
EDIT:

I tried serveral different things to get this to work with little success.  As a last attempt I upgraded to the latest version of the Telerik controls, 2011.2.915.40.  When I upgraded I noticed that it was referencing the 3.5 framework version of the dll instead of the 4.0 version.  I manually changed this and retested - it now works again.  Unfortunately, I have to regression test my site due to the Telerik upgrade but we are already in the process of doing this with the 4.0 migration, so it could be worse.

James
Top achievements
Rank 1
 answered on 12 Oct 2011
2 answers
76 views
We would like to keep the height to "auto", rather than having to set the height manually.  This only happens in Internet Explorer 9.  The auto height works fine in all other versions of Internet Explorer, and does not show the scrollbars.  Does Telerik have a fix for this?

<telerik:RadDock ID="RadDock1" runat="server" Width="720px" BorderStyle="None" Skin="MySkin1"
EnableEmbeddedSkins="False" EnableRoundedCorners="True"
EnableAnimation="True" Title="RadDock1"
DefaultCommands="ExpandCollapse" Collapsed="True" Visible="False">

(skin)
.RadDock .rdTop .rdTitleBar
{
  text-align: left;
  position: relative;
  vertical-align:top  !important;
}
.RadDock
{
  height: auto!important;
  margin: 0 0 15px 0 !important;
}
Richard M
Top achievements
Rank 1
 answered on 12 Oct 2011
3 answers
92 views
Hi, so I have a radgrid in the nestedviewtemplate of another radgrid.  It works fine, except I don't know how to add validation to the Edit template for it when someone clicks to edit one of the rows.  Client side validation controls apply to every row that has it open, and I have no idea how to access it's "Add New Record" event.

any ideas?

Thanks
Iana Tsolova
Telerik team
 answered on 12 Oct 2011
2 answers
106 views
Hello,

I have searched through the forums and either not found a solution that solves my problem, or was unable to get it to function how I wanted.

I have a set of data that looks like this:

Item#        Item edition date        last updated date
123            12/1/2010                    6/1/2011
123            11/1/2010                    2/1/2011
123            2/2/2010                      3/1/2010
555            6/30/2011                    7/5/2011
555            4/1/2011                      5/1/2011
666            1/1/2010                      12/31/2010
666            10/1/2009                    12/31/2009


I would like to group the data by the Item#, which I can do, but then I want the groups sorted by the last updated date only, which I cant do. The SQL I use to get the data performs the grouping and sorting correctly, but its not reflected when I bind it. I am using AdvancedDatabinding as well.

Any suggestions/help?
Iana Tsolova
Telerik team
 answered on 12 Oct 2011
1 answer
158 views
Hi:
I have RadGrid with a calculated column with custom aggregate footer.
<telerik:GridCalculatedColumn HeaderText="Total" UniqueName="PriceExtendedColumn"
    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"
    DataFields="Quantity, Price"
    DataType="System.Decimal" Aggregate="Custom" FooterText=" ">
</telerik:GridCalculatedColumn>
I am getting a blank screen.

Phil
Phil
Top achievements
Rank 2
 answered on 12 Oct 2011
0 answers
177 views
Hi, 
I am using RadGrid and I have  added the  scriptmanager to the page from code, making sure that the  first control on the  form is  always a scriptmanager. However, while loading the  page it works fine but  on postback it  throws the  error "Script Control may not be  registered before prerender". 

 Stack Trace: 
[InvalidOperationException: Script controls may not be registered before PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +349529
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66
   Telerik.Web.UI.RadCompositeDataBoundControl.RegisterScriptControl() +43
   Telerik.Web.UI.RadCompositeDataBoundControl.ControlPreRender() +15
   Telerik.Web.UI.RadGrid.ControlPreRender() +51
   Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

I have  used the  control as follows. 

 <radg:RadGrid CssClass="grid_container" ID="grdProperties" runat="server" EnableAJAX="true"
                                HeaderStyle-Wrap="false" BorderWidth="1" BorderColor="#cccccc" ItemStyle-Wrap="false"
                                AlternatingItemStyle-Wrap="false" AutoGenerateColumns="False" CellSpacing="0"
                                CellPadding="0" GridLines="None" AllowSorting="True" EnableEmbeddedSkins="false" EnableAjaxSkinRendering="false" EnableEmbeddedBaseStylesheet="false"> 
                                <ItemStyle CssClass="grid" BorderWidth="0" />
                                <AlternatingItemStyle CssClass="grid_alt" BorderWidth="0"></AlternatingItemStyle>
                                <HeaderStyle CssClass="grvHeadings"></HeaderStyle>
                                <MasterTableView BorderWidth="0" AutoGenerateColumns="false" ItemStyle-CssClass="grid"
                                    ItemStyle-BorderWidth="1" AlternatingItemStyle-CssClass="grid_alt" BorderColor="#cccccc">
                                    <Columns>
                                        <radg:GridTemplateColumn HeaderStyle-Wrap="false" ItemStyle-HorizontalAlign="Right"
                                            HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="grvHeadings" ItemStyle-Wrap="false"
                                            ItemStyle-BorderWidth="0">
                                            <HeaderTemplate>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                            </ItemTemplate>
                                        </radg:GridTemplateColumn>
 </Columns>
                   </MasterTableView>
            </radg:RadGrid>
 Could you guide me as how I could  handle this exception. 

Thanks in Advance. 


Subbaraya Prabu
Top achievements
Rank 1
 asked on 12 Oct 2011
6 answers
274 views
Hi
I'm using the RadPanelBar in my application.
I set the skin WebBlue.
When I move  mouse over the panelitem or items inside panelitem they showing the skyblue color.
I dnt want to show the blue color instead I want to show black color.
How cloud I achieve this. Please help me in Either  I need to any javascript event or custom skin.
I didn't aware of creating and using the custom skin for radcontrols. so please provide me any good example.

Ram
Top achievements
Rank 1
 answered on 12 Oct 2011
1 answer
94 views
hi i am using radtabstrip control for menu i want to open drag and drop functionality for rad tabs when i drag one tab in to place of another tab it will auto replace from another tab i want to do this work from client side can you help me for solve my problem
Thank you
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2011
4 answers
426 views
HI,
  I am getting problem with transfering the item from source to destinaion listbox. when transferring the data then source listbox lost the item while destination show blank row. i am using following code

 

<telerik:RadListBox ID="lstSourceCity" runat="server" AllowTransfer="true" EnableDragAndDrop="false"

 

 

 

Height="205px" TransferMode="Move" TransferToID="lstDestinationCity" Width="350px"

 

 

 

SelectionMode="Multiple" CssClass="Align" OnItemDataBound="lstSourceCity_ItemDataBound" OnTransferred="lstSourceCity_Transferred" AutoPostBackOnTransfer="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

 

<telerik:RadListBox ID="lstDestinationCity" runat="server" Height="205px" Width="350px"

 

 

 

CssClass="Align" OnItemDataBound="lstDestinationCity_ItemDataBound">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkIsFeatured" runat="server" />

 

 

 

<asp:Label ID="lblDestCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

protected void lstSourceCity_Transferred(object sender, RadListBoxTransferredEventArgs e)
{     

 

 

foreach (RadListBoxItem listBoxItem in e.Items)

 

{

listBoxItem.DataBind();

}

 I am searching the soluntion for last couple of day but did not find exact solution.

 

 

 

 

Dimitar Terziev
Telerik team
 answered on 12 Oct 2011
2 answers
147 views
Hi, I am using XmlDataSource with RadGrid. I need to use Column's Aggregate functionality to show sum (in footer) in one column. As datasource is XML, grid considers I have all string data even though I have numbers in the column. How can I use Sum Aggregate functionality with Xml data source?

code sample:
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/data.xml"  XPath="/root/Row"></asp:XmlDataSource>
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="XmlDataSource1" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="XmlDataSource1">
        <Columns>
          <telerik:GridBoundColumn DataField="col1" HeaderText="Product" SortExpression="col1" Aggregate="Count" ...

Thank you,
Amit Vaishnav
Amit
Top achievements
Rank 1
 answered on 12 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?