Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
Hi, i have a problem when i want save '100' in a radtexboxnumeric, postback shows a error 'Error converting data type numeric to numeric'. Only happen whith '100' value... anybody can help me?? thx
 <telerik:GridTemplateColumn DataField="Peso" HeaderText="Peso" UniqueName="Peso"> 
                            <EditItemTemplate> 
                                <telerik:RadNumericTextBox runat="server" ID="PesoRadNumericTextBox" Width="40px" 
                                    Culture="en-US" DbValue='<%# Bind("Peso") %>' > 
                                    <NumberFormat DecimalDigits="1" /> 
                                </telerik:RadNumericTextBox> 
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="" 
                                    Text="*" ControlToValidate="PesoRadNumericTextBox" /> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:Label ID="PesoLabel" runat="server" Text='<%# Eval("Peso", "{0:F1}%") %>'></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 

Jhonattan
Top achievements
Rank 2
 answered on 08 Apr 2010
2 answers
90 views
Hello,

After many testing I noticed that when I put required field validation inside a RadPageView under RadTabStrip gets disabled

Any workaround to get the validation work ?

Thanks,
Musab
Musab Alghzawi
Top achievements
Rank 1
 answered on 08 Apr 2010
2 answers
102 views
why does my toolbar show up as list items on my website



ok, I have now found out that this occurs when the radformdesigner is also on the page.
Is this a known issue or expected behavour?
Andrew
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Apr 2010
1 answer
155 views
Hi,

How do you popup a RadWindow to allow user to enter some input, close the window, and add the inputted text to the RadComboBox?
What is the best way to do this?  I am trying to do this in a webpart.

Can controls be inserted into RadWindow programmatically?
How is information passed between the RadComboBox and RadWindow?

I tried doing this.

RadWindow popupWindow = new RadWindow();
popupWindow.VisibleOnPageLoad = true;
popupWindow.Modal = true;
Controls.Add(popupWindow);

Popupwindow will show up but how do I add controls to the popupWindow?
Please help! Thank you!

Jimmy
Georgi Tunev
Telerik team
 answered on 08 Apr 2010
10 answers
221 views
Hi,

I need to show appointments with graphical height that is real-size according to appointment duration, not rounded to timeslots.

How can I achieve this ?

Thanks.
Peter
Telerik team
 answered on 08 Apr 2010
3 answers
125 views
Hy
I have a radgrid and i want to filter the grid dynamically from the c#.
I also need to "sort" and "group by" the grid and i succeed to do that but i cudn't  succeed to filter it.

ReportGeneratorRadGrid.MasterTableView.Columns.FindByUniqueName("xxx").CurrentFilterFunction = GridKnownFunction.EqualTo;
ReportGeneratorRadGrid.MasterTableView.Columns.FindByUniqueName("xxx").CurrentFilterValue = "Open";
ReportGeneratorRadGrid.Rebind()


I can see the parameters that i put but the data isn't actually filtered.
How can i do it. 
Thnks alot
Ezra
Yavor
Telerik team
 answered on 08 Apr 2010
6 answers
305 views
Hello Telerik Team,

I'm hoping the answer to this would be yes.
Can i have certain nodes' orientation set to horizontal based on an attribute value on the node? If so how can I achieve this?
I looked at this forum post but couldn't really figure how i could achieve that only for few nodes based on a condition.
I would really appreciate any help.

Thanks much,
Phani

Yana
Telerik team
 answered on 08 Apr 2010
7 answers
489 views
I have a function that adds dynamic controls to an RadAjaxPanel.  The dynamic controls are RadComboBox and some others.  Everything is working as expected.  On page postbacks, the values for these controls are properly set.

Outside of the panel is a button.  If the user selects this button, the contents of the RadAjaxPanel are modified.  The update panel looks great at the end of this postback, as it has the new control and data.  The problem happens on a subsequent postback.  During the next postback the update panel is recreated with the correct controls however the data/viewstate for the controls is gone.  I can only assume that the controls that were added during a postback client event to the update panel did not save the viewstate. 

The subsequent postback does not contain the state for the control that was added.  My sample code is below.  Here is how to see the problem:

1. The page displays with two comboboxes.
2.  Select an item in the first combobox and the second one repopulates.  This is working as expected.
3.  Press the button on the page and the update panel is created with a single combobox and a new set of values.  This is working as expected.
4.  Press the button again, as this time it just implements a standard postback with no changes.  THe combobox no longer has its values.

Since the viewstate of the objects happens after the PreRender event, there is no reason why the state should not be saved.  What is happening?

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="Trials.aspx.cs" Inherits="Reporteratti.Trials" %> 
<html> 
<head runat="server">  
          
    </head> 
<body> 
    <form id="form1" runat="server">  
<asp:ScriptManager runat="server" ID="ScriptManager1">  
   <Scripts> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> 
   </Scripts></asp:ScriptManager> 
