Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
231 views

“I am not able to give line break to the node text. It is display in single line

But I need to display node text as two lines. Can you please tell me the solution to solve this issue “

sathish venkat
Top achievements
Rank 2
 answered on 04 Mar 2010
1 answer
150 views
Hi Team,

In RadTabStrip, I want a radGrid to be populated dynamically, ie., based on my tabclick the Grid needs to be populated with data.
If I click Tab1, the grid should populate with names starting with 'A', for Tab2_click, grid with names starting with 'B', for Tab3_click, grid with names starting with 'C' and so on...But I can't place multiple grids.I sit possible using RadTabstrip?

Please reply me with sample code....



-Liji Gilesh
Yana
Telerik team
 answered on 04 Mar 2010
19 answers
692 views

For some reason, Intellisense does not work when using Visual Studio 2008. I've been using your controls for some time now and I'm not doing anything different causing Intellisense not to work. It's been tested on different PC's with Visual Studio 2008 installed and none of them work.

It doesn't matter which way I register the Telerik DLL, Intellisense doesn't show up. For example:

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

or 

<

add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"></add>


Please advise! This is a huge roadblock for me. Thank you in advance.

sunil
Top achievements
Rank 1
 answered on 04 Mar 2010
1 answer
413 views
I am using a RadComboBox with EnableLoadOnDemand="true", and OnItemsRequested="brand_ItemsRequested" - I want to add a default item that appears at the top of the list, so I have added comboBrand.Items.Insert(0, new RadComboBoxItem("All Brands", "0")); 

protected void brand_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
        { 
            DataTable data = GetData(e.Text); 
 
            int itemOffset = e.NumberOfItems; 
            int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count); 
            e.EndOfItems = endOffset == data.Rows.Count; 
 
            for (int i = itemOffset; i < endOffset; i++) 
            { 
                comboBrand.Items.Add(new RadComboBoxItem(data.Rows[i]["Name"].ToString(), data.Rows[i]["Name"].ToString())); 
            } 
 
            comboBrand.Items.Insert(0, new RadComboBoxItem("All Brands", "0"));  
            e.Message = GetStatusMessage(endOffset, data.Rows.Count); 
        } 

<telerik:RadComboBox ID="comboBrand" AppendDataBoundItems="true"  LoadingMessage="Retrieving Brands..." AutoPostBack="true" runat="server" Width="250px" Height="150px" 
            EnableLoadOnDemand="true" ShowMoreResultsBox="true" ShowWhileLoading="false"  
            EnableVirtualScrolling="true" OnSelectedIndexChanged="comboBrand_SelectedIndexChanged" 
            OnItemsRequested="brand_ItemsRequested">  
        </telerik:RadComboBox> 


The trouble is, each time more results load and appends to the list, "All Brands" is also appended to the results that are returned, so it appears every 12th row. How can I insert just a single default value at the top of the list?

EDIT:

I tried wrapping some logic around the the  comboBrand.items.insert to check for the item before inserting the default item, but multiple items are still being added:

if (!comboBrand.Items.Contains(new RadComboBoxItem("All Brands", "All Brands"))) 
            { 
                comboBrand.Items.Insert(0, new RadComboBoxItem("All Brands", "All Brands")); 
            } 

Simon
Telerik team
 answered on 04 Mar 2010
9 answers
483 views
I have a RadComboBox control inside an EditTemplate of a GridView:

                                        <telerik:GridTemplateColumn HeaderText="Phone process" UniqueName="PhoneProcess" Display="false" EditFormColumnIndex="1">  
                                            <EditItemTemplate> 
                                                <div style="width:30ex;margin-right:1ex;">  
                                                    <telerik:RadComboBox runat="server" ID="ddlPhoneProcess"    
                                                        Width="100%" 
                                                        EmptyMessage="No phone processes found"     
                                                        AllowCustomText="false"                                                                  
                                                        DataValueField="Key" 
                                                        DataTextField="Value" 
                                                        AppendDataBoundItems="true" 
                                                        AutoPostBack="true" 
                                                        OnSelectedIndexChanged="ddlPhoneProcess_SelectedIndexChanged" 
                                                        SelectedValue='<%# Bind("PhoneProcessId")%>' 
                                                        > 
                                                        <Items> 
                                                            <telerik:RadComboBoxItem  runat="server" Text="-- Not set --" Value="-1" Selected="true" />                                                              
                                                        </Items> 
                                                    </telerik:RadComboBox> 
                                                </div> 
                                           </EditItemTemplate> 
                                        </telerik:GridTemplateColumn> 
 
In the code-behind I databind the combo like this:
            RadComboBox combo = editItem["PhoneProcess"].FindControl("ddlPhoneProcess") as RadComboBox;  
            Dictionary<int, string> phoneProcesses = DataManagers.Proxy.DmPhone.GetPhoneProcesses();  
            combo.DataSource = phoneProcesses;  
            combo.DataBind();  
 
This produces an InvalidOperationException"Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.". The error doesn't make much sense since the GridView is properly bound and other telerik controls, like 

RadNumericTextBox 

 

in other template columns bind with no problem.

If I databind the combo with DataSourceID="xxx" to a SqlDataSource, there is no error.

Could be that databinding via DataSource property somehow messes up the context of the databound control?

Simon
Telerik team
 answered on 04 Mar 2010
1 answer
97 views
Hello,

