Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
550
Migrating webcombo with WebDropDown
posted

Hi,

i m facing some issues while migrating webcombo with WebDropDown . below is the webcombo  code i m trying to migrate to WebDropDown 

webcombo code:-

<igcmbo:webcombo id="cmbApplication" runat="server" BorderStyle ></igcmbo:webcombo>

.cs code :-

//get a reference to the grid in the combo

UltraWebGrid grid = (UltraWebGrid)cmbApplication.Controls[0];

if (grid != null)

            {

                //set some properties of the grid to act and look like a combo

                grid.Columns.FromKey("Checked").AllowUpdate = AllowUpdate.No;

                grid.Columns.FromKey("Id").Hidden = true;

            }

 

            //set clientside events Combo box Properties for look

            cmbApplication.DropDownLayout.RowSelectors = Infragistics.WebUI.UltraWebGrid.RowSelectors.No;

            cmbApplication.DropDownLayout.GridLines = UltraGridLines.None;

            cmbApplication.DropDownLayout.ColHeadersVisible = ShowMarginInfo.No;

            cmbApplication.Editable = false;

 

    }

WebDropDown Code:-

<ig:WebDropDown ID="WddcmbApplication" runat="server" MultipleSelectionType="Checkbox" EnableClosingDropDownOnSelect="false"  DisplayMode="DropDownList" EnableMultipleSelection="true" ></ig:WebDropDown>

if (grid1 != null)

            {     grid1.ClientEvents.Click = "GridCellClickHandler";

                //needed equivalent code in webdataGrid for below code

                grid1.Columns.FromKey("Checked").AllowUpdate = AllowUpdate.No;

                grid1.Columns.FromKey("Checked").CellStyle.BorderWidth = Unit.Pixel(0);

                grid1.Columns.FromKey("Id").Hidden = true;

             }


javascript code :-

document.onclick = function (evt) {

     var oCombo = ig_controls.WddcmbApplication;

     var div = oCombo.getGrid().getDivElement(); //giving error, need Equivalent line for webdropdown

    if(div.id== “Test”)

    {

            oCombo.setDropDown(false); //giving error, need Equivalent line for webdropdown

    }

}


thanks

Ravi

  • 15320
    Offline posted

    Hello Ravi,

    You didn't answer my previous questions and I was wondering whether you've been able to resolve your issue?

    If you need further assistance, please let me know.

    Regards,

    Tsanna

  • 15320
    Offline posted

    Hello Ravi,

    Please clarify me your scenario at first, because I'm little confused. You're asking about migration between WebCombo and WebDropDown but in fact you're asking about code equivalent related to the grid. How the grid is involved in this scenario? Are you using grid as template inside of WebDropDown or the opposite scenario (WebDropDown inside of grid)? Please explain me in details in order to be more helpful for you.

    Regards,

    Tsanna