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
835
Using Directive For WebDropDown Text and Configuration for DateTextField and DateValueField
posted

Hi there,

I would like to know solutions to these. I'm converting these controls into the latest version of Infragistics.

  1. string strProductGroup = cboProductGroup.Text.Replace("*", "%");
  2. cboBuyingMonthFrom.DataTextField = "Year Month";
  3. cboBuyingMonthFrom.DataValueField = "ID";
  • 29417
    Offline posted

    Hello Andrea,

     

    I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

  • 29417
    Offline posted

    Hello Andrea,

     

    Thank you for posting in our forum.

    Assuming that cboProductGroup and cboBuyingMonthFrom are the IDs of WebDropDown controls and your aiming to:

    1.Get the current text of the WebDropDown

    2.Set the Text field that the control will use when populating the Text of the control when binding to a data source.

    3.Set the Value field that the control will use when populating the Value of the control when binding to a data source.

     

    Then the related code would

    1.string strProductGroup = cboProductGroup.CurrentValue.Replace("*", "%");

     2.cboBuyingMonthFrom.TextField=”Year Month”;

    3.cboBuyingMonthFrom.ValueField = "ID";

     

    Let me know if you have any questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support