This is a migrated thread and some comments may be shown as answers.

Datasource advice needed

4 Answers 44 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 26 Jul 2016, 02:44 PM

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

 

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 29 Jul 2016, 07:10 AM
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.
0
Jon
Top achievements
Rank 1
answered on 29 Jul 2016, 07:22 AM

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

 

 

0
Plamen
Telerik team
answered on 03 Aug 2016, 04:21 AM
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.
0
Jon
Top achievements
Rank 1
answered on 03 Aug 2016, 07:56 AM

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

Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Jon
Top achievements
Rank 1
Share this question
or