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
2165
SET DATASOURCEURL
posted

How to set DataSourceUrl after initialization??

//Initialize
$(".selector").igGrid({
    dataSourceUrl : urlString
});
Parents
No Data
Reply
  • 17590
    Verified Answer
    Offline posted

    Hello Luis,

    Thank you for posting in community.

    I noticed that the same question has been discussed in the following threads in our forum:

    http://es.infragistics.com/community/forums/t/75412.aspx

    http://es.infragistics.com/community/forums/t/72120.aspx

    Basically, the suggestions is calling dataBind() which will call the url if the data source is an url string(as it is in your scenario). Before calling dataBind you can always change the url as following:

    $("#selector").igGrid('option', 'dataSource', 'your new data source URL');

    What I can recommend is reading the Developeing ASP.MVC Applications with igGrid topic in order to get better understanding of the dataSource and dataSourceUrl options. Look for the Data Binding section where these two options are describerd in details.

    I hope you find this information helpful.

    Please let me know if you need any further assistance with this matter.

Children