Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
230 views
Hi,

I have a requirement where Root Category Node should always be in Expanded mode in RadTreeView control.
I have written the code to show it in expanded mode when RadTreeView is loaded first time but to give it a better meaning I also need to remove the Collapse Icon from the Root Node which is always present there.

I tried updating Node element from code behind but could not find any property like "Collapsable" which I can set to false for this particular node.

Please let me know if there is any attribute or customized code exists for this.

Thanks in advance
Gaurav Jain
Gaurav
Top achievements
Rank 1
 answered on 04 Mar 2011
1 answer
51 views
Hi

I am using Radasynchupload control to upload multiple files, it working fine,but how can i read those files

I am using it in sharepoint and the uploaded file get collected in temp folder in App_Data in encrypted form.

please help!!
Its urdent!!
Thanks! 
Kalina
Telerik team
 answered on 04 Mar 2011
1 answer
124 views
Hi,
I have a line graph and at each point on the line graph i would like marker to be displayed next to the value. Not only that but is it also possible to have a custom marker?


Thanks

Simon Allport
  <telerik:RadChart ID="rcDesignCapabilities1" runat="server" DefaultType="Line" 
            AutoLayout="True" AutoTextWrap="True" SeriesOrientation="Horizontal">
        <Appearance>
            <FillStyle MainColor="White">
            </FillStyle>
            <Border Visible="False" Color="white" />
        </Appearance>
        <Series>
<telerik:ChartSeries Name="Series 1" Type="Line">
  
  
    <Appearance>
        <FillStyle MainColor="150, 150, 150" SecondColor="194, 194, 194">
        </FillStyle>
        <Border Color="white" />
    </Appearance>
            </telerik:ChartSeries>
<telerik:ChartSeries Name="Series 2" Type="Line">
    <Appearance>
        <FillStyle MainColor="white" SecondColor="241, 241, 241">
        </FillStyle>
        <Border Color="white" />
    </Appearance>
            </telerik:ChartSeries>
</Series>
          
<Legend Visible="False">
<Appearance Dimensions-Margins="18%, 1%, 1px, 1px" Visible="False">
  
<Border Color="white"></Border>
</Appearance>
</Legend>
  
        <PlotArea>
              
            <XAxis VisibleValues="Positive" IsZeroBased="False" AutoScale="False" 
                AutoShrink="False" MaxItemsCount="7" MaxValue="5" MinValue="1" Step="1">
                <Appearance Color="Silver" MajorTick-Color="Silver">
                 
<MajorGridLines Color="Silver"></MajorGridLines>
  
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="270">
                    </Appearance>
                </AxisLabel>
                <Items>
                    <telerik:ChartAxisItem Value="1">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="2">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="3">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="4">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="5">
                    </telerik:ChartAxisItem>
                </Items>
            </XAxis>
            <YAxis MaxItemsCount="5" AxisMode="Extended" IsLogarithmic="True" 
                IsZeroBased="False" LogarithmBase="5" Visible="True" 
                VisibleValues="Positive">
                 
<Appearance Color="Silver" MajorTick-Color="Silver" MinorTick-Color="Silver">
<MajorGridLines Color="Silver"></MajorGridLines>
    <MinorGridLines Color="224, 224, 224" />
</Appearance>
  
                <AxisLabel>
                    <Appearance RotationAngle="0">
                    </Appearance>
                    <Marker Visible="True">
                    </Marker>
                </AxisLabel>
            </YAxis>
              
         
<YAxis2>
<AxisLabel>
<Appearance RotationAngle="0"></Appearance>
  
</AxisLabel>
</YAxis2>
  
<Appearance Dimensions-Margins="18%, 22%, 12%, 10%">
<FillStyle MainColor="White" FillType="Solid" SecondColor="White"></FillStyle>
  
<Border Color="white" Visible="False"></Border>
</Appearance>
              
         
        </PlotArea>
          
<ChartTitle Visible="False">
<Appearance Position-AlignedPosition="Top" Visible="False">
</Appearance>
  
<TextBlock>
<Appearance TextProperties-Color="Gray" Border-Visible="False">
<Border Visible="False"></Border>
    </Appearance>
