Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views

I have several RadTreeViews, some whose nodes are static and some whose nodes use TreeNodeExpandNode.WebService to load the nodes on demand. The number of TreeViews is dynamic, and thus I need to build them from scratch in codebehind (RadTreeview tree1 = new RadTreeview()).

My page has a Submit button which causes a postback. Since my trees are dynamic, I am forced to rebuild them for each postback.

The problem is with the node state. On the first postback and subsequent tree rebuilds, the tree is displayed as the user left it (expanded nodes, checked nodes, and all). But if the user submits again, causing a second postback, the tree is collapsed and, if the nodes selected are from a subnode of one using the web service, those checked are not remembered.

Is there something I can do to (a) prevent the trees from collapsing and (b) rememeber all nodes that were checked prior to the postback, no matter how many subsequent postbacks occur?



Tim
Top achievements
Rank 1
 answered on 12 Oct 2011
0 answers
51 views
Never mind, it is an SQLite issue.
Stanley
Top achievements
Rank 1
 asked on 12 Oct 2011
1 answer
176 views
We are in the process of updating an older website to use Master Pages along with Telerik controls. In addition to updating the CSS we have also created a Skin file, in which we have set the desired look/feel of the Telerik controls (for example):

<telerik:RadDatePicker runat="server" Skin="Windows7" /><br>
<telerik:RadAjaxLoadingPanel runat="server" Skin="Windows7" /><br>
<telerik:RadGrid runat="server" Skin="Windows7"><br>
    <PagerStyle PagerTextFormat="{4} {5} Matches Found &nbsp;&nbsp;&nbsp; • &nbsp;&nbsp;&nbsp; Displaying Items {2} to {3} on Page {0} of {1}." /><br>
</telerik:RadGrid><br>
<telerik:RadComboBox runat="server" Skin="Windows7" />

This Skin file has been working perfect in our remodel until we created a Custom User Control (.ascx) with some Telerik controls (RADGrid and Loading Panel). These controls do not get the Skin applied.  If I manually add the Skin attribute in the Source of the .ascx page itself, the controls then look as desired.... but it should be the site-wide Skin file that controls this.

What could possibly be causing this problem?

-- Andrew
Tsvetoslav
Telerik team
 answered on 12 Oct 2011
2 answers
111 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
162 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
201 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
202 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
83 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
95 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
112 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?