Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
144 views
Hi,

I am binding radtreeview dynamically from an xml file below is the code for that, I want to bind images dynamically to radtree using css file. I did enambledembededskins = false and give the skin = "x.css"

here is my problem.

1. If i am giving in html file when the radtreeview is in static binding in .aspx code it is working fine.
but when  i am loading the treeview from the xm lfile it is giving problem when I am loading the images.

 XmlDocument xDoc = new XmlDocument();
            string path = Server.MapPath("//XMLS/NewPolicyLinks.xml");
            xDoc.Load(path);
            XmlNodeList lno = xDoc.GetElementsByTagName("lno");
            rdTrNewBusiness.Nodes.Clear();
            for (int i = 0; i <= lno.Count-1; i++)
            {
                XmlNodeList entityEle = xDoc.GetElementsByTagName("Links");
                if (entityEle[i].HasChildNodes)
                {
                    XmlNode xmlNode = entityEle[i].FirstChild;
                    xmlNode = xmlNode.NextSibling;
                    rdTrNewBusiness.Nodes.Add(new RadTreeNode(xmlNode.InnerText));
                    RadTreeNode tNode1 = new RadTreeNode();

                    tNode1 = rdTrNewBusiness.Nodes[i];
                    if (rdTrNewBusiness.Nodes[i].Text == "ENTITIES")
                    {
                        tNode1.ImageUrl = "";


                    }
                }
             }


here i want to include css file dynamically to radtreeview i am using this code


i am writing this code in page load

HtmlLink cssHtmlLink = new HtmlLink();
                cssHtmlLink.Href = "~/css/Expand.css";
                cssHtmlLink.Attributes.Add("rel", "Stylesheet");
                cssHtmlLink.Attributes.Add("type", "text/css");
                cssHtmlLink.Attributes.Add("media", "all");
                this.Page.Header.Controls.Add(cssHtmlLink);
                
          


                rdTrNewBusiness.Nodes.Clear();
                
                rdTrNewBusiness.Skin = "Expand";
                rdTrNewBusiness.CssClass = "Expand";
                
                rdTrNewBusiness.EnableEmbeddedSkins = false;
                createtreenodes();


when I creating a node the image in the css file is not loading

could any one help me in binding the radtreeview using an xml file and i want to display images for +/- when expand and collapse.

subrahmanyam kameswara
Top achievements
Rank 1
 asked on 10 May 2010
9 answers
267 views
Hello,
I found a similar thread but without instructive answer. We use latest version Q1 2009.

The right border of the tooltip (via the tooltipmanager) is hidden behind content. It seems that the border is displaced by 1 or 2 pixels. We show the tooltip in a RadGrid for which we implemented a custom skin. The problem can be reproduced with any skin for the tooltipmanager.

By looking at the rendered HTML code and style inheritence I was not able to find a fix. However I found this:
- The control renders the "rtWrapper"-table with a width of 450px
- The rtWrapperContent-td contains a div with width of 448px
- However, the rtWrapperLeft and Right classes have a computed width of 3px
- If I sum up left, content, right I get a total width of 454 pixels instead of 450px
- Somehow, the tooltip borders are rendered slightly "rounded" (hence the 3px and not 1px)

I had extactly the same problem with the FormDecorator. Here too, the right border got lost. This time not inside our custom RadGrid style. We dropped the form decorator for that reason.
Svetlina Anati
Telerik team
 answered on 10 May 2010
2 answers
123 views
I am attempting to remove all of the css that is beiung applied to the submit button of the RadUpload control. Regardless of what I do, webresource.asd overrides or sets any properties that are not specified in my css, therefore causing the button to not look like the other 'normal' buttons in my app. Basically I only want the following attributes set in the css for the button: padding-top,padding-bottom, margin-left. How can I achieve this?
Lenny_shp
Top achievements
Rank 2
 answered on 10 May 2010
1 answer
162 views
I noticed that in http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx you provide examples of Load on Demand Modes.  The question I have is around performance.  I see that for this application, you have included a web service as part of you project and that you are calling the service to fill the company (a service internal to the project).  There is also the Server-Side (Automatic) example that does exactly the same thing. 
I undrstand that the service can be used to call an actual external web service that can be used to fill company names.  I am not really sure if the internal service was created just as an example of how to call a service or whether there are any disctinct performance advantages/disadvantages to actually embed the service into you project as opposed to using the Server-Side (Automatic) technique.  I would appreciate if someone can clarifty this issue.

Thank You
Nathan Lacoff

Simon
Telerik team
 answered on 10 May 2010
5 answers
205 views
Hi all,

