Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
122 views
Hello All,

The following yellow line displays when I press tab key on Category drop down.
I am using a telerik RadAsynchronous upload for file uploading where this yellow line on tab focus is coming.


 <telerik:RadAsyncUpload ID="RadUploadDocument" runat="server" OnClientDeleting="ToDeleteFile" EnableEmbeddedSkins="false"
                        AllowedFileExtensions=".pdf,.doc,.xls,.ppt,.pdfx,.xlsx,.docx,.pptx" ControlObjectsVisibility="none"
                        InputSize="50" Font-Names="Arial" MaxFileSize="5242880" OnClientFileUploaded="OnValidationSucceed"
                        AutoAddFileInputs="true" OnClientValidationFailed="validationFailed" MaxFileInputsCount="1"
                        Style="position: relative; float: left; margin: 3px 0px 0px 10px; width: 385px;
                        ">
                    </telerik:RadAsyncUpload>  
Genady Sergeev
Telerik team
 answered on 04 Nov 2010
1 answer
235 views
I'm trying to use a custom color pallette with stacked bar charts and can't seem to get the legend colors to match the chart.  I can't find any other threads related to this issue.

Test.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="BorrowSmartReporting.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="TestArea" runat="server" />
    </div>
    </form>
</body>
</html>


Test.aspx.cs

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Data;
using System.IO;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using Telerik.Charting;
  
namespace BorrowSmartReporting
{
    public partial class test : System.Web.UI.Page
    {
        public System.Drawing.Color[] ChartColors = new System.Drawing.Color[13]
        {
            System.Drawing.Color.Black,        //Total Liabilities
            System.Drawing.Color.DarkOrange,   //Spent
            System.Drawing.Color.YellowGreen,  //Saved
            System.Drawing.Color.LightBlue,
            System.Drawing.Color.BurlyWood,
            System.Drawing.Color.DarkKhaki,
            System.Drawing.Color.DarkSeaGreen,
            System.Drawing.Color.Goldenrod,
            System.Drawing.Color.LightSteelBlue,
            System.Drawing.Color.LightSalmon,
            System.Drawing.Color.Silver,
            System.Drawing.Color.Thistle,
            System.Drawing.Color.Gold
        };
  
  
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable LiabilityTable = new DataTable();
            LiabilityTable.Columns.Add("Balance", System.Type.GetType("System.Double"));
            LiabilityTable.Columns.Add("LiabilityType", System.Type.GetType("System.String"));
  
            DataRow Test1 = LiabilityTable.NewRow();
            Test1["Balance"] = 21000;
            Test1["LiabilityType"] = "Auto";
            LiabilityTable.Rows.Add(Test1);
  
            DataRow Test2 = LiabilityTable.NewRow();
            Test2["Balance"] = 10000;
            Test2["LiabilityType"] = "Credit Card";
            LiabilityTable.Rows.Add(Test2);
  
            DataRow Test3 = LiabilityTable.NewRow();
            Test3["Balance"] = 210000;
            Test3["LiabilityType"] = "Mortgage";
            LiabilityTable.Rows.Add(Test3);
  
            DataView Liabilities = new DataView(LiabilityTable);
  
            RadChart CurrentLiabilitiesPageChart2 = new RadChart();
  
            double total = 0;
            for (int i = 0; i < Liabilities.Count; i++)
            {
                ChartSeries stackedBarSeries = new ChartSeries();
                stackedBarSeries.Type = ChartSeriesType.StackedBar;
  
                double balance = 0;
                double.TryParse(Liabilities[i]["Balance"].ToString(), out balance);
                total += balance;
                stackedBarSeries.AddItem(balance);
  
                stackedBarSeries.Name = Liabilities[i]["LiabilityType"].ToString() + " (" + balance.ToString("C0") + ")";
                stackedBarSeries.Items[0].Label.TextBlock.Visible = false;
                stackedBarSeries.Items[0].Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient;
                stackedBarSeries.Items[0].Appearance.FillStyle.MainColor = ChartColors[i + 3];
  
                CurrentLiabilitiesPageChart2.Series.Add(stackedBarSeries);
            }
  
            CurrentLiabilitiesPageChart2.ChartTitle.TextBlock.Text = "Balances";
            CurrentLiabilitiesPageChart2.Width = 400;
            CurrentLiabilitiesPageChart2.Height = 300;
            CurrentLiabilitiesPageChart2.Appearance.Border.Visible = false;
            CurrentLiabilitiesPageChart2.PlotArea.Appearance.Border.Visible = false;
            CurrentLiabilitiesPageChart2.Legend.Appearance.Border.Visible = false;
            CurrentLiabilitiesPageChart2.PlotArea.XAxis.Appearance.TextAppearance.Visible = false;
            CurrentLiabilitiesPageChart2.Legend.Appearance.ItemMarkerAppearance.Figure = "Rectange";
            CurrentLiabilitiesPageChart2.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            CurrentLiabilitiesPageChart2.PlotArea.Appearance.FillStyle.MainColor = Color.White;
  
            CurrentLiabilitiesPageChart2.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Color.Black;
            CurrentLiabilitiesPageChart2.PlotArea.YAxis.Appearance.CustomFormat = "C0";
            CurrentLiabilitiesPageChart2.Legend.Appearance.Location = Telerik.Charting.Styles.LabelLocation.OutsidePlotArea;
            CurrentLiabilitiesPageChart2.AutoLayout = true;
  
            TestArea.Controls.Add(CurrentLiabilitiesPageChart2);
        }
    }
}

Enclosed is the resulting Chart.

Help?!

Thanks,

--Tad Richard

Evgenia
Telerik team
 answered on 04 Nov 2010
