Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
129 views
 I use grid,always alert error    'e' is null or not an object. But the page work correctly.
O'Man
Top achievements
Rank 1
 answered on 12 Oct 2011
9 answers
187 views
I'm using the Telerik.Web.UI dll version v2011.2.712.35 and have a RadPanelBar that has 5 RadPanelItems.

3 of these items have an items collection in them which will be used to nvaigate around my site.
The RadPanelBar has the OnItemClicked handler configured so that the RadPanelItems can be acted upon once clicked.

The other 2 will be used as login and account detail panels. Only one will be visible depending on the state of the user (logged in or not).

The "Logged In" panel has an Items collection and makes use of the OnItemsClicked even handler mentioned above for its items.

The "Not Logged In" panel has a ContentTemplate configured in such a way as to show a small login form, consisting of 2 RadTextBoxes and a RadButton.

Now, heres the problem.

If the user is not logged in, the panel with the ContentTemplate is visible, and if the user then clicks anywhere on that panels header to expand it - other than on the arrow - the then panel doesnt expand. If the user clicks the arrow icon on the panel then it does expand.
But if the user clicks on any of the other visible RadPanelItems headerbars they do expand regardless of where on the headeer they click.

It seems that if you use the OnItemClicked handler to handle events in your RadPanelBar, and any of the RadPanelItems uses a ContentTemplate, then the expand/collapse features misbehave unless you specifically click the icon in the header.

Has anyone else experienced this, or does anyone know how to fix it?
Karl
Top achievements
Rank 1
 answered on 12 Oct 2011
2 answers
225 views
Hi
Following are the lines from my HTML page.  I want to control the position of popup window duing add/edit.
It should be center align to the screen/browser window.  How do set it ?
Thanh
Top achievements
Rank 1
 answered on 12 Oct 2011
5 answers
229 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
102 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
101 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
140 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
181 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
221 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
313 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
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?