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

Unable to Drag And Drop DataSource Object field to Form

4 Answers 636 Views
BindingNavigator
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Sep 2016, 08:11 AM

Hi,

I'm trying to perform operations as illustred in your article here: http://docs.telerik.com/data-access/developers-guide/data-access-model/advanced-model-tasks/developer-guide-domain-model-managing-advanced-project-data-source.

 

I can't! Object's three in the Data Source tool window seems to be "readonly", not draggable to the RadForm. They have aspect like in the first image attached. If I try to switch to a regular WinForm form, and I come back to the Designer, the aspect of the objects and field is slightly different, as in the second attachment, and I can drag them to the form succesfull.

 

Where is the trick? Why I can't with the RadForm form?

 

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 14 Sep 2016, 08:35 AM

Edit:

I've found this: http://www.telerik.com/forums/radform-drag-once-databinding

But I can't really understand what is the workaround.

 

Thanks.

0
Dimitar
Telerik team
answered on 14 Sep 2016, 12:05 PM
Hello Daniel,

Thank you for writing.

This is currently not supported with our form. We have a feature request for it in our Feedback Portal and I have added a vote for it on your behalf. You can track its progress, subscribe for status changes and add your comment to it here.

So to workaround this you just need to drop a grid on the form and set its data source property. This will add the necessary BindingSource and TableAdapter to the form (just like dropping a database item). Check steps 9 and 10 in the following article: Tutorial Binding to DataTable or DataSet.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Daniel
Top achievements
Rank 1
answered on 14 Sep 2016, 12:44 PM

Thank you for your fast answer.

The problem is that what I want is to bind the Data Source object not to a gridview, but to a series of single fields for a details view form. There is not a way to do that correct?

 

Thanks in advance.

Daniel

0
Hristo
Telerik team
answered on 16 Sep 2016, 01:31 PM
Hi Daniel,

Thank you for writing.

You can achieve your task by creating a standard form and dragging the data source to it. Then you can modify the form so that it inherits RadForm.

I hope this helps. Please let me know if you need further questions.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Tags
BindingNavigator
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Dimitar
Telerik team
Hristo
Telerik team
Share this question
or