Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
87 views
Hi:
I have add some textbox created dinamically to myradspell.controlstocheck. I attached the error. The problem is the textboexes were created so:

public

 

partial class LogrosEquivalentes : System.Web.UI.Page

 

{

 

protected

 

void Page_Load(object sender, EventArgs e)

 

 

{

TemplateField

 

Columna1 = new TemplateField();

 

 

Columna1.ItemTemplate =

new TextBoxTemplate3("CodValoracion", false, !ingreso, 180, null,"Descripcion");

 

 

Columna1.HeaderText =

"Cdigo Logro";

 

 

MiGridView0.Columns.Add(Columna1);

MiGridView0.AutoGenerateColumns =

false;

 

 

MiGridView0.DataSource = DtCodigos;

 

MiGridView0.DataBind();

string[] VectorOrtografia = new string[MiGridView0.Rows.Count];

 

 

 

for (int i = 0; i < MiGridView0.Rows.Count - 1; i++)

 

 

{

 

VectorOrtografia[i] = ((

 

TextBox)MiGridView0.Rows[i].Cells[0].Controls[0]).ClientID;

 

}

 

RadSpell1.ControlsToCheck = VectorOrtografia;

 

 

}
}

public class TextBoxTemplate3 : ITemplate //Aqui asigno las propiedades y los eventos para cada TextBoxTemplate

 

 

 

 

 

 

 

{

 

 

 

string NombreColumna,NombreColumnaToolTip;

 

 

 

 

bool Habilitado, ReadOnly;

 

 

 

 

int Ancho,NumeroNombre;

 

 

 

 

string GridViewCodigosId;

 

 

 

 

//int ContadorControles = 0;

 

 

 

 

 

 

 

 

 

public TextBoxTemplate3(string Columna, bool habilita, bool readOnly, int AnchoControl, string gridviewcodigosid,string ColumnaToolTip)

 

 

{

 

GridViewCodigosId = gridviewcodigosid; NombreColumna = Columna; Habilitado = habilita; Ancho = AnchoControl;

 

ReadOnly = readOnly; NombreColumnaToolTip = ColumnaToolTip;

 

}

 

 

 

public void InstantiateIn(System.Web.UI.Control container)

 

 

{

 

 

 

TextBox TextBox1 = new TextBox();

 

 

TextBox1.ID =

 

"TextBox" + "&" + NombreColumna + "&" + GridViewCodigosId;// + ContadorControles;

 

 

 

 

 

 

 

TextBox1.ToolTip = TextBox1.ID;

 

TextBox1.Width =

 

Unit.Pixel(Ancho);

 

 

TextBox1.Height =

 

Unit.Pixel(20);

 

 

TextBox1.Enabled = Habilitado;

 

TextBox1.ReadOnly = ReadOnly;

 

TextBox1.Style.Add(

 

"vertical-align", "middle");

 

 

TextBox1.DataBinding +=

 

new EventHandler(TextBox1_DataBinding);

 

 

container.Controls.Add(TextBox1);

 

 

 

//ContadorControles++;

 

 

 

 

 

 

 

}

 

 

 

 

 

void TextBox1_DataBinding(object sender, EventArgs e)

 

 

{

 

 

 

TextBox TxtBox = (TextBox)sender;

 

 

 

 

GridViewRow container = (GridViewRow)TxtBox.NamingContainer;

 

 

TxtBox.Text = ((

 

DataRowView)container.DataItem)[NombreColumna].ToString();

 

 

 

 

//if (!(NombreColumnaToolTip == "")) TxtBox.ToolTip = ((DataRowView)container.DataItem)[NombreColumnaToolTip].ToString();

 

 

 

 

 

 

 

 

 

string Alumno = ((DataRowView)container.DataItem)[0].ToString();

 

 

TxtBox.Attributes.Add(

 

"onchange", "javascript:OnTextChanged(this,'" + GridViewCodigosId + "')");

 

 

TxtBox.Attributes.Add(

 

"onfocus", "javascript:OnFocus('" + TxtBox.ClientID + "','" + GridViewCodigosId + "');");

 

 

}

 

}

