Hello Manikandan Krishnan,
Thank you for using our community.
If I understand you right, you would like to assign a function to the DataSourceUrl property that will return a URL?
Here is a simple sample that might help you: http://jsfiddle.net/p9mm7ut5/1/ . Please feel free to update it in order to clarify your question.
Best Regards, Marina Stoyanova, Software Developer, Infragistics, Inc.