Can I bind ADC to XML data

Last post 07-10-2009 12:58 PM by Sonu. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-09-2009 8:43 PM

    Can I bind ADC to XML data

    Hi

    Is it possible to bind ADC to xml data and is there a way to set AutoGenerateColumns = true like in GridView.

    Thanks

     

    Filed under: ,
  •  Advertisement

    Featured Advertisement

     
  • 07-10-2009 8:19 AM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Can I bind ADC to XML data

    You can bind any js array to the ADC controls. By default AutoGenerateColumns is set to True.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 07-10-2009 11:54 AM In reply to

    Re: Can I bind ADC to XML data

    Thanks Sonu,

    So I need to convert the XML to JSON and then bind it right?

    Regards

    Rakesh

  • 07-10-2009 11:59 AM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Can I bind ADC to XML data

    Eaxctly. To make it easy you can do this:

    Dim dataSet As DataSet = New DataSet
    dataSet.ReadXml("input.xml")
    return dataSet.Tables(0)

    When you return the dataTable, it will automatically convert it to json assuming that you have the converters set in your web.config.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 07-10-2009 12:04 PM In reply to

    Re: Can I bind ADC to XML data

    No I am not using the Dataset converters, but its not difficult to convert XML to JSON.

    Any probable dates for the v2.0?

    Thanks

    Rakesh

  • 07-10-2009 12:58 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Can I bind ADC to XML data

    Not yet, I have been very busy with my work.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
Page 1 of 1 (6 items)