Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
139 views

the Hotkey short text is not congruent, some of the button with the same hotkey text is displayed different, I what I mean, is that the underline is closer to the letter on some buttons and other have more space below the texts and the underline. The hotkeys are all using the same code.

I have attached a picture for clarity.
any solution or ideas.

Gregory
Gregory
Top achievements
Rank 1
 asked on 03 Oct 2012
1 answer
113 views
Hi, I can not keep the state of the tree in the Master page.
This is my code
public List<string> BindNodes
{
    get
    {
        List<string> dataNodes = new List<string>();
        dataNodes.Add("item1");
        dataNodes.Add("item2");
        dataNodes.Add("item3");
        return dataNodes;
    }
}
 
protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
        BindTree();
}
 
 
private void BindTree()
{
    List<string> data= BindNodes;
    for (int i = 0; i < data.Count; i++)
        LoadRecursive(data[i], null);
}
 
private void LoadRecursive(string item, RadTreeNode parentNode)
{
    if (parentNode == null)
    {
        RadTreeNode childNode = new RadTreeNode();
        childNode.Value = "5";
        childNode.Text = item;
        childNode.Category = "category1";
        childNode.ExpandMode = TreeNodeExpandMode.ClientSide;
 
        tree.Nodes.Add(childNode);
        parentNode = childNode;
    }
    List<string> secondList= new List<string>();
    secondList.Add("sec1");
    secondList.Add("sec2");
 
    for (int i = 0; i < secondList.Count; i++)
    {
        RadTreeNode childNode = new RadTreeNode();
        childNode.Value = "5";
        childNode.Text = secondList[i];
        childNode.Category = "category2";
        childNode.ExpandMode = TreeNodeExpandMode.ClientSide;
        parentNode.Nodes.Add(childNode);
        //LoadRecursive(subSite[i], childNode);
    }
}
 
protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e)
{
   switch (tree.SelectedNode.Category.ToString())
    {
        case "category1":
            Response.Redirect("~/Member/Cat1.aspx?id=" + tree.SelectedValue);
            break;
        case "category2":
            Response.Redirect("~/Member/Cat2.aspx?id=" + tree.SelectedValue);
            break;
     
    }
 
}
I looked at other similar threads in the forum, but  couldn't do it
Ivana
Telerik team
 answered on 03 Oct 2012
0 answers
98 views

the Hotkey short text is not congruent, some of the button with the same hotkey text is displayed different, I what I mean, is that the underline is closer to the letter on some buttons and other have more space below the texts and the underline. The hotkeys are all using the same code.

any solution or ideas.

Gregory
Gregory
Top achievements
Rank 1
 asked on 03 Oct 2012
1 answer
198 views
Hi there!

I am trying to use the RadSplitter with its Width and Height properties at 100% to have a full screen layout in the browser.
Before you think about this : Yes, I have read all the possible answer on this subject (the 100% on each container.) Please read further

My layout is composed of an horizontal Splitter (header, content, footer), with both header and footer having fixed sizes
and a nested vertical splitter in the content, having a sliding pane on each side and a main content pane in the middle.

I've come to setup the layout at 100% percent and everything works fine... until I make a single-classic-ASP.Net postback (synchronous).

