Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
97 views
Hi,

I have an asp.net application which uses the web part framework to allow users to customise their interface.  One of the features of this is a catalog of available web parts, one is provided by default, but it can be overriden if you wish to change the layout, etc.

override void RenderCatalogPart(HtmlTextWriter writer, CatalogPart catalogPart)

That, as far as I can tell, is the only way to do it.  At the moment I'm creating a panel with all the necessary elements in it, and using the panel's RenderControl method to output it to the htmlwriter.  So far, so good.  The problem occurs when I try to add a radtooltip to my panel, using the same RenderControl method, and I get the following runtime error:

Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

I can see why this might be a problem, since the tooltip presumably uses javascript and has to write it to the page - but the RenderCatalogPart method has no knowledge of which page it's going to be outputting to.  Is there any way around this or am I going to have to come up with an alternative?

Thanks,
Mathew
Mathew
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
39 views

 

My web site pages are centered in the browser. When the grid has data width that is larger than the grid width
and I shrink the browsers width, the grid and the other controls, do not go all the way to the left, there's a blank space that will
change width when the data width in the grid changes in the space on the left side of the browser will shrinks or grow. How do I get the grid and the control to go all the way to the left not matter what the data width is.

John
Andrey
Telerik team
 answered on 20 Jan 2012
4 answers
103 views
Hi there, I'm having trouble getting Tri-State checkboxes to work as I assume they should. My TreeView is data bound on the server side to a collection of objects with the following code:
tree.DataTextField = "Name"
tree.DataValueField = "NodeID"
tree.DataFieldID = "NodeID"
tree.DataFieldParentID = "ParentNodeID"
tree.DataSource = nodes
tree.DataBind()

The TreeView itself is declared thusly:
<tel:RadTreeView runat="server" ID="trvHierarchy"  CheckBoxes="true" CheckChildNodes="false" OnNodeDataBound="TreeNodeDataBound" OnNodeCheck="HierarchyTreeNodeCheck"></tel:RadTreeView>
You'll notice that Tri-State Checkboxes is absent from that declaration, I'll get to that shortly...
The NodeDataBound event is where I am setting the checked property of various nodes, the decision of wheather to check a node or not is based on other data that  is contained in a member variable of the UserControl that this Tree lives in.
Protected Sub TreeNodeDataBound(ByVal sender As Object, ByVal args As RadTreeNodeEventArgs)
       If Not args.Node Is Nothing Then
           Dim check As Boolean = False
           For Each assignedNode As KeyValuePair(Of Integer, String) In _assignments
               If assignedNode.Key = CType(args.Node.Value, Integer) Then
                   check = True               
               End If
           Next
           If check Then
               args.Node.Checked = True
           Else
               args.Node.Checked = False
           End If
 
 
       End If
   End Sub
Now, when I leave out the Tri-State Checkboxes from the declaration, the code behaves exactly as I would expect, the nodes that are supposed to be checked are and the ones that are not aren't. What I would prefer however,  is to enable the tri-state behavior with the desired result being that the parent nodes of any checked noes will show as "indeterminate" if not all the children are checked and checked if they are so my users will have a cue to where the checked noes are without expanding the entire tree, My problem is that when I set Tri-state checkboes to true, the code executes correctly and sets the checked property of the desired nodes, but in the browser absolutely no nodes are checked or indeterminate. 

I'm using version 2010.1.309.20 of the Telerik.Web.UI.dll

Thank You,

Al Irvine
Plamen
Telerik team
 answered on 20 Jan 2012
1 answer
221 views
I am having a RadTreeView that is binded to a LINQ datasource. Now my treeview gets loaded with all values I want. But I want to show all these items to be appearing under a root node: "ROOT" that I can set programatically or statically.

How to do this?

Also if I have a column called "tooltip" in my LINQ datasource whose value I want to show as a tool-tip to the nodes of the tree-view than how to achieve this?

Plamen
Telerik team
 answered on 20 Jan 2012
