Datasource advice needed

5 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 26 Jul Link to this post

    Hi All

    I could do with getting some other thoughts on something that I am working on.

    I am reworking my application to be as dry as possible.  I want to have a data service that can return some data that can be consumed by the drop downs.  I do not want to use entity framework or similar for this.  I just want to have away to have one data source file that depending on the request will provide the relevant set of data.  

    I will secure it by way of checking the session variables that are in the main application so that only logged in users will have access to the data.

    Keeping it simple lets say that I have 3 drop downs Client, Portfolio and Development and they are related to each other in the order shown.

    When displaying the Client I will get data from datasource.svc/?src=client

    Portfolio will be datasource.svc?src=portfolio&client=1

    and unsuprisingly development will be datasource.svc?src=development&portfolio=5

    What would be the most advisible technology to use for this type of approach?  I have already decided that I want to separate the datasource from the aspx file so that I could potentially switch to Kendo or even use these datasources for a mobile app.

    Thanks for any pointers,

    Jon

     

  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 29 Jul Link to this post

    Hi,

    In such scenario you may consider using the Kendo Combobox as for example it is done in this online demo.

    Regards,
    Plamen
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 29 Jul in reply to Plamen Link to this post

    Hi Plamen

    Good suggestion although ideally I can get this one fixed as there seems no reason why it shouldn't work.

    After the requestitems is triggered something seems to happen in the ItemsRequested/ItemsRequesting that stops the  clientdatasource from requesting a new set of data.

    That said it maybe a good time to switch to kendo for parts of the forms.  I am redoing my application to be generated from a set of models and as such there virtually no aspx files anymore so Kendo would make sense as that will be a lot easier to generate on the fly.  No massive amount of control instantiation etc.  

    Regards

    Jon

     

     

  5. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 02 Aug Link to this post

    Hello,

    I could not quite understand what is not working correctly. If you still want to use your current code would you please try to share the exact code that will help us replicate it locally and be more helpful with a possible solution.

    Regards,
    Plamen
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  6. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 03 Aug in reply to Plamen Link to this post

    Hi Plamen

    I've switched to Kendo for the combos as that was a lot simpler although there are side issues.

    The problem was that on the first load of a drop down it worked but then when the parent changed and the child should have updated nothing happened.  I've removed the code now so consider problem solved.

    Regards

    Jon

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017