After the postback, the Splitter takes (100% + scrollbar size) in both horizontal and vertical, and thus makes window's scrollbars to appear.
I can set the overflow:hidden on body to make them disappear, but my header and footer are still overflowing on the right and bottom, hiding some of my right aligned content.... Sad world. :(

Anyone already had this issue ? is it a bug ? am I too stupid to use a RadSplitter ?
David
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
69 views
I have implemented EnableAutomaticLoadOnDemand and can be run perfectly locally. But when I deployed it to my staging server and access it via my local IE it freezes my IE when I start typing the first character in the drop down text box. Please advise. Following is my codes:



<telerik:RadComboBox ID="RadComboBox1" runat="server"
DataTextField="Code" Height="100px"
DataValueField="ClientID" DataSourceID="SqlDataSource1" Filter="StartsWith"
DropDownWidth="500px" ShowDropDownOnTextboxClick="False"
EnableVirtualScrolling="true" ShowMoreResultsBox="true"
HighlightTemplatedItems="True" EnableAutomaticLoadOnDemand="true"
AutoPostBack="True" EmptyMessage="Enter here"
OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"
ItemsPerRequest="10" LoadingMessage="Searching..." MaxHeight="300px"
ShowWhileLoading="False" Width="300px" ExpandDirection="Down">
</telerik:RadComboBox>
Ivana
Telerik team
 answered on 03 Oct 2012
1 answer
68 views
Hi, I was just trying to create a demo website application (ver ASP.net AJAX Q2 2012 SP1 - latest version, as of now) website from first scratch. I added a master page and the component pages.

Added sliding zone / pane, splitter and all that stuff to the content page

Tried to run it, but could not see the master page contents :-/
Plamen
Telerik team
 answered on 03 Oct 2012
2 answers
123 views
Hi dudes,
This is really interesting. We have built a web application which works in multiple languages, one of which is Farsi(Persian). In Farsi language, everything must be shown in Right-To-Left direction.

Everything was fine, until I notices a flaw this morning. In Right-To-Left TreeView, the icons for expanding the nodes are out-dented (i.e. just like they have negative margin-right values) and they are partly hidden.
After almost checking all the change-sets of our code for the last couple of weeks, I noticed that the problem is with the chrome version. In chrome version 21.* it works completely fine. But in the latest release it has the so called problem. 

I was going to report this to both Telerik and Google, and I think this bug is more related to Google than Telerik, But here is another silly problem we are facing. Because of some political reasons (The movie made against Islam and published in YouTube) we do not have access to Google's website in Iran (was that silly enough??).

So I don't know if we should do something about that in our own code (i.e. fix it by checking browser and using padding/margins) or Google and/or Telerik are going to do something about that.

Thanks,
Maziar

EDIT: A snapshot on RadTreeView demo page is also attached (taken from chrome v22)
Ivan Zhekov
Telerik team
 answered on 03 Oct 2012
3 answers
913 views

We are getting Error

No parameterless constructor defined for this object. at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()

at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()
at Telerik.ReportViewer.WebForms.SerializableReportDocument.GetDeserializedReport()
at Telerik.ReportViewer.WebForms.SerializableReportSourceWrapper.get_ReportSource()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Binding datatable  to telerik:ReportViewer

using Telerik.Reporting;
 
    /// <summary>
    /// Summary description for VersionHistory.
    /// </summary>
    public partial class RptVersionHistory : Report
    {
        public RptVersionHistory(DataTable dtable )
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            this.textBox8.Name = "Title";
            this.textBox2.Name = "Version";
            this.textBox3.Name = "Created By";
            this.textBox7.Name = "Created Date";
            this.textBox5.Name = "Modified By";
            this.textBox4.Name = "Modified Date";
            this.textBox1.Name = "Title";
            this.DataSource = dtable;
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

In sharepoint application page  in Page_Load calling as.. 

if (!this.IsPostBack)
              {
                  InstanceReportSource reportSource = new InstanceReportSource
                      { ReportDocument = new RptVersionHistory(this.DataTable) };
                  this.ReportViewer1.ReportSource = reportSource;
              }

It’s working fine in Dev. Server but not on production it showing above error anyone knows how to find out error?  

Elian
Telerik team
 answered on 03 Oct 2012
1 answer
239 views
hii,
How to show RadEditor as a textbox


thanks
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2012
7 answers
168 views
Hi, I have noticed that the control is just not "printer friendly"... as it uses CSS Background images to render selection and stars, by default browsers will not print the rating control at all (because of "print background color and images" setting in most browsers being disabled by default), this can confuse users a lot!.

So far we added a CSS conditional view for the control, based just in a label followed by the rating value... but it will be great to have it better support printing in next versions!. Or if you know how I can workaround this it will be great.

Thanks!
Slav
Telerik team
 answered on 03 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?