</TextBlock>
</ChartTitle>
          
</telerik:RadChart>
public DataTable DesignCapabilities_1(DataTable ReportTable)
        {
            DataTable cap1dt = new DataTable();
            cap1dt.Columns.Add("ID");
            cap1dt.Columns.Add("Name");
            cap1dt.Columns.Add("Type");
            cap1dt.Columns.Add("Value");
  
  
  
            foreach (DataRow dr in ReportTable.Rows)
            {
  
  
                object[] row1 = new object[4];
                row1[0] = "2";
                row1[1] = "Sample Average";
                row1[2] = "Technical Design";
                row1[3] = Decimal.Round(Convert.ToDecimal(dr["AvgTechnicalDesignCapabilityScore"].ToString()),2);
  
                object[] row2 = new object[4];
                row1[0] = "2";
                row2[1] = "Your Company";
                row2[2] = "Technical Design";
                row2[3] = Decimal.Round(Convert.ToDecimal(dr["TechnicalDesignCapabilityScore"].ToString()),2);
  
  
                object[] row3 = new object[4];
                row3[0] = "2";
                row3[1] = "Sample Average";
                row3[2] = "User Focused";
                row3[3] = Decimal.Round(Convert.ToDecimal(dr["sumUserDesignCapabilityScore"].ToString()),2);
  
                object[] row4 = new object[4];
                row4[0] = "2";
                row4[1] = "Your Company";
                row4[2] = "User Focused";
                row4[3] = Decimal.Round(Convert.ToDecimal(dr["UserDesignCapabilityScore"].ToString()),2);
  
                object[] row5 = new object[4];
                row5[0] = "2";
                row5[1] = "Sample Average";
                row5[2] = "Promotional";
                row5[3] = Decimal.Round(Convert.ToDecimal(dr["AvgPromotionalIdentityCapabilityScore"].ToString()),2);
  
  
                object[] row6 = new object[4];
                row6[0] = "2";
                row6[1] = "Your Company";
                row6[2] = "Promotional";
                row6[3] = Decimal.Round(Convert.ToDecimal(dr["PromotionalIdentityCapabilityScore"].ToString()),2);
  
  
  
                object[] row7 = new object[4];
                row7[0] = "2";
                row7[1] = "Sample Average";
                row7[2] = "Strategic";
                row7[3] = Decimal.Round(Convert.ToDecimal(dr["AvgStrategicCapabilityScore"].ToString()),2);
  
                object[] row8 = new object[4];
                row8[0] = "2";
                row8[1] = "Your Company";
                row8[2] = "Strategic";
                row8[3] = Decimal.Round(Convert.ToDecimal(dr["StrategicCapabilityScore"].ToString()), 2);
  
  
                cap1dt.Rows.Add(row1);
                cap1dt.Rows.Add(row2);
                cap1dt.Rows.Add(row3);
                cap1dt.Rows.Add(row4);
                cap1dt.Rows.Add(row5);
                cap1dt.Rows.Add(row6);
                cap1dt.Rows.Add(row7);
                cap1dt.Rows.Add(row8);
  
            }
  
            return cap1dt;
  
        }
DesignCompassBusiness.report rep = new DesignCompassBusiness.report();
            
          radchart1.DataSource = rep.DesignCapabilities_1(dt);
          radchart1.DataGroupColumn = "Name";
          radchart1.PlotArea.XAxis.DataLabelsColumn = "Type";
          radchart1.PlotArea.YAxis.MaxValue = 0;
          radchart1.DataBind();
Vladimir Milev
Telerik team
 answered on 04 Mar 2011
1 answer
64 views
This Code Project: http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx

It works by itself when I run it, but I can't get it to work once I have converted it over to using a LinqDataSource on the page.  Do you guys have an example of this, but using modern constructs like LINQ and LinqDataSource?

Thanks!
Pavlina
Telerik team
 answered on 04 Mar 2011
1 answer
31 views
Hi,

We are using the Grid with a LinqDataSource and whenever we group by a field the group footer summaries are shown for a per page basis (when expanded), but when we collapse the group only the visible records are collapsed and not the entire group across pages, Can this functionality be achieved, if so How ?