1 answer
80 views
Windows 7 x64, VS 2008, ASP.Net AJAX v 2010.2.826.35.

I have an issue with multiple combo boxes being shown on screen using the onFocus style. When I quickly tab through all the fields in IE sometimes the onFocus style isn't reset.
 
I am using a modified Windows 7 theme that with changed the onFocus background to blue and border colour to red of the Text and Combo boxes as shown in image. The top field is the Focused textbox with the cursor and as you can see there are 2 combos with normal style and 2 with Focused style.

I have tested using the standard Windows 7 theme and have exactly the same problem so don't think it is a style builder issue.

Is it an issue and on the fix list?

Thanks

B
Simon
Telerik team
 answered on 04 Nov 2010
1 answer
105 views
Hello,

I'm a first-time poster here, so please forgive me if I'm posting in the wrong place. I've implemented a page using google-type ahead like here:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid

Now, I'd like to be able to grab the column selected and it's value in the filter and pass that along to a 'button-click' event. I'm having trouble figuring out where and how to get these values. Can anybody help me?


Thanks,
Phil

Maria Ilieva
Telerik team
 answered on 04 Nov 2010
6 answers
396 views
I added the following code to page:
<telerik:RadButton
                            ID="RadButton1"
                            runat="server"
                            Text="RadButton Submit"
                            EnableEmbeddedSkins="false"
                            Skin="MyCustomSkin">
                        </telerik:RadButton>
And received the " Unknown server tag 'telerik:RadButton'." message. Also I can't find RadButton  among RadControls in Toolbox. What am I doing wrong?
Michael
Top achievements
Rank 1
 answered on 04 Nov 2010
6 answers
225 views
I was recently playing around with the Sitefinity demo and I really love the way you can drag and drop controls onto the page from that sidebar. I was wondering how you implemented the drag and dropping part?
I am trying to implement this on a project of my own, I am attempting to drag a div (it doesn't have to be a div it could be almost anything) from a RadWindow and drop it in a RadDock or RadDockZone on the RadWindow's parent page. I did some research on dragging and dropping div's and stuff with javascript but from what I've read that won't work for me at all because I am trying to do it across windows. Any suggestions would be greatly appreciated.
Georgi
Telerik team
 answered on 04 Nov 2010
1 answer
108 views
Using fiddler and viewing whats being posted during an ajax post i can see the view state and then all the __event hidden fields. After that i can see the id's of controls and values e.g. ctl00_BodyContent_ConsentTree_ClientState=%7b%....

Why are the ctl00_BodyContent_ConsentTree_ClientState... etc being added to whats being posted back?

Are these controls duplicated in the viewstate thats being posted back?

Can we send the post without them?

I have read the article http://www.telerik.com/help/aspnet/ajax/ajxtelerikajax.html and viewed the text below. 

So if we didn't post back the ctl00_BodyContent_ConsentTree_ClientState....etc we wouldn't be able to access there current values?

http://www.telerik.com/help/aspnet/ajax/ajxtelerikajax.html
Persistence of form values - all form values are sent to the server for processing during the AJAX request and are persisted between AJAX requests. All form controls can be referenced in the code-behind as if a postback occurred. This feature guarantees that your AJAX-enabled applications will not be limited to mere rendering of controls with AJAX, but can cover even the most complex scenario.  
Cori
Top achievements
Rank 2
 answered on 04 Nov 2010
1 answer
81 views
I add the following style in my aspx change but it did not reflect the new icon in editor.
<style type="text/css">
.reToolbar.Vista .TemplateManager
{
  background-image
: url(MyImage.gif) !important;
}
<
/style>
Please help me regarding this.
Rumen
Telerik team
 answered on 04 Nov 2010
1 answer
72 views
On my radgrid (2009q3), I have paging turned on.

I have a requirement that states when the users hovers mouse pointer over the page number, that it should display a tooltip showing the contents of the sorted column on that page.  When it is a group of pages (11-20), it should display the contents of the sorted column on the first page of the group.

With this functionality, they can navigate to the desired page with less clicking and paging.

I do not find such a feature in the radgrid, can someone suggest a way to accomplish this?

TIA.
Veli
Telerik team
 answered on 04 Nov 2010
4 answers
132 views
hey everyone

I am using a grid and template form for editing grid items.I have created a panel for editing items that is visible on external button btnEdit_Click.tha problem is with my code when i select a row and click on edit,i am trying to get the id of the row been selected.But its giving error-

Object reference not set to an instance of an object.

my code is--
protected void btnEdit_Click(object sender, EventArgs e)
       {
           if (RadGrid1.SelectedItems.Count != 0)
           {
               //Guid g = new Guid(txtName.Text);
               txtName.Focus();
               pnlExternalForm.Visible = true;
               RadGrid Grid = (this.FindControl("RadGrid1") as RadGrid);
               string UID = Convert.ToString(Grid.SelectedValues["UID"]);//this shows no row is selected
               string query = "SELECT * FROM Entry where UID=" + UID;
               GetProductInfoForEdit(query, UID);
               LoadData();
           }
       }
       private void GetProductInfoForEdit(string query, string UserID)
       {
           DataSet ds = GetInventoryForm(query);
           txtName.Text = Convert.ToString(ds.Tables[0].Rows[0]["Name"]);
           txtMailText.Text = Convert.ToString(ds.Tables[0].Rows[0]["Mail Text"]);
           txtMailSubject.Text = Convert.ToString(ds.Tables[0].Rows[0]["Mail Subject"]);
           lblUID.Text = UserID;
           LoadData();
       }
my primary key column is UID.

Thanks
Amit
Princy
Top achievements
Rank 2
 answered on 04 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?