Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Filling Insert DropDown on client-side

Last post 08-07-2008 18:01 by [Infragistics] Viktor Snezhko. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-18-2008 10:40

    Filling Insert DropDown on client-side

    Hi there,

     I want to fill the Insert dropdown box with dynamic content. I did not find a csom method to do this. Is there any way i can fill it from javascript?

     

    I already tried to fill the dropdown div in the "BeforeAction" Client-Side Event. The id of the div is coming with the parameter p4 and the click event with p6, in p5 are styling informations and p7 is null and p8 is undefined. The actId is 'Insert'. So i get the dropdown div with document.getElementById(p4) and manipulated the innerHTML. But in the original code there are eventlisteners added to the Table that is in the dropdown box. (i mimiced the table that is originally in the DropDownDiv).

    Are there any other ways to do what i want? Anyone experiences with that? Someone has got sample code?

    Thanks in advance

    Andre 

    • Post Points: 20
  • 08-07-2008 18:01 In reply to

    Re: Filling Insert DropDown on client-side

    Hi Andre,

    Changing items on client is not supported. Example for server:

    protected void Page_Load(object sender, EventArgs e)
    {
     
    ToolbarDropDown dropDownInsert = this.WebHtmlEditor1.FindByKeyOrAction("Insert") as ToolbarDropDown;
     
    if(dropDownInsert != null)
      {
        dropDownInsert.Items.Add(
    new ToolbarDropDownItem("Signature2", "<span style='background-color:red'>My Signature<span>"));
      }
    }

    Regards,
    Viktor
    Infragistics web team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems