Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
124 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
263 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
138 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
262 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
180 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
266 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
53 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
138 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
1 answer
104 views
My company is using your Outlook skin for the RadTab control, and several people have commented about a line that appears over the highlighted tab if the user zooms the browser in or out.  I checked on your demo page, and the same thing happens there (I'm attaching a png file with the problem area circled in red).  It happens in both IE and Safari, but not Firefox.  Several of our users have commented that it looks unprofessional.  Is there a fix available for this or is there any way to remedy this in the skin file?
Kate
Telerik team
 answered on 20 Jan 2012
1 answer
197 views
Hallo,

     I'm creating a grid at runtime, dynamically adding the columns; I'm also using InPlace edit mode. The grid is working in normal columns (for example, I set the GridNumericColumnEditor for my GridNumericColumn, and I can get the cell value using the GridEditManager GetColumnEditor method).

    Now I have a column which has templates for Item and EditItem. In the EditItemTemplate (which inherits IBindableTemplate) I put a DropDownList. I could set the right value to show in the dropdownlist when in edit mode, but I don't know how to get the cell value. I've tried with the GridEditManager, as for my normal columns, but the GridTemplateColumnEditor has no controls...

    Can you help me?

   Thank you
Richard
Top achievements
Rank 1
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?