<ObjectiveSet id="1" description="Firefighter II" parentID=""> <objective id="2" description="Module A" parentID="1"> <objective id="3" description="2-1 FIRE DEPARTMENT ORGANIZATION" parentID="2"> <objective id="4" description="2-1.1 Identify the organization of the fire department. (3-1.1.1)" parentID="3" /> <objective id="5" description="2-1.2 Identify the firefighter’s role as a member of the organization." parentID="3"/> <objective id="6" description="2-1.3 Identify the mission of the fire service and of the local fire department." parentID="3"/> <objective id="7" description="2-1.4 Identify the function of standard operating procedures. (3-2.1)" parentID="3"/> <objective id="8" description="2-1.5 Identify the fire department’s rules and regulations that apply to the" parentID="3"/> <objective id="9" description="2-1.6 Identify the basic components of incident management and the" parentID="3"/> <objective id="10" description="2-1.7 Identify the role of other agencies that may respond to emergencies." parentID="3" /> <objective id="11" description="2-1.8 Identify the components of a member assistance program. (3-1.1.1)" parentID="3"/> <objective id="12" description="2-1.9 Identify the components of a member assistance program. (3-1.1.1)" parentID="3"/> </objective> <objective id="13" description="FIRE BEHAVIOR" parentID="2"> <objective id="14" description="Identify the following terms: (3-3.10)" parentID="13"> <objective id="15" description="Fire/combustion" parentID="14" /> <objective id="16" description="Heat" parentID="14" /> <objective id="17" description="Ignition Temperature" parentID="14" /> </objective> </objective> </objective></ObjectiveSet>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 + "');");
}
}

<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><style type="text/css"> div.RadUpload .ruBrowse { width: 120px; }</style>