Naresh Jois
Pavlina
Telerik team
 answered on 04 Mar 2011
1 answer
52 views
HI ,
I encounter this error  when i want my embeded radcombox box to show the previous selected value in RadGrid.
The error message is as below:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'DataValue'. where DataRule is the value i pass in.

Below is my coding:
   <ajax:RadGrid ID="rgdRptAct" runat="server" DataSourceID="sqlCust" AutoGenerateColumns="false" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowPaging="true" PageSize="3">
       <SortingSettings SortToolTip="<%$ Resources:Resource, Sort %>" />
       <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="true">
           <Selecting AllowRowSelect="True" />
       </ClientSettings>
       <MasterTableView EditMode="InPlace" DataKeyNames="Cno,CustPrefix,Action" CommandItemDisplay="Top" AllowSorting="True" NoMasterRecordsText="<%$ Resources:Resource, Search_Display %>">  
           <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{2}{3}{4}Page {0} of {1}" PageSizeLabelText="" AlwaysVisible="true" NextPageToolTip="<%$ Resources:Resource, NextPage %>"  PrevPageToolTip="<%$ Resources:Resource, PreviousPage %>" LastPageToolTip="<%$ Resources:Resource, LastPage %>" FirstPageToolTip="<%$ Resources:Resource, FirstPage %>"/>
 <Columns>
              <ajax:GridTemplateColumn UniqueName="Action" HeaderText="* Action" SortExpression="LMUser" HeaderStyle-Width="140px" ItemStyle-VerticalAlign="Top">
                   <ItemTemplate>
                       <%#DataBinder.Eval(Container.DataItem, "Action")%> 
                   </ItemTemplate>
                   <EditItemTemplate>
                           <ajax:RadComboBox ID="DdlAction" runat="server" AutoPostBack="False" AllowCustomText="False"  DataSourceID="sqlDllAction"
                           AppendDataBoundItems="true"
                           DataTextField="DataValue"
                           DataValueField="DataValue" 
                           SelectedValue='<%# DataBinder.Eval(Container.DataItem, "DataValue") %>'>
                         
                           </ajax:RadComboBox>
                    
                   </EditItemTemplate>
               </ajax:GridTemplateColumn>
 
</Columns>
Can someone please advice what have i miss out here.
My coding is working fine without 
SelectedValue='<%# DataBinder.Eval(Container.DataItem, "DataValue") %>'>

The error come out when i have this piece of code.

Help Please!!

Shinu
Top achievements
Rank 2
 answered on 04 Mar 2011
1 answer
105 views
Hi,

Spent ages trying to work out why my RadAjaxLoadingPanel isn't displaying for ajaxified FormViews. Turns out I had the RenderOuterTable property set to "false" on each of the FormViews.

Also notice you get the same problem if in .NET2, you use the CSS Friendly control adapters with FormViews.

Looks like unless you allow the Formview to render as a table, then the LoadingPanel doesn't display.

Has anyone found a workaround for this, either in code or CSS?

Cheers
Pavlina
Telerik team
 answered on 04 Mar 2011
7 answers
331 views
Hi all.
I am trying to create my own NewsDataProvider for read my news.
Today I have two origins. I think I have to create two providers. But, how?
Where I found some sample? Or detailed documentantion?

Thanks a lot.

-- EDITED

This is my current code. It is in an separated assembly.

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration.Provider;
using System.IO;
using System.Xml;
using Telerik.Web.UI;

namespace XP.Portal.CMS.Providers
{
   
    public class ReutersDataProvider : Telerik.Sitefinity.Modules.News.NewsDataProvider, Telerik.Sitefinity.Data.IOpenAccessDataProvider
    {
        private static System.Reflection.Assembly[] peristentAssemblies;
        private string[] supportedPermissionSets = new string[] { "Products", "Comments" };

        public ReutersDataProvider()
        {
        }

        protected override void Initialize(string providerName, NameValueCollection config, Type managerType)
        {
            if (config == null)
                throw new ArgumentNullException("config");
            if (string.IsNullOrEmpty(providerName))
                providerName = "ReutersDataProvider";

            base.Initialize(providerName, config, managerType);
        }