I am having the problem with the radCombobox where the ItemsRequested server side function is not firing after I type in more than a few letters.  I am trying to apply the fix by adding the fix from this post.
However, when I place the code in and run, I am getting the error "Microsoft JScript runtime error: 'Telerik' is undefined"

The declarations at the top of my page look like this:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        Telerik.Web.UI.RadComboBox.prototype.get_endOfItems = function() { return false; }; 
    </script>

Any suggestions on where I should enter this?  I tried placing it as well in my master page after the declaration of the script manager, but I go tthe same result.

Thanks,
Joshua Wise
Simon
Telerik team
 answered on 10 May 2010
5 answers
520 views
I have a RadTimePicker as one of the template columns in RadGrid. When i call the OnSelectedDateChanged event of the RadTimePicker it is not fired. I have set AutoPostBack also to true. But its not fired.

Any suggestions? Am i missing something?


Iana Tsolova
Telerik team
 answered on 10 May 2010
16 answers
201 views
hi

how cn i close the expanded panel bar when i click a menu w/ childmenu inside?
Webster Velasco
Top achievements
Rank 2
 answered on 10 May 2010
5 answers
107 views
Hi,

How can i retrieve data from the radgrid in a datatable-like object ?

like export to excel, keeping order and filter.
The final goal : i would like get all datas from the radgrid and set the datasource of a RadChart with it.

MasterTableView.DataSource is the original datasource (with no filter or sort), and iterate the items, only iterate the current page (RadGrid do not cache data, only keep current page...)

my dream is something like that :
myRadChart.DataSource = myRadGrid.MasterTableView.SortedAndFilteredDataSource;

any help will be appreciated :)
theaidan
Top achievements
Rank 1
 answered on 10 May 2010
3 answers
75 views
For example, I am dragging a row from a grid to a Scheduler control. The grid row contains about 30 columns. However, I only want to display 4 columns in the drag image that I will drop on the Scheduler control.

Thanks in advance,

Mike
Dimo
Telerik team
 answered on 10 May 2010
4 answers
217 views

After much pain and agony with RadPanelBar and user controls, I'm trying a different approach in using ItemTemplates for the Panel bar items with databinding to a custom object collection.  Now I'm having problems collapsing the different items.  I know that I cannot collapse root items and have tried to follow your examples on how structure my panel bar properly to allow for collapse/expand but I cannot find any documentation in regards to data-bound panel bars..  and I cannot spend anymore time on this one little part of my website.

Here's my markup, designed per http://www.telerik.com/help/aspnet-ajax/panelbar-troubleshooting-root-items-collapse.html:

                <telerik:RadPanelBar ID="radPanelBarAccountList" Runat="server" Height="200%"   
                Width="100%" Skin="Vista" AllowCollapseAllItems="True">  
                    <Items> 
                       <telerik:RadPanelItem runat="server" Text="Replace With Account Name">  
                           <Items> 
                               <telerik:RadPanelItem> 
                                   <ItemTemplate> 
                                       <UC1:AccountInfo ID="AccountInfo1" runat="server" AccountID='<%# DataBinder.Eval(Container.DataItem, "Id") %>' /> 
                                   </ItemTemplate> 
                               </telerik:RadPanelItem> 
                           </Items> 
                       </telerik:RadPanelItem> 
                   </Items> 
                </telerik:RadPanelBar> 

Here's my databinding in code behind:

        'Get collection of accounts  
        Dim accountCollection As Collection(Of FIAccount)  
        Dim accountsPresenter = New AccountsPresenter(New Guid(Session("SubscriberId").ToString), BasePage.GetCultureName.ToString())  
        accountCollection = accountsPresenter.GetAccounts("Actual"False, Account.AccountStatus.All)  
 
        'Bind panel bar  
        With radPanelBarAccountList  
            .DataSource = accountCollection.ToList  
            .DataTextField = "Name" 
            .DataValueField = "Id" 
            .DataBind()  
        End With 

The root items are displaying my account names, as expected, but I cannot expand them to see the user control inside.  I initially defined the markup without any nested items, with the user control defined as an ItemTemplate, and it rendered correclty but I couldn't collapse the items. 

This is kinda crazy!  I can't believe I have to nest so many panel bar items just to get this working properly but if that's how I have to do it, can you give me a code-behind sample on how to bind the individual items so I can display the text value on the child panel items, instead of the root panel item, so I can collapse/expand it?  Or is there a javascript function I can wire up on item click or something?  Like I said, I cannot spend much more time on this and I use this RadPanelBar all over my site!!!

Please Help!!!






Nikolay Tsenkov
Telerik team
 answered on 10 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?