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
105
Bind igcombo datasource based on condition
posted

Hi,

i need your help in the following scenario.

I am having igcombo inside iggrid. I just want to bind igcombo datasource based on cell value of row. for example if row's cell value is "india" then i want to bind india's states as datasource. if cell value is "USA" then i need to bind US states as datasource for that particular row. All these should be done on iggrid load.

How to accomplish this?

  • 20255
    Offline posted

    Hello Muthkumar,

    Thank you for contacting us.

    In order to provide you with a basic guidance regarding your requirement I have created a simple sample how this could be achieved. Basically my suggestion is to handle editRowStarted and editRowEnded events and there to configure the combo population.

    http://jsfiddle.net/38jwp5p8/1/

    The sample is only for basic demonstration, as you will see the changes are not persist, because they are not saved.

    Let me know if I may be of further assistance.