Andrés David Santacoloma Isaza
Top achievements
Rank 1
 asked on 14 Apr 2011
1 answer
136 views
         When i insert a new checkbox or radio button, its attributes are not are not displayed while using chrome and firefox, but in IE its working good..!!!!!
 
Rumen
Telerik team
 answered on 14 Apr 2011
1 answer
230 views
Hi there,

I'm currently building a web application to be used on a Tablet/Touch based computer. I've got a lot of RadComboBoxes on my page that are both binded to a DataSource or called by a WebService.  
The problem is, my ComboBoxes are pulling a multitude of items, and depending on the size of the User's fingers it may be hard for them to select items in the drop-down area of the RadComboBox.

Is there a way of setting the height of the ComboBox Items? I'm guessing it should just be slight CSS change.

Here's an example of one of my boxes.

<telerik:RadComboBox
        runat="server"
        ID="LabourName1"
        Width="180px"
        Skin="WebBlue"
        AllowCustomText="true"
        MaxHeight="200px"
        EmptyMessage="Employee Name"
        CssClass="LabourCell"
        EnableTextSelection="true"
        MarkFirstMatch="true"
        EnableLoadOnDemand="true"
        Filter="Contains">
 
            <webservicesettings path="~/FieldService.asmx" method="GetEmployees" />
            </telerik:RadComboBox>

Best Regards,

Landon
Helen
Telerik team
 answered on 14 Apr 2011
1 answer
122 views
when I use direction:rtl; in css of ToolTip, border not show correctly!!!
Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
82 views
Is it possible to define the target for a radTickerItem?

Some of our tickeritems are external links and we would like these to open in new windows.  i.e. Target="_blank"
I cannot find any option to specify that the NavigateUrl should use a specific Target, is there any way to do this?



Niko
Telerik team
 answered on 14 Apr 2011
1 answer
310 views
Hello,

I am using tooltip manager and radgrid to display drilled down data on muse over. I want to copy the grid on right click / printscreen to paste it in emails directly. Is it posible to copy complete radgrid from tooltipmanager and paste ?

Thanks,
Prayag
Mira
Telerik team
 answered on 14 Apr 2011
6 answers
113 views
Hi,
I want the browse button a little bigger than the default 65px. I am using the windows skin 7. I tried this Css without success:
<style type="text/css">
        div.RadUpload .ruBrowse
        {
            width: 120px;
        }
 
</style>

The result is not ok because the background image still remains  fixed to 65px. Is something missed here? How can I choose the bigger button background?

Best regards,
Igor
Igor
Top achievements
Rank 1
 answered on 14 Apr 2011
3 answers
122 views
Do you guys have ever seen this gfx bug and a solution for it? (see attached jpg file)

code for it:
RadWindowManager1.RadAlert("some text", 330, 100, "some header text", "alertCallBackFn");

aspx code:
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="false" 
                 Skin="Telerik">
        </telerik:RadWindowManager>

tried changing to different skins and back to default skin. No change.
Just downloaded to the latest asp.net ajax also.

Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
76 views
I have a problem with IE.  When you click in my application the pop up window is completly off....


so that you can see it..  http://gc.jazzros.com/PopupTest.aspx

open up the URL.

Right cllick on any subject in the calendar.
then click the link in RED.  Show Speical Instructions

I can't see to figure out how to fix that.. 

thank you...


Marin Bratanov
Telerik team
 answered on 14 Apr 2011
4 answers
265 views
When using following client side code

convert: function() {
        var cb = function(arg) {
            if (arg) {
                __doPostBack('', '');
            }
        }
        originalRadConfirm("Question",
                cb, 200,
                200, null,
                "Headline");
},

the PostBack does not get triggered in Firefox after first selecting cancel and then reopining the window and calling confirm
IE and Opera are OK.

Any ideas?
Thanks
Marin Bratanov
Telerik team
 answered on 14 Apr 2011
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?