Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
169 views

How to set the different color for FooterAggregateFormatString show value

and one more doubt how to set different color for every level

reply as soon as possible .

Thanks Advance,
Mohamed.
Princy
Top achievements
Rank 2
 answered on 20 Dec 2012
9 answers
106 views
Hi,
We currently use a custom skin for our Grids and Menu's however, i would like to use the "Metro" Skin for the Grid Filter menu's but it seems the attributes provided do not work.

<telerik:RadGrid ID="rgCampaignSelect" runat="server" AllowPaging="True" PageSize="10" AllowSorting="true" AllowFilteringByColumn="true" EnableEmbeddedSkins="False" Skin="GatorLayout" FilterMenu-Skin="Metro" FilterMenu-EnableEmbeddedSkins="True">

The above doesnt set the Filter Menu Items skin to Metro, it stays as GatorLayout.  I then tell it to use Embedded Skins and it errors saying GatorLayout is not an embedded skin.

How can i fix this?

Thanks,
Michael
Eyup
Telerik team
 answered on 20 Dec 2012
1 answer
57 views
I know that there is an option to set first day of the week,
but is there an option to set the workweek to be different from monday-friday?
For example saturday-wednesday workweek as in some arabic countries.
Plamen
Telerik team
 answered on 20 Dec 2012
1 answer
106 views
2012 Q3 controls

This sample code: <telerik:RadTextBox runat="server" Width="400px" Label="Test" /> results in the label and inputbox having equal widths.  I need to produce the more accepted behaviour of having the input box closer to the label and having it widen/narrow according to the Width property for all my textbox controls.  How can I accomplish this?

Eyup
Telerik team
 answered on 20 Dec 2012
8 answers
935 views
I'm getting this error:


RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.


I have given Network Service full control of App_Data folder.  What am I missing?
Peter Filipov
Telerik team
 answered on 20 Dec 2012
1 answer
71 views
I am trying to create a User Control to place into a Telerik MegaMenu (RadMenu). The User Control is named "clientfilter" which will pull a sub-set of data from a SharePoint 2010 list. I have placed the following code into the "Page_Load" event but am getting errors on render.

protected void Page_Load(object sender, EventArgs e)
        {
            SPSite site = new SPSite("http://abcdev");
            using (SPWeb web = site.OpenWeb())
            {
                try
                {
                    SPList clientlist = web.Lists.TryGetList("clientmatter");
                    if (clientlist != null)
                    {
                        SPListItemCollection clientitems = clientlist.Items;
                        DataGrid dg = new DataGrid();
                        dg.DataSource = clientlist.Items.GetDataTable();
 
                        foreach (SPListItem clientitem in clientitems)
                        {
                            string clientddlvalue = clientitem["clientid"].ToString();
                            //myselect.Items.Add(clientddlvalue);
                             
                        }
                         
                        if ( !IsPostBack )
                         {
                           GridBoundColumn boundColumn;
 
                           //Important: first Add column to the collection
                           boundColumn = new GridBoundColumn();
                           this.RadGrid1.MasterTableView.Columns.Add(boundColumn);
 
                           //Then set properties
                           boundColumn.DataField = "clientid";
                           boundColumn.HeaderText = "clientid";
                         }
                    }
                }
                catch
                {
 
                }
                {
                    web.Dispose();
                }
            }
               
        }

The error I can see is "failure loading assembly 'Telerik.Web.UI.Design' ...", however, not sure if this is the real error or a by-product of a different error. When I originally entered the assembly registrations I mis-typed the name, however, I have subsequently fixed the name, but the error still persists. I have added the following to the GAC already:

  • Telerik.Web.UI
  • Telerik.Web.Design
  • Telerik.Web.UI.Skins

In my custom master page I have the following registrations:
<%@ Register Tagprefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2012.3.1205.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
<%@ Register Tagprefix="telerik" Namespace="Telerik.Web.Design" Assembly="Telerik.Web.Design, Version=2012.3.1205.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

What am I missing? Why will the code not work?

Thank you in advance.
Marin
Telerik team
 answered on 20 Dec 2012
1 answer
102 views
Hi, I used RadUpload tool to upload image file and I want to show it when I select an image file on Dialog window. So I search on google and I found this page http://www.telerik.com/help/silverlight/radupload-events-overview.html with info of "FilesSelectedEventArgs"

  • FilesSelected - occurs when files have been selected from the browse dialog window. The event handler receives two arguments:
    • The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
    • A FilesSelectedEventArgs object.
But when I code, I can't find this. It's just have FileUploadedEventArgs . Please help me! Thanks

protected void UploadImage(object sender, FilesSelectedEventArgs e)
    {

        int counter = 1;
        UploadedFile file;
        file = e.File;
       
        string targetFolder = Server.MapPath(RadUpload1.TargetFolder);

        string targetFileName = Path.Combine(targetFolder,
            file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());

        while (System.IO.File.Exists(targetFileName))
        {
            counter++;
            targetFileName = Path.Combine(targetFolder,
                file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
        }
        Image1.ImageUrl = targetFileName;
        upload_image_handle(sender, e);// call FilesSelectedEventhandle
    }
Shinu
Top achievements
Rank 2
 answered on 20 Dec 2012
1 answer
157 views
Hi Telerik Team, I have this webpart:

protected override void CreateChildControls()
{
      ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
      if (scriptManager == null)
      {
        scriptManager = new RadScriptManager();
        this.Page.Form.Controls.AddAt(0, scriptManager);
      }
}

protected override void OnLoad(EventArgs e)
{
      base.OnLoad(e);

      Panel panel = new Panel();
      panel.ID = "Panel1";
      this.Controls.Add(panel);   

      RadButton button = new RadButton();
      button.Height = 20;
      button.Width = 100;
      button.Text = "Click to update";
      button.ID = "ConfigureButton";
      button.OnClientClicked = "configureGauge";
      button.AutoPostBack = false;
      panel.Controls.Add(button); 

      radNumTextBox = new RadNumericTextBox();
      radNumTextBox.Height = 20;
      radNumTextBox.Width = 100;
      radNumTextBox.ID = "NewValueNumericBox";
      radNumTextBox.AllowOutOfRangeAutoCorrect = true;
      panel.Controls.Add(radNumTextBox);

      script = new Literal();
      script.ID = "scriptLiteral";
      script.Text = "<script type=\"text/javascript\">";
      script.Text += "function configureGauge() {";
      script.Text += "var value = $find('<%=NewValueNumericBox.ClientID %>');";
      script.Text += "alert(value);  }";
      script.Text += "</script>";
      this.Controls.Add(script);
}

When the configureGauge() function is called it returns null.
Do you know why this is happening?

Thanks,
Gustavo
Iana Tsolova
Telerik team
 answered on 20 Dec 2012
2 answers
108 views
Hi,

Please give me sample code that how to show LoadingPanel when switching between multiple pages in Tabstrip ?

Thank you
Madhu Palakurthi
Top achievements
Rank 1
 answered on 20 Dec 2012
3 answers
116 views
Hi,
I would like to modify the edges of radtextbox that make them rounder, how can I do?
Fabio Cirillo
Top achievements
Rank 1
 answered on 20 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?