This page is for trying stuff  
    <telerik:RadAjaxPanel ID="updatePanel" runat="server"   
        HorizontalAlign="NotSet"  > 
    </telerik:RadAjaxPanel> 
    <asp:Button ID="Button2" runat="server"   
        Text="Cause a Postback changing the update panel contents" onclick="Button2_Click" />   
    </form> 
</body> 
</html> 
 

namespace Reporteratti  
{  
 
    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Web;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using Telerik.Web.UI;  
    using System.Collections.Specialized;  
 
    public partial class Trials : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadComboBox cmb1;  
            RadComboBox cmb2;  
            RadComboBox cmbX;  
            // Rebuild the dynamic controls based on which should be shown  
            if (Session["page"] == null)  
            {  
                cmb1 = new RadComboBox();  
                cmb1.ID = "first";  
                updatePanel.Controls.Add(cmb1);  
                cmb1.AutoPostBack = true;  
                cmb1.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cmb1_SelectedIndexChanged);  
 
                cmb2 = new RadComboBox();  
                cmb2.ID = "second";  
                cmb2.AutoPostBack = true;  
                cmb2.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cmb1_SelectedIndexChanged);  
 
                updatePanel.Controls.Add(cmb2);  
 
                if (!this.IsPostBack)  
                {  
                    cmb1.Items.Add(new RadComboBoxItem("Item A", "1"));  
                    cmb1.Items.Add(new RadComboBoxItem("Item B", "2"));  
                    cmb1.Items.Add(new RadComboBoxItem("Item C", "3"));  
 
                    cmb2.Items.Add(new RadComboBoxItem("Item M", "1"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item N", "2"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item O", "3"));  
                }  
 
            }  
            else  
            {  
                cmbX = new RadComboBox();  
                cmbX.ID = "NewPage";  
                updatePanel.Controls.Add(cmbX);  
 
                // This combobox is only filled in the selected event  
            }  
 
        }  
 
        void cmb1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            string sSelect = e.Text;  
            string sValue = e.Value;  
 
            RadComboBox dd = (RadComboBox)o;  
 
            if (dd.ID == "first")  
            {  
                RadComboBox cmb2 = updatePanel.FindControl("second") as RadComboBox;  
 
                if (cmb2 != null)  
                {  
                    cmb2.Items.Clear();  
                    cmb2.Items.Add(new RadComboBoxItem("Item P", "5"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item Q", "6"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item R", "7"));  
                }  
            }  
 
 
        }  
        protected void Button2_Click(object sender, EventArgs e)  
        {  
            // If the second page is not showing, show it.  
            // If the page is already showing, do nothing and act like a single postback  
 
            if (Session["page"] == null)  
            {  
                // Clear the update panel  
                // Create the single combobox  
                // Fill the combobox  
                updatePanel.Controls.Clear();  
 
                RadComboBox cmbX = new RadComboBox();  
                cmbX.ID = "NewPage";  
                updatePanel.Controls.Add(cmbX);  
 
                cmbX.Items.Clear();  
                cmbX.Items.Add(new RadComboBoxItem("Item XXX", "14"));  
                cmbX.Items.Add(new RadComboBoxItem("Item YYY", "32"));  
                cmbX.Items.Add(new RadComboBoxItem("Item ZZZ", "23"));  
                Button2.Text = "Cause a postback";  
                Session["page"] = 2;  
            }  
 
 
        }  
}  
}  
 


Iana Tsolova
Telerik team
 answered on 08 Apr 2010
3 answers
75 views
Hello,

With javascript, I can change the maxLength of an edited node's input textbox, but it appears that only 50 characters of the edited text are actually saving.  Is there a way to increase the maximum length to something greater than 50, say 255?

Thanks,
Ian
Dimitar Milushev
Telerik team
 answered on 08 Apr 2010
3 answers
126 views
There seems to be some issues with an Ajaxified RadGrid when using WebKit Browsers like Safari or Chrome. Both seem to issue back to back requests (and way too many responses); these are not present in IE or Firefox. This is causing an issue due to the fact the loading panel is immediately turned off after the first response, while second request continues to process with no panel (which allow our users to access to areas they should not have while data is being processed). We're currently using Q2-2009 controls in the affected project.

The sample below is setup such that a user may end their filter entry with ENTER, which kicks off an onclick event for a hidden button. This is done so a known control causes the request and can be identified on response. Attempting to decipher which internal RadGrid element caused the response is a bit cumbersome. You will notice that IE and Firefox only deal with the hidden button, while Chrome and Safari seem to push the RadGrid Filter Textbox into the mix. Is there any work around for these browsers? Is this a known issue?

SafariAjaxRequestProblems.zip


*** Please note this issue is not isolated to the RadGrid (we have seen it happen it other places), but this example was easy to pull out of our main project. I'm sure if we can solve this issue, we will be able to remedy it in other areas as well. I've already generated a much simpler sample and issued it in the radinput forum as this seems to be the direct source of the problem.
Iana Tsolova
Telerik team
 answered on 08 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?