Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
267 views
I have a DataTable that has the correct parent-child relation and fills my RadTreeView correctly.  But my question is this, after running my RadTreeView.DataBind method I will run this loop:
foreach (RadTreeNode node in radtree.Nodes)  
{  
     int intTest = node.Level;  
     node.Expanded = true;  
} 
and I've noticed that this foreach only has a count of 1 for radtree.Nodes.  I'm a little confused as to why I can't seem to see nodes greater than Level 0 when the DataTable goes to at least a Level 4.

Is there someway to set Node.Expanded to true for nodes at Level 0-4?

Jason
neily
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
164 views
Hello,

I am attempting to add a footertemplate to my radcombobox to displaying count for the number of rows found.  The problem is, the value of RadComboBox.Items.Count is not displaying in the <asp:Literal> tag until I click on the drop down a second time.  I can see that RadComboBox.Items.Count does have a value but it is not displaying initially.  Does anyone have any ideas?

Rick

<

 

telerik:RadCombobox ID="cboQuestionListTier1" Runat="server" Width="700px"

 

 

BorderColor="LightGray" EnableLoadOnDemand="true" OnItemDataBound="cboQuestionListTier1_ItemDataBound"

 

 

ForeColor="Black" MarkFirstMatch="true" DropDownWidth="750px"

 

 

Height="350px" BackColor="White" BorderStyle="Solid" BorderWidth="1px" AutoPostBack="true"

 

 

OnItemsRequested="cboQuestionListTier1_ItemsRequested"

 

 

HighlightTemplatedItems="true"

 

 

OnSelectedIndexChanged="cboQuestionListTier1_SelectedIndexChanged" Skin="Web20">

 

 

 

<FooterTemplate>

 

Number of rows found:

<asp:Literal runat="server" ID="cboQuestionListTier1ItemsCount" />

 

 

</FooterTemplate>

 

 

</telerik:RadComboBox>

 

Protected

 

Sub cboQuestionListTier1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles cboQuestionListTier1.ItemDataBound

 

 

'set the Text and Value property of every item

 

 

 

'here you can set any other properties like Enabled, ToolTip, Visible, etc.

 

 

 

'set the initial footer label

 

 

 

CType(cboQuestionListTier1.Footer.FindControl("cboQuestionListTier1ItemsCount"), Literal).Text = Convert.ToString(cboQuestionListTier1.Items.Count)

 

 

 

 

End Sub

Paul
Telerik team
 answered on 01 Oct 2009
7 answers
91 views
Hi guys,

I would like to have a RadWindow with no Window Icon.  I successfully removed it via CSS, but the actual table cell still seems to render a width (inline style).  Here is what I saw in the source:

<table style="height: 410px;" cellpadding="0" cellspacing="0"> 
<tbody> 
<tr class="titlerow"> 
<td style="cursor: nw-resize;" class="corner topleft">&nbsp;</td> 
<td style="cursor: move;" class="titlebar"> 
<div style="cursor: n-resize;" class="topresize"><!-- / --></div> 
<table class="titlebarcontrols" align="left" cellpadding="0" cellspacing="0"> 
<tbody> 
<tr> 
<td style="width: 21px;"><a class="windowicon"></a></td>< 
td><em unselectable="on"> 

You can see that it's set to 21px.  Any way to get rid of this?  Unfortunately the particular td in question does not have its own CSS class.  Thanks!
Georgi Tunev
Telerik team
 answered on 01 Oct 2009
4 answers
140 views
Hi,
I got a little problem with the resizing of Grid columns. I defined my Grid like this:
<telerik:RadGrid ID="RadGrid1" runat="server" CssClass="radGrid" MasterTableView-NoMasterRecordsText="Keine Daten zum Anzeigen" 
                 BorderStyle="None" AutoGenerateColumns="false" EnableViewState="true" AllowSorting="True" Height="450" 
            AllowPaging="true" PageSize="40" Width="97%"> 
                <PagerStyle Visible="false" /> 
            <MasterTableView TableLayout="Fixed" /> 
            <ClientSettings> 
                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" /> 
                <ClientEvents OnScroll="HandleScrolling" /> 
                <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="false" /> 
            </ClientSettings> 
            </telerik:RadGrid> 
All my columns are defined programatically like this:
GridTemplateColumn tf = new GridTemplateColumn() 
            { 
                HeaderTemplate = new EditTemplate(Resources.ToolbarRes.Edit_text, DataControlRowType.Header, editButton_Click), 
                ItemTemplate = new EditTemplate(Resources.ToolbarRes.Edit_text, DataControlRowType.DataRow, editButton_Click) 
            }; 
            tf.HeaderStyle.Width = 90; 
            tf.Resizable = false; 
            this.RadGrid1.Columns.Add(tf); 