We have several toolbar items on our editor including the LinkManager and TableWizard.   After following the documentation and updating the DialogsCssFile for the editors via a skin file (Using Office2007 theme) we are missing the styling for the dialogs.

I've included a screenshot of the correct styled dialog from your hosted demo:  http://i.imgur.com/t4yve.jpg
And the missing styles from our hosted site:http://i.imgur.com/NTpZw.png

We are using a different ToolBar theme (Default theme) in our skin file, could this be messing up our dialogs?
If not, any idea what we're missing as far as styles go?  

Thanks a bunch!
Allen
Dobromir
Telerik team
 answered on 04 Mar 2010
3 answers
125 views
Hi,
I'm using the load-on-demand WCF WebService according to the example for this in the documentation in
http://www.telerik.com/help/aspnet-ajax/treeview-wcf-load-on-demand.html 

and

ms-help://MS.VSCC.v90/MS.VSIPCC.v90/telerik.aspnetajax.radcontrols.2009.Q2/telerik.aspnetajax.radtreeview.2009.Q2/data-binding-load-on-demand-webservice.html

It works fine, except for the fact that, no matter how many new levels I add to the tree, the RadTreeNodeData parentNode paramenter in the WCF Signature (again, just as it is in the example):
    [OperationContract]
    public RadTreeNodeData[] GetData(RadTreeNodeData parentNode, IDictionary<string, object> context)
    {...}

is always NULL.

What to I need to do to get this parameter set?

Thanks!
Richard
Dimitar Milushev
Telerik team
 answered on 04 Mar 2010
1 answer
109 views

Really simple question.  im working on the layout and design of my grid.  how do i fill my ascx radgrid with dummy data?  not looking to databind it to anything, just want to put 1 or 2 rows of dummy data in the columns collection.

<telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" AutoGenerateColumns="False" 
    PageSize="5" AllowSorting="True" AllowPaging="True" GridLines="None" ShowStatusBar="True" 
    > 
    <PagerStyle Mode="NumericPages"></PagerStyle> 
    <MasterTableView Width="100%" HierarchyLoadMode="ServerBind" DataKeyNames="ID"   
    HierarchyDefaultExpanded="True" 
    PageSize="5">  
        <DetailTables> 
            <telerik:GridTableView runat="server" DataKeyNames="ID" Caption="Document Versions" 
                PageSize="5">  
                <ParentTableRelation> 
                    <telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="ID" /> 
                </ParentTableRelation> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ID" Visible="false" UniqueName="ID">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DocumentNumber" HeaderText="Document Number" 
                        UniqueName="DocumentNumber">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Version" HeaderText="Document Version" UniqueName="Version">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </telerik:GridTableView> 
            <telerik:GridTableView runat="server" DataKeyNames="ID" Caption="Document Title" 
                PageSize="5">  
                <ParentTableRelation> 
                    <telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="ID" /> 
                </ParentTableRelation> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ID" Visible="false" UniqueName="ID">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Title" UniqueName="Document Title">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </telerik:GridTableView> 
        </DetailTables> 
        <ExpandCollapseColumn Visible="True">  
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" UniqueName="ID" Visible="False" /> 
            <telerik:GridBoundColumn DataField="documentTitle" HeaderText="Document Title" UniqueName="documentTitle" 
                SortExpression="documentTitle" /> 
            <telerik:GridBoundColumn DataField="Primary POC" HeaderText="Primary POC" UniqueName="Primary POC" 
                ReadOnly="True" SortExpression="Primary POC" /> 
        </Columns> 
    </MasterTableView> 
    <FilterMenu EnableTheming="True">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </FilterMenu> 
</telerik:RadGrid> 

J
Schlurk
Top achievements
Rank 2
 answered on 04 Mar 2010
1 answer
325 views
I'd like to get the ASP.NET ID of a control that IS A RadTab.  RadTab inherits from ControlItem, which seems to cover up the ASP.NET ID with its own property.

 

// Summary:

 

 

// The ID property is reserved for internal use. Please use the Telerik.Web.UI.ControlItem.Value

 

 

// property or use the Telerik.Web.UI.Attributes collection if you need to assign

 

 

// custom data to the item.

Is there a way to get or set the ID, so that I can locate a specific tab on the server side polymorphically?

 

Yana
Telerik team
 answered on 04 Mar 2010
1 answer
328 views
I have a GridTemplateColumn inside a RadGrid but not sure how to access the controls.

<telerik:GridTemplateColumn UniqueName="TemplateColumn1">  
    <ItemTemplate> 
        <div> 
            <table> 
                <tr> 
                    <td colspan="2">  
                        <telerik:RadComboBox ID="rdDDB" runat="server" 
                         onload="rdDDB_Load">  
                        </telerik:RadComboBox>                                                  
                    </td> 
                </tr> 
                <tr> 
                    <td>Action 1</td> 
                    <td>Action 2</td> 
                </tr> 
            </table> 
        </div> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

I know that to probably access that particular row I should look it during the RadGrid ItemDataBound event
protected void PManagerReqStmtGrid_ItemDataBound(object sender, GridItemEventArgs e)  
{  
    RadComboBox rd = RadGrid.MasterTableView.Columns.FindByUniqueName("TemplateColumn1");  
} 

Any suggestions?

J
robertw102
Top achievements
Rank 1
 answered on 04 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?