        protected override void Initialize(string providerName, NameValueCollection config, Type managerType, bool initializeDecorator)
        {
            if (config == null)
                throw new ArgumentNullException("config");
            if (string.IsNullOrEmpty(providerName))
                providerName = "ReutersDataProvider";
            
            initializeDecorator = false;
            base.Initialize(providerName, config, managerType, initializeDecorator);
        }

        /// <summary>
        /// Gets a unique key for each data provider base.
        /// </summary>
        /// <value></value>
        public override string RootKey
        {
            get { return "ReutersDataProvider"; }
        }

        /// <summary>
        /// Gets the permission sets relevant to this specific secured object.
        /// To be overridden by relevant providers (which involve security roots)
        /// </summary>
        /// <value>The supported permission sets.</value>
        public override string[] SupportedPermissionSets
        {
            get
            {
                return this.supportedPermissionSets;
            }

            set
            {
                this.supportedPermissionSets = value;
            }
        }


        public override Telerik.Sitefinity.News.Model.NewsItem CreateNewsItem(Guid id)
        {
            throw new NotImplementedException("Lucas 1");
        }

        public override Telerik.Sitefinity.News.Model.NewsItem CreateNewsItem()
        {
            throw new NotImplementedException("Lucas 2");
        }

        public override void Delete(Telerik.Sitefinity.News.Model.NewsItem newsItemToDelete)
        {
            throw new NotImplementedException("Lucas 3");
        }

        public override Telerik.Sitefinity.News.Model.NewsItem GetNewsItem(Guid id)
        {
            throw new NotImplementedException("Lucas 4");
        }

        public override System.Linq.IQueryable<Telerik.Sitefinity.News.Model.NewsItem> GetNewsItems()
        {
            throw new NotImplementedException("Lucas 5");
        }



        public override Telerik.Sitefinity.Security.Model.ISecuredObject GetSecurityRoot()
        {
            return base.GetSecurityRoot();
        }

        public override Telerik.Sitefinity.Security.Model.ISecuredObject GetSecurityRoot(bool create)
        {
            return base.GetSecurityRoot(create);
        }

        #region IOpenAccessDataProvider

        /// <summary>
        /// Gets or sets the database instance for this provider.
        /// </summary>
        /// <value>The database.</value>
        public Telerik.OpenAccess.Database Database
        {
            get;
            set;
        }

        /// <summary>
        /// Gets a value indicating whether to use implicit transactions.
        /// The recommended value for this property is true.
        /// </summary>
        /// <value>
        /// <c>true</c> if [use implicit transactions]; otherwise, <c>false</c>.
        /// </value>
        public bool UseImplicitTransactions
        {
            get { return true; }
        }

        /// <summary>
        /// The list of all assemblies with persistent classes inside.
        /// Only this list of assemblies will be used, it must be complete!
        /// </summary>
        /// <returns>The persistent assemblies.</returns>
        /// <value>The persistent assemblies.</value>
        public System.Reflection.Assembly[] GetPersistentAssemblies()
        {
            return peristentAssemblies;
        }

        #endregion
    }
}


The above code generate an error when the system try to execute the GetSecurityRoot method.
What I need to do?

Lucas Massena
XP Investimentos CCTVM S/A
Ivan Dimitrov
Telerik team
 answered on 04 Mar 2011
1 answer
147 views
Hi,

I have RadListview control in my aspx page its working everything correct, In ItemTemplate i have a button event what i need when
click that button i need to open pop up window.(which is already is that different page)

currently i am using Jquery thickbox which i have some alignment issues in that popup. so i want to change my code using telerik control please let me know what code  i have use for that one...


kiran
Princy
Top achievements
Rank 2
 answered on 04 Mar 2011
3 answers
148 views
Hi ...

I have set column formatstring ="0####0.00".

When my Value of column is Null or blank then column value should be 0.00 but it dispaly blank. can you please suggest me soluction for same.
Princy
Top achievements
Rank 2
 answered on 04 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?