//------------------------------------------------------------------------

    //------------------------------------------------------------------------
    public void CreateCountryFilter(Object sender, Obout.Grid.GridRuntimeTemplateEventArgs e)
    {
        PlaceHolder templatePlaceHolder = new PlaceHolder();

        e.Container.Controls.Add(templatePlaceHolder);

        Obout.Interface.OboutTextBox textbox = new Obout.Interface.OboutTextBox();
        textbox.ID    = "Country";
        textbox.Width = Unit.Percentage(100);
        textbox.ClientSideEvents.OnKeyUp = "applyFilter";

        templatePlaceHolder.Controls.Add(textbox);
    }
Beispiel #2
0
    void grid2_DataBound(object sender, EventArgs e)
    {
        DetailGrid detailGrid = sender as DetailGrid;

        Obout.Interface.OboutTextBox      txtShipName      = detailGrid.Templates[0].Container.FindControl("txtShipName") as Obout.Interface.OboutTextBox;
        Obout.Interface.OboutTextBox      txtShipCity      = detailGrid.Templates[0].Container.FindControl("txtShipCity") as Obout.Interface.OboutTextBox;
        Obout.Interface.OboutDropDownList ddlShipCountries = detailGrid.Templates[0].Container.FindControl("ddlShipCountries") as Obout.Interface.OboutDropDownList;

        if (txtShipName != null && txtShipCity != null && ddlShipCountries != null)
        {
            txtShipName.ID      = detailGrid.ID + "_txtShipName";
            txtShipCity.ID      = detailGrid.ID + "_txtShipCity";
            ddlShipCountries.ID = detailGrid.ID + "_ddlShipCountries";

            detailGrid.Columns[2].TemplateSettings.RowEditTemplateControlId = txtShipName.ID;
            detailGrid.Columns[3].TemplateSettings.RowEditTemplateControlId = txtShipCity.ID;
            detailGrid.Columns[4].TemplateSettings.RowEditTemplateControlId = ddlShipCountries.ID;
        }
    }
Beispiel #3
0
    public TableRow CreateTableRowWithTextbox(string sLabelText, string sControlId)
    {
        TableRow  oTr    = new TableRow();
        TableCell oCell1 = new TableCell();
        TableCell oCell2 = new TableCell();

        Label oLabel = new Label();

        oLabel.Text = sLabelText;
        oCell1.Controls.Add(oLabel);

        Obout.Interface.OboutTextBox oTextBox = new Obout.Interface.OboutTextBox();
        oTextBox.ID    = sControlId;
        oTextBox.Width = Unit.Pixel(150);

        oCell2.Controls.Add(oTextBox);

        oTr.Cells.Add(oCell1);
        oTr.Cells.Add(oCell2);

        return(oTr);
    }
    //------------------------------------------------------------------------
    
	//------------------------------------------------------------------------
    public void CreateCountryFilter(Object sender, Obout.Grid.GridRuntimeTemplateEventArgs e)
	{
        PlaceHolder templatePlaceHolder = new PlaceHolder();
        e.Container.Controls.Add(templatePlaceHolder);

        Obout.Interface.OboutTextBox textbox = new Obout.Interface.OboutTextBox();
        textbox.ID = "Country";
        textbox.Width = Unit.Percentage(100);
        textbox.ClientSideEvents.OnKeyUp = "applyFilter";

        templatePlaceHolder.Controls.Add(textbox);
	}
    public TableRow CreateTableRowWithTextbox(string sLabelText, string sControlId)
    {
        TableRow oTr = new TableRow();
        TableCell oCell1 = new TableCell();
        TableCell oCell2 = new TableCell();

        Label oLabel = new Label();
        oLabel.Text = sLabelText;
        oCell1.Controls.Add(oLabel);

        Obout.Interface.OboutTextBox oTextBox = new Obout.Interface.OboutTextBox();
        oTextBox.ID = sControlId;
        oTextBox.Width = Unit.Pixel(150);

        oCell2.Controls.Add(oTextBox);

        oTr.Cells.Add(oCell1);
        oTr.Cells.Add(oCell2);

        return oTr;
    }