1 answer
93 views
Ola estou com o seguinte problema ao instalar o asp.net ajax ele deixa por padrão um tema  mais quando clico no drop dow para mudar o tema ele não carrega os temas  do radgrid.

Pode me ajudar ?
Pheonix
Top achievements
Rank 1
 answered on 20 Jan 2012
3 answers
222 views
HI,
I have a  RadGrid , the RadGrid has  scrolling enabled and UseStaticHeaders=True.
When UseStaticHeaders is True, the header row is still visible, even when the grid is scrolled. (perfect)

But  When I generated ItemCommand "initinsert"  with GridEditMode.EditForms  don't works (image 1) [problem]
       When I generated ItemCommand "edit"  with GridEditMode.EditForms  it works (image 2)
grdANAAGG.MasterTableView.EditMode = GridEditMode.EditForms;
grdANAAGG.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
grdANAAGG.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = true;
grdANAAGG.MasterTableView.PagerStyle.Mode = GridPagerMode.NumericPages;
grdANAAGG.ClientSettings.Scrolling.AllowScroll = true;
grdANAAGG.ClientSettings.Scrolling.EnableVirtualScrollPaging = true;
grdANAAGG.ClientSettings.Scrolling.UseStaticHeaders = true;
grdANAAGG.ClientSettings.Scrolling.SaveScrollPosition = true;



thank you very much
P.S.
without  "ClientSettings.Scrolling.UseStaticHeaders = true;" always works.
Lasly
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
134 views
Hi,

In the version notes of RadControls for ASP.NET AJAX 2011.3 1115 it states:

Breaking Changes

  • Fixed: RadGrid column's UniqueName property should throw an exception if its value contains spaces

 

Indeed this is 100% correct, it has broken my project. Not only do I have to revise the uniquename's in the aspx pages but also the usage in the code behind. To make things worse, if a uniquename is NOT specified, the datafield is used. If my datafield in the DB happens to have spaces, Telerik will autogenerate a uniquename WITH spaces, only to report an exception afterwards...

What happened to backwards compatibility?
Veli
Telerik team
 answered on 20 Jan 2012
3 answers
217 views
The grid renders as a <div>, is there something I can set so that it does not generate a line break after itself?

   I would like to have,
[Grid][Other Content]
   not
[Grid]
[Other Content]
Marbry
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
35 views
We're using an older version of the web components right now (upgrade planned for the future but may not be possible right now).  Results in the grid control are not displayed when UseStaticHeaders is set to true and when viewed in IE9.  Is this something that has been fixed in recent builds?  We may not be able to upgrade so my question is:  is it possible to retain the ability to have a fixed header on the grid (when scrolling) without the built in UseStaticHeader (so, setting it to false in oder to make the grid visible).  Would it be possible to achieve this using HTML/CSS coupled with the grid?
Andrey
Telerik team
 answered on 20 Jan 2012
3 answers
117 views
We're in the process of evaluating the ASP.NET AJAX package.  I downloaded the trial version (Q3 2011), and have a question regarding where some of the AJAX controls go.

I'm using the build-in Web Forms app in Visual Studio 2010.  In the Master page, I have a regular Menu control which I load via code.  I understand I need to put the RadAJAXManger & RadAJAXLoadingPanel in the Master page.

Question.  Do I replace the ToolkitScriptManager with RadAJAXScriptManager?

When the user clicks one of the Menu items in the Master page, I raise a "menu clicked" event.  The content page consists of several User Controls.  In that content page, I subscribe to that "menu clicked" event.  When triggered, that event calls a SQL stored procedure to retrieve the data, then passes that data to a User Control which then populates a RadGrid via DataSource/DataBind.  I'm using a lot of User Controls because each can be used more than once on several different pages.

Question.  Where should I place the RadAJAXManagerProxy...in the content page...or within the User Control itself?

In most of your examples, the control that triggers the AJAX request and the control that gets updated are in the same page.  Is there a link to some sample code that might help in the situation I've described above?  Thanks for your help.
Maria Ilieva
Telerik team
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?