Unable to Drag And Drop DataSource Object field to Form

5 posts, 0 answers
  1. Daniel
    Daniel avatar
    4 posts
    Member since:
    Sep 2016

    Posted 14 Sep Link to this post

    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.

  2. Daniel
    Daniel avatar
    4 posts
    Member since:
    Sep 2016

    Posted 14 Sep in reply to Daniel Link to this post

    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.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 14 Sep Link to this post

    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.
  5. Daniel
    Daniel avatar
    4 posts
    Member since:
    Sep 2016

    Posted 14 Sep in reply to Dimitar Link to this post

    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

  6. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    713 posts

    Posted 16 Sep Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready