Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Greetings,

I am working on a form to assign learning objectives contained in an XML file to a lesson plan stored in a SQL table.  The source XML file looks like this.

<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>

I can build the tree with no problem.  I can update the lesson plan record with the selected objective id's from the tree with no problem.

The ID's from the selected objectives in the XML tree are stored in a SQL table with columns as follows:

lessonPlanID objectiveID
1 4
1 5
2 17

When the user goes back another day to edit the objectives for lesson plan one, they will be presented the tree again.  When the page loads, it should appear with the previously assigned objectives already checked.  So, in the example, the tree would have objectiveID 4 and objectiveID 5 already checked.

I can not figure out how to check the items when the page loads.  I assume it has to do with databinding, instead of using XMLDataSource to build the tree.  I am very new to vb.net, so I am not certain how to create the tree and check off the appropriate boxes.

Is this possible?  Any ideas? 

Thank you in advance for any thoughts or help that anyone may be able to provide.

John
Nikolay Tsenkov
Telerik team
 answered on 14 Apr 2011
0 answers
69 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
128 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
198 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
104 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
67 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
281 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
79 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
99 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
67 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?