So I am able to resize my columns. But if I resize them so much that the grid's former size is bigger than the actual one I still see some kind of rest of the header (some coloured stuff without font).
Moreover it seems to me that the ClipCellContentOnResize property does not have any effect on the behaviour. I still can resize the columns as narrow as I wish if I set it to false.
Another thing I realized is that the columns which are empty are sortable but all others are not. Is there any reason for this?
I would be glad about any help.

Best regards
Ferdinand
Ferdinand
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
180 views
I have a UserControl with a RadWindowManager Control and a Repeater (both are inside an asp:UpdatePanel).  Embedded inside the Repeater is a DataGrid that has a column of LinkButtons.  When clicked, the LinkButtons call a javascript function to open up RadWindow and display some additional data.

The LinkButtons are correctly executing the JavaScript.  The problem is that the RadWiindow that displays is not getting its default properties from the RadWindowManager.  I also cannot apply them within the js function.

My RadWindowManager is defined like:
<telerik:RadWindowManager ID="radWinManager" DestroyOnClose="false" Modal="false" Width="600px" Height="600px" AutoSize="true" runat="server" Behaviors="Close,Move"  Skin="Sunset"> 
    <Windows> 
    </Windows>                              
</telerik:RadWindowManager>  

My javascript function is as follows:

function ViewBillingHistory(userid, taskid) 
    { 
         var url = 'someurl.aspx'; 
          var oManager = GetRadWindowManager(); 
          if(oManager != null) 
          { 
             
            var win = radopen(url, “radWinBilling”); 
             
          } 
                   
    } 


The Window that results does not have the skin or "behavior" items I set, nor does it open to the size specified (even with AutoSize turned off). 

I've also tried setting the window's properties via the javaScript function, but they don't seem to work there either. 

Ex:
function ViewBillingHistory(userid, taskid) 
    { 
         var url = 'someurl.aspx'; 
          var oManager = GetRadWindowManager(); 
          if(oManager != null) 
          { 
             
            var win = radopen(url, null); 
            win.setSize(600, 600); 
          } 
                   
    } 

How do I get the formatting of the WindowManager to apply to child Windows? 

Georgi Tunev
Telerik team
 answered on 01 Oct 2009
2 answers
93 views
Hi,

I'm currently using a RadNumericTextBox to let users enter a number. I don't want any limitation on the number of decimals though, be it at input time or at display time.

I'm finding that right now the NumberFormat-DecimalDigits will limit me to a certain number of decimals (defaulted to 2).

Is it possible to remove that limitation? E.g. be able to enter any number, for example 1 or 1.456 or 8.93940 and keep it as is?
Nicolas
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
82 views
It seems that by default the editor works by formatting text only when it is highlited. I want to be able to format the entire text that is typed into the editor whenever a user makes a format selection,ie. when clicking bold or italics. I want the format to take place over the entire text not just what has been highlited. Is there not a mode that I can set for this control to behave this way? Thanks.
jay
Rumen
Telerik team
 answered on 01 Oct 2009
2 answers
112 views
Hey , I'm looping through a heairarchichal rad grid with 1 lkinkbutton in each section
I'm checking if the length is over a ceratin number and if it is, shorten it and add a tooltip....fairly standard stuff

 Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound 
 
        If e.Item.ItemType = GridItemType.Item Then 
 
            Dim linkbutton1 As LinkButton = e.Item.FindControl("linkbutton1") 
            If linkbutton1 Is Nothing Then 
            Else 
 
                If linkbutton1.Text.Length > 30 Then 
 
                    linkbutton1linkbutton1.ToolTip = linkbutton1.Text 
                    linkbutton1linkbutton1.Text = linkbutton1.Text.Substring(0, 40) + "..." 
                End If 
            End If 
 
            Dim linkbutton2 As LinkButton = e.Item.FindControl("linkbutton2") 
            If linkbutton2 Is Nothing Then 
            Else 
 
                If linkbutton2.Text.Length > 30 Then 
 
                    linkbutton2linkbutton2.ToolTip = linkbutton2.Text 
                    linkbutton2linkbutton2.Text = linkbutton2.Text.Substring(0, 40) + "..." 
                End If 
            End If 
 
            Dim linkbutton3 As LinkButton = e.Item.FindControl("linkbutton3") 
            If linkbutton3 Is Nothing Then 
            Else 
 
                If linkbutton3.Text.Length > 30 Then 
 
                    linkbutton3linkbutton3.ToolTip = linkbutton3.Text 
                    linkbutton3linkbutton3.Text = linkbutton3.Text.Substring(0, 40) + "..." 
                End If 
            End If 
 
        End If 
 
    End Sub 

for some reason , the code only hits every 2nd row in each of the grids !

any ideas?

Ciaran
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
154 views
Hi,
I want to create my product for x64  machine only. 
Could you tell me if you have x64 build setup for yours products.
Sebastian
Telerik team
 answered on 01 Oct 2009
1 answer
164 views
Hello,

I know how to use image with items, but I need to keep that image displayed when user selects the item.

Is that possible ?
Shinu
Top achievements
Rank 2
 